on 02-23-2012 8:22 PM
Hello PI expert,
I have requirement to FTP file from FTP server to ECC server. But because of some security, we can not get FTP permission on ECC server.
What i want to do is, get the file from FTP server as it is, and send it using abap proxy as attachment. I don't want to do any content conversion or xml conversion because I want to transfer file as it is.
Any suggestion.
Thanks,
You have answer in this blog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if your PI version is at least "SAP NetWeaver PI 7.1 SP3"
create sample Data type structure with one node and one field, and use this for both proxy and file service/message interfaces.
Pick the file from FTP. No graphical mapping. Use Java Mapping. Read the input stream and create an attachement from this and attach it to the message. pass some static values for the output (proxy) structure using output stream. Thats all.
http://help.sap.com/javadocs/pi/SP3/xpi/index.html
Methods:-
com.sap.aii.mapping.api --> OutputAttachments --> create(String contentId, byte[] content) / create(String contentId, String contentType, byte[] content)
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.