cancel
Showing results for 
Search instead for 
Did you mean: 

Issue reading PDF file in CPI

0 Kudos

Hello Experts,

I am working on an interface where I fetch a pdf file from FTPS server and then send the file to S/4HANA through a standard OData API. The API call is made successfully by the interface but the pdf file is blank once it reaches S/4HANA from CPI. For testing I used a parallel multicast to route the fetched pdf file over FTPS server, even there I am not able to view the pdf file properly. Could you please suggest a workaround for the stated issue.

Regards,

Varun Vichare.

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Kudos

Hello Varun,

Are you doing any transformation in SAP CPI and also what format does SAP S4Hana expecting? Also first try to simulate the scenario using POSTMAN to post the PDF data and see how it works.Once you have working solution you can replicate the same in SAP CPI.

Regards,

Sriprasad Shivaram Bhat

0 Kudos

Hi Sriprasad,

I am referring the below blog to send pdf attachment to S/4HANA. I had tried simulating the scenario in POSTMAN, It is working absolutely fine there.

https://blogs.sap.com/2021/09/01/cloud-integration-sap-cpi-api_cv_attachment_srv-odata-api-for-attac...

Regards,Varun Vichare.