cancel
Showing results for 
Search instead for 
Did you mean: 

Can we print sap script form to pdf

Former Member
0 Kudos

Hi,

In R/3 4.7 can we print sapscript form to PDF. I know we can do it with smartform, but if anyone knows if same can be done with sapscript also.

-Sid

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

yes.

if your script generatin any spool than execute in se38 with spool number RSTXPDFT4 else you need to code for generate PDF.

Ya it can be done,

it would be best to code for getting the PDF ,or either u can execute in se38 with an specific number of spool after if your script generate any spool.then u canresolve ur problem .

thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks,

Sid

naimesh_patel
Active Contributor
0 Kudos

I don't know about the printing the PDF directly. But you can convert the SAPScript output to PDF and than save, print or send as email.

First you need to get the OTF data from the FM CLOSE_FORM.

Like:


    CALL FUNCTION 'CLOSE_FORM'
      IMPORTING
        RESULT  = i_itcpp
      TABLES
        otfdata = otf_data
      EXCEPTIONS
        OTHERS  = 1.

Than use the FM CONVERT_OTF_2_PDF to convert the OTF data to PDF.

Regards

Naimesh Patel

former_member181995
Active Contributor
0 Kudos

yes.

if your script generatin any spool than execute in se38 with spool number RSTXPDFT4 else you need to code for generate PDF.