cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed how to pass PDF file as an attachment in webservice(SOAP)

sahithi_moparthi
Contributor
0 Kudos


Hi All,

Could you please throw some light on the below scenario.

It is Outbound scenario. SAP PI picks the PDF  file from  ECC  which is at Al11 locations and it has to send it to thirdparty using SOAP call.

It is passthru interface,no mapping is required.But how can we send PDF as an attachment  to thirdparty using  webservice call.

         

                (PDF File) Al11               (SOAP)

SAP ECC         ->                 PI            ->        Thirdpary

Accepted Solutions (1)

Accepted Solutions (1)

former_member181985
Active Contributor
0 Kudos

Hi Sahithi ,

Use AdditionalFiles option in sender File adapter channel to pick AL11 pdf file as attachment.

You should also have a dummy trigger file in AL11 having message structure same as target third-party SOAP body message

Best Regards,

Praveen Gujjeti

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Sahiti,

For your sender ECC you can create a consumer proxy and to pass directly the attachment Step by Step guide to develop Outbound ABAP Proxy with PDF attachment. - ABAP Development - SCN Wiki

Also you can work with base64, convert the PDF in base64 and later at mapping level convert the base64 tag in attachment.

Regards.

sahithi_moparthi
Contributor
0 Kudos


Hi,

Thanks for you reply.

My question is,What Configuration has to be done at the receiver SOAP adapter inorder to pick the PDF file as attachment and send to to target.

Do i need to use any adapter module config.Please suggest ?

iaki_vila
Active Contributor
0 Kudos

Hi Sahiti,

If you follow