‎2007 Feb 19 4:48 AM
hi gurus,
can any one tell me how to get the spool request id if i need the output of my smartforms into pdf format.
Please urgent.
‎2007 Feb 19 4:57 AM
‎2007 Feb 19 4:56 AM
Hi,
We can convert the smart form to PDF without generating the spool, here is the sample code
1. call the smart form FM
call function '/xxx/xxxx'
EXPORTING
user_settings = space
control_parameters = control_parameters
output_options = output_options
IMPORTING
job_output_info = output_data
TABLES
zsystems = lt_sys
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
2. convert the OTF data to PDF
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
TABLES
OTF = OUTPUT_DATA-OTFDATA
LINES = LT_LINES
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
Cheers,
Simha
‎2007 Feb 19 4:57 AM
‎2007 Feb 19 5:14 AM
Hi,
Check the following,
http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Please reward for the same.
‎2007 Feb 19 5:17 AM
Hi
Use the FM:
CONVERT_OTF_2_PDF
CONVERT_OTFSPOOLJOB_2_PDF
Regards,
kumar