cancel
Showing results for 
Search instead for 
Did you mean: 

File as an XI attachment

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos
Former Member
0 Kudos

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.

iaki_vila
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Vishal, can you elaborate your requirement.

Former Member
0 Kudos

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

Former Member
0 Kudos

We will be sending the file as an XI attachment to another PI system which is outside our landscape.

Regards,

Vishal

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

In Short I would like to see both Main Document and Attachment in my moni.Where the attachment is the actual csv file. And the response main document is the outcome of the mapping with following fields:Sender port number, Receiver port number , file name and file size.

Former Member
0 Kudos

Thanks Chirag for your response.. But we are using FTP and not NFS.. Please let me know if there is any standard module to pick the file as an XI attachment.

Regards,

Vishal

Former Member
0 Kudos

in that case build just one more scenario which will be only configuration which will only pick this attachment and place it into another PI server.

thanks

chirag