‎2010 Aug 13 10:23 PM
Hi Experts,
i have created a custom program by copying FP_TEST_00 and gave nodialog mode for out parameters which will supress the prompt for printer and that i can run it in background. i just want the data to written to spool.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = iwa_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
call function module with import params
call function function_name
parameter-table
para_tab.
close job
call function 'FP_JOB_CLOSE'
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
Any pointers in this regard will be help ful.
Please provide some inputs if we can send the PDF to a spool.
Thanks in Advance,
Deepa
‎2010 Aug 16 3:18 AM
‎2010 Aug 16 6:57 AM
Hi,
First call GET_PRINT_PARAMETERS , next call the FM inside a program and then submit this program in background mode using TO SAP-SPOOL.
Regards,
Sandeep
‎2010 Aug 16 7:55 AM
step 1.
Use RSTS_GET_ATTRIBUTES function module to get Spool No and related attributes.(Ex.Client , Authority..ect)
Step 2.
select the FM CONVERT_OTFSPOOLJOB_2_PDF if OTF data available to convert or CONVERT_ABAPSPOOLJOB_2_PDF if list data available to convert to PDF in the spool created in the step 1.
Step 3.
Export TABLES - pdf will contain the PDF Data .
Note : you can refer program - RSTXPDFT4
Cheers ,
Dilum