Skip to Content
author's profile photo Former Member
Former Member

FM: CONVERT_ABAPSPOOLJOB_2_PDF

Hi Experts,

I have a requirement wherein I have to use a function module CONVERT_ABAPSPOOLJOB_2_PDF. But I am not clear with all the import and export parameters and how and why to use them.Can you please provide some explanation for the import and export parameters of this particular FM?

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

IMPORTING

src_spoolid = tsp01-rqident

no_dialog = ' '

  • DST_DEVICE =

  • PDF_DESTINATION =

EXPORTING

pdf_bytecount = l_numbytes

  • PDF_SPOOLID =

  • LIST_PAGECOUNT =

  • BTC_JOBNAME =

  • BTC_JOBCOUNT =

TABLES

pdf = it_pdf

Please help.

Thanks in advance.

Neha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Oct 21, 2008 at 06:17 AM

    Hi,

    Try this:

    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

    EXPORTING

    src_spoolid = i_spool_request (spool request number)

    no_dialog = ' '

    IMPORTING

    pdf_bytecount = gv_bytecount

    btc_jobname = lv_btc_jobname (specify job name)

    btc_jobcount = lv_btc_jobcount (specify job count)

    TABLES

    pdf = gt_pdf ( gt_pdf LIKE tline OCCURS 100 WITH HEADER LINE,)

    EXCEPTIONS

    err_no_abap_spooljob = 1

    err_no_spooljob = 2

    err_no_permission = 3

    err_conv_not_possible = 4

    err_bad_destdevice = 5

    user_cancelled = 6

    err_spoolerror = 7

    err_temseerror = 8

    err_btcjob_open_failed = 9

    err_btcjob_submit_failed = 10

    err_btcjob_close_failed = 11

    OTHERS = 12.

    Rgds,

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2008 at 06:18 AM

    Hi,

    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'

    exporting

    src_spoolid = li_spoolno

    no_dialog = ' '

    • DST_DEVICE =

    • PDF_DESTINATION =

    importing

    pdf_bytecount = numbytes

    pdf_spoolid = pdfspoolid

    • LIST_PAGECOUNT =

    • btc_jobname = jobname

    • btc_jobcount = jobcount

    tables

    pdf = pdf

    exceptions

    err_no_abap_spooljob = 1

    err_no_spooljob = 2

    err_no_permission = 3

    err_conv_not_possible = 4

    err_bad_destdevice = 5

    user_cancelled = 6

    err_spoolerror = 7

    err_temseerror = 8

    err_btcjob_open_failed = 9

    err_btcjob_submit_failed = 10

    err_btcjob_close_failed = 11.

    if sy-subrc <> 0.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 06:23 AM

    Thanks a lot. But I want to know what each parameter is for.

    no_dialog =

    DST_DEVICE =

    PDF_DESTINATION =

    what are these 3 parameters exactly for?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 06:35 AM

    Thanks a lot. My question is answered.

    Thanks again

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.