Skip to Content
avatar image
Former Member

Can we print sap script form to pdf

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 05:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2008 at 02:57 PM

    yes.

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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2008 at 02:58 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2008 at 03:23 PM

    Thanks,

    Sid

    Add comment
    10|10000 characters needed characters exceeded