cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to File scenario..sending the XML with PDF as attachment to the target system

Former Member
0 Kudos

HI

I am working on a Proxy to FIle scenario.

Through Proxy they are sending the XML file attached a PDF.  That means two files are sedning.

At the Directory level i have created one reciever channel and i am able to get XML file.  But i am able to see the XML and PDF in the payload.

How can i send both these to one target folder. 

Please help me

THanks in advance....

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member312864
Active Participant
0 Kudos

Hi,

You can achive this with slight coding in ABAP side.

Please look at the below link for the approach

http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies...

Regards,

udo_martens
Active Contributor
0 Kudos

Hi,

you can define two receiver (systems) and use in one channel the PayloadSwapBean.

http://scn.sap.com/people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framewo...

Regards,

Udo

Former Member
0 Kudos

HI Udo,

Thanks for your quick response.

Can you please elaborate on this.  because never come across this type of scenario and never used the modules.

right now created one reciever channel with only one target system.

thanks

udo_martens
Active Contributor
0 Kudos

Hi,

just define either

- two receiver sytems in receiver determination

- or two inbound interfaces in interface determination

Anyway you would need two receiver channels. One of them is storing the xml, the other the pdf. To the other you add the module PayloadSwapBean as described in the link. It is just exchanging payload and attachment. You dont need deep knowledge for that simple operation.

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

I have created two reciever systems and assigned to reciever determination with out any condition.

Created two reciever channels.

1 for XML and the other for PDF

I used the PayloadSwapBean in the PDF channel like below

1. AF_Modules/PayloadSwapBean     Local enterprise bean            swap

2. callSapAdapter                             Local enterprise bean            0

Under Module Configuration mentioned as like in the link

Maintained similarly, but in the link it was for Mail adapter.  But for me need for File Adapter.

Please suggest...

Thanks

udo_martens
Active Contributor
0 Kudos

Sounds good.

Does it work?

Any issues?

Regards,

Udo

Former Member
0 Kudos

it doesn't work. 

In the link provided by you configured for the mail adapter.  Can we also use the same parameters for the File Adapter???

Please suggest...

Thanks

udo_martens
Active Contributor
0 Kudos

The module should work independend from adapter type. What is the error?

Former Member
0 Kudos

Sorry Udo..

Actually i need to work this on Proxy to SFTP adapter.

What are the things that need to maintain at reciever SFTP adapter level.

Please suggest...

Thanks

udo_martens
Active Contributor
0 Kudos

Hi,

What are the things that need to maintain at reciever SFTP adapter level

Adapter configuration.

If you have any issues please dont hesitate to post them,

Udo

Former Member
0 Kudos

Hi Udo,

THanks for the info on SFTP adapter...Actually i worked on the SFTP adapter part.

But the thing now is as mentioned you above sending the XML file attached with PDF is sending from Proxy.   THat means payload contains both XMLfile and PDF file.

By using SFTP adapter, how i can send both the files to the reciever.....

Please help in this scenario.....

Thanks