03-13-2007 6:44 AM
in driver prgram of my sapscript, i need to generate a spool request (automatically in driver program) and then convert this Spool to PDF (tat i can do by using FM abapspoolpdf)..but how to go for the first requirement???
03-13-2007 6:49 AM
Hi,
for the first option you need to pass some parameters to imports in function module OPEN_FORM. Check out importing structure OPTIONS in this function module (OPTIONS-TDNEWID,OPTIONS-TDDATASET).
Cheers,
03-13-2007 6:49 AM
Hi,
When a print command is triggered for some Output it generates a Spool request.
We can capture that spool request number from TSP01 table.
we can pass that spool number to Fun module:
call function 'CONVERT_ABAPSPOOLJOB_2_PDF' and convert to PDF.
Regards,
Anji
03-13-2007 6:49 AM
Hi,
for the first option you need to pass some parameters to imports in function module OPEN_FORM. Check out importing structure OPTIONS in this function module (OPTIONS-TDNEWID,OPTIONS-TDDATASET).
Cheers,
03-13-2007 6:57 AM
try to do like that..
data : begin of zz_itcpp.
include structure itcpp.
data : end of zz_itcpp.
"CALL FUNCTION 'CLOSE_FORM'
Importing
Result = zz_itcpp
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
zz_spool_no = zz_itcpp-TDSPOOLID.
03-13-2007 7:29 AM
hi
u can get the spool number in sy-spono..which can be passed to the function module.
hope this helps....
reward if useful
03-13-2007 7:52 AM