cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form- ABAP

0 Kudos
1,241

Q: " I'm Having an urgent requirement, that i'm calling created ADOBE FORM (pdf format) in ODATA project to display form output in SAP Gateway service ODATA. In this custom code is written in Get_Stream method of class DPC_Ext. Normally in case of smart form we will use FM-'convert OTF' to get the Xstring and passed to get_stream with Mime type.

So, how to get XSTRING from the output of Adobe form Function Module and pass this into the get_stream with mime type and finally getting pdf output of adobe form in SAP Gateway Service."

Please suggest me.

Thanks & Best Regards.

Harshanandan NM.

View Entire Topic
prajeshdesai
Contributor
0 Kudos

Try below,

DATA: LV_FORMOUTPUT TYPE FPFORMOUTPUT,
      RW_STRING TYPE RAWSTRING.

LV_FORMOUTPUT-GETPDF = 'X'.

CALL FUNCTION IM_E_FUNCNAME
  IMPORTING
     /1BCDWB/FORMOUTPUT = LV_FORMOUTPUT.

RW_STRING = LV_FORMOUTPUT-PDF.

Hope this helps.

0 Kudos

Thank you, Prajesh Desai.

It worked, But some times generated layout stores in PDF file,instead of displaying.

Thanks & Best Regards.

Harshanandan NM.

prajeshdesai
Contributor
0 Kudos

Mark as solved if it is.