on 05-30-2012 11:35 AM
Hi,
I have a requirement where in I need to send the csv file as an XI attachment using sender file adapter. Request you to let me know if there are any standard adapter modules. If not please point me to any posts where such code is expalined. Any help would be greatly appreciated.
P.S: I have minimal knowledge in java and new to adapter module concepts.
Regards,
Vishal
Hi Vishal,
You can use PayloadSwapBean in you sender file channel module processing to swap the main payload to attachment.
http://help.sap.com/saphelp_nwpi71/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
Regards,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please let me know the location in al11 transaction where we can find the .ear/.jar file of an adapter module deployed?
Thanks,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Might be this link will help you - refer link Where to get the libraries for XI development
http://wiki.sdn.sap.com/wiki/display/XI/XI+libraries+for+development
Thanks
Chirag
So, your scenario is Sender-->PI(middleware)-->PI(Target)
Correct me, if I am wrong.
If so, then your scenario will be file to file scenario.
You need to pick up the CSV file then send to PI system. then you need to use NFS file adapter for the target system to place the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
I dont understand too well your problem.
I think you need to send a file, and this file is in a PI attachment or you have an XML attachement in PI that you want to convert in a file.
I think your scenario is SOAP-FILE, i mean, a sender soap adapter and receiver file adapter.
You could check the follow threads to deal with attachmentes:
- For read an attachment: http://scn.sap.com/thread/1341089
- For write an attachment: http://scn.sap.com/thread/1918880
The api: https://help.sap.com/javadocs/pi/SP3/xpi/index.html
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal, can you elaborate your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Where you wanted to send a file as an attachment? what is the target system?
Could you pls elaborate on the requirement
thanks
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Correct my understanding based on your response:-
U have two PI system one PI system picks the file and put the same file to another PI server. I am still not getting attachment part?
From where r u picking and placing the file- is it on PI application directory folders? or from FTP server?
u scenario will be simple it is just pick n place the file with not ESR involved only configuration involved if structure of the file is same.
Thanks
Chirag
Hi Chirag,
To elaborate, the scenario looks as below:
System A (File) ==> PI1 ==> PI2 ==> System B(File)
PI1 will pick the file as an XI attachment. At the same time we are maintaining a separate message mapping with following fields: FileName,FileType,SNDPRN and RCVPRN.
Not sure about PI2 as it is not in my scope, but I guess:
PI2 will get the information about file like FileName ad FileType from the mapping that is executed on our end and send the XI Attachment as a file to System B.
Regards,
Vishal
Hi Vishal,
Might be additional file option in file adapter help for your requirement.
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
Thanks
Chirag
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.