Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

spool request

Former Member
0 Likes
501

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.

1 ACCEPTED SOLUTION
4 REPLIES 4
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
470

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

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
470

Hi

Use the FM:

CONVERT_OTF_2_PDF

CONVERT_OTFSPOOLJOB_2_PDF

Regards,

kumar