Skip to Content
0
Jul 11, 2018 at 08:48 PM

Convert Binary Data to Spool and then Spool to PDF in ABAP

1138 Views

Hi Experts,

Using WebService PDF file data will be sent to PI Proxy and from PI Proxy I am receiveing

RAWSTRING data into ABAP.

I am converting RAWSTRING to BINARY FORMAT using FM scms_xstring_to_binary.

The BINARY Formatted Data from FM scms_xstring_to_binary I am able to download using GUI_DOWNLOAD in PDF format and I get correct data in the downloaded PDF. Downloaded PDF data and Actual PDF data looks good/similar.

But my requirement is to generate a PDF in ABAP program for the Actual PDF Data coming from WebService through PI proxy. In short BINARY FORMATTED DATA needs to converted to PDF and then to SPOOL.

If any inputs please provide.

Regards,

Rafi