Skip to Content
Former Member
Nov 15, 2011 at 01:04 PM

PDF attachment using ABAP webdynpro


Dear All,

We want to attach a PDF file to a Purchase order. We are able to do this directly from the PO screen and it works. We are able to retrieve it as well.

Now we upload the file using a upload element in ABAP webdynpro and this is returns the data in XSTRING format. After this step we followed 2 paths but both of them have failed

1. We converted Xstring to a string and string to internal table

2. We converted Xtrsing to an internal table format

Now when call function SCMS_HTTP_CREATE to attach this internal table to PO, it gives no error. When go to PO, it shows this new attachment, but while opening it gives an error saying it is not a PDF format.



Naveen Agarwal