Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: SUBMIT PROGRAM WITH SPOOL PARAMETERS

$
0
0

Hi Rohan ,

 

If you are using export to pdf feature , then you will get the default page in PDF.

 

Its better you can create your own program for exporting PDF.

 

use FM

: CONVERT_ABAPSPOOLJOB_2_PDF

& GUI_DOWNLOAD

 

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

    EXPORTING

      src_spoolid   = spoolno

      no_dialog     = ' '

    IMPORTING

      pdf_bytecount = l_no_of_bytes

      pdf_spoolid   = l_pdf_spoolid

      btc_jobname   = l_jobname

      btc_jobcount  = l_jobcount

    TABLES

      pdf           = it_pdf.

  "Download PDF file C Drive

  CALL FUNCTION 'GUI_DOWNLOAD'

    EXPORTING

      filename = 'C:\itab_to_pdf.pdf'

      filetype = 'BIN'

    TABLES

      data_tab = it_pdf.

 

Hope this will help you out

 

Regards

 

Yogendra Bhaskar


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>