on 04-13-2016 9:41 AM
Hi
I need to pick up a flat file from sFTP server and parse it to an ABAP Proxy as a attachment. But how can i parse the Payload of the message to the Proxy call?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jakob
Because you have only 1 file per message, you do not need the additional files setting. Just pick the file normally.
Instead, you will need a custom Java mapping to parse the file content and generate an attachment for the message. Because proxy interfaces expects the main payload in XML format, you can define a dummy structure for the service interface and populate it in the Java mapping. There is an example code by Raghu in the following thread.
Re: plain text file as attachment to inbound proxy.
Regards
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jakob,
You can read the file as additional files to deal them as attachaments (Configuring the SFTP Sender Channel - SAP NetWeaver Process Integration, secure connectivity add-on ...)
In the inbound proxy you should work with the attachment in the ABAP code. These links could be helpful:
Protocols - Enabling Application-to-Application Processes - SAP Library
Attachments - Enabling Application-to-Application Processes - SAP Library
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Sorry i don´t get it: i can have one file i can have 42 - i dont know. I need to get all files in a certain directory on the sFTP server and then pass them as 1 message per file with the file as an attachment.
At the moment when i pull the directory PO will read each file an place the content in the payload of one message per file. But i need it as an attachment instead.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.