on 02-11-2011 9:05 AM
Hi @ll,
How to get the spool number when i trigger a print from PDF .
best regards
Heidi
fp_outputparams-getpdf = 'X'.
fp_outputparams-nodialog = 'X'.
fp_outputparams-dest = 'PDFT'.
fp_outputparams-ARCMODE = '3'.
fp_outputparams-reqnew = '1'.
* Language and country setting (here US as an example)
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
* PRINT:
*/ Sets the output parameters and opens the spool job
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc 0.
*/ <error handling>
ENDIF.
* Get the name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZSDXX_SALES_ORDER1'
IMPORTING
e_funcname = fm_name.
IF sy-subrc 0.
*/ <error handling>
ENDIF.
* Call the generated function module
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
zord_iface = gs_prt
IMPORTING
/1bcdwb/formoutput = fp_fpformoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc 0.
* <error handling>
ENDIF.
*/ Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* e_result =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc 0.
* <error handling>
ENDIF.
Edited by: Heidi Heinzberger on Feb 11, 2011 10:06 AM
Code tags added by: kishan P on Feb 11, 2011 3:54 PM
The spool ID's are a component table of the output of the function FP_JOB_CLOSE. You simply need to read the E_RESULT-SPOOLIDS table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
As brod told just go a head with that. Once you will get that spool no keep that spool in RSTXPDFT4 and get in pdf format. i think this will solve that.
Regards,
Madhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii,
just run this program in se38 rstxpdft4 give spool number ur putput will come in PDF.
regards,
sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.