Skip to Content
Apr 24, 2020 at 03:21 AM

API_CV_ATTACHMENT_SRV - Attach PDF document to Supplier Invoice


Hello Community,

my requirement is to pick up a file from an FTP server and attach it to a supplier invoice. My problem with that api is how to handle my binary payload within SAP CPI and pass it to the content parameter (API's Body). I've managed to make it work from Postman and my pdf document gets attached correctly :

When trying through CPI, i'm not sure how to handle binary Data (PDF content as Payload), should we encode it first ? I've searched the Forums/Blogs and SAP documentaion without any Luck so far.

i'm getting the following error:

Thank you


32028-image.png (25.9 kB)
32029-image.png (10.2 kB)
32030-image.png (45.5 kB)