Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PDF Stream from a adobe form

Former Member
0 Likes
891

Hello All,

can you let me know to how to create a PDF stream similar to the PDF stream generated in smart forms using FM CONVERT_OTF. 

Thanks,

Sundeep

Hello All,

can you let me know to how to create a PDF stream similar to the PDF stream generated in smart forms using FM CONVERT_OTF. 

Thanks,

Sundeep

2 REPLIES 2
Read only

custodio_deoliveira
Active Contributor
0 Likes
638

Hi Sundeep,

Very simple, just look at this thread: Adobe forms:Unable to get the generated pdf in ... | SCN

Regards,

Custodio

Read only

Former Member
0 Likes
638

Hi Sundeep,

While calling the function module of the adobe form, you can the PDF stream using the import parameter as below (here within the structure ls_fpformoutput you will get the PDF stream as required by you):

data: ls_fpformoutput type fpformoutput.

* Call function module

   CALL FUNCTION 'ADOBE_FM_NAME'

     EXPORTING

       /1bcdwb/docparams  = 'XXXXX'

       gs_header          = 'XXXXX'

     IMPORTING

       /1bcdwb/formoutput = ls_fpformoutput

     EXCEPTIONS

       usage_error        = 1

       system_error       = 2

       internal_error     = 3

       OTHERS             = 4.

   IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

   ENDIF.

Thanks,

Arnab