on 11-06-2013 12:04 PM
Hi Experts,
I have a requirement of reading the files from SAP PI Server folders via Java Mapping. Can you please guide me how this can be achieved. I presume the piece of java code getClass.getResourceAsStream() works for only imported archives.
Regards,
N. Jayanth Kumar.
hi Jayanth,
PFB the link where i have done similar thing from a ftp location.
http://scn.sap.com/docs/DOC-45677
I am sure with minor changes in code you will be able to read it from PI shared location also.
Please let me know if you need any specific help.
thanks and regards,
Praveen T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for your replies which are very much Helpful. I have resolved the issue, by using FileInputStream as the PI Mapping reads from the OS Folders directly.
Regards,
N. Jayanth Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From Java in PI you work with PI folders like with other folders on local machine. You just need path to folder on PI server.
http://stackoverflow.com/questions/1844688/read-all-files-in-a-folder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Few minutes ago, i see this "Send File to Two Different Locations using Adapter Module -2013-07", it's for a module, but you can probably reuse java code....
else why you do not use a sender File Adapter to pick-up this file on PI server, and then use Java mapping for what you have to do? does that means this file is not your source file, but another file like a file which contains some properties, or 'custo' data...
regards.
Mickael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.