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 Creation

Former Member
0 Likes
1,052

hello,

Iam using the FM : GET_PRINT_PARAMETERS to change the default print settings, but iam not able to create the spool. Please help me in creating spool

10 REPLIES 10
Read only

Former Member
0 Likes
1,016

Hi,

Could you please paste your code..

just the part of get_print_parameters & code to create spool...

Best regards,

Prashant

Read only

0 Likes
1,016

call function 'GET_PRINT_PARAMETERS'

exporting

immediately = 'X'

layout = 'X_65_255'

list_name = 'SFK_LIST'

no_dialog = 'X'

importing

out_parameters = params

valid = valid.

if valid = 'X'.

new-page print on

parameters params

no dialog.

endif.

This is the only code iam using. Please let me know for any changes required

Read only

0 Likes
1,016
call function 'GET_PRINT_PARAMETERS'
exporting
destination = 'LOCL'              " This is important
immediately = 'X'
layout = 'X_65_255'
list_name = 'SFK_LIST'
no_dialog = 'X'
importing
out_parameters = params
valid = valid.
if valid = 'X'.
new-page print on
parameters params
no dialog.
endif.
Read only

0 Likes
1,016

Prashant,

Its not creating a spool .

Read only

Former Member
Read only

0 Likes
1,016

jithedra that is a global site-I couldn't find in that

Read only

Former Member
0 Likes
1,016
call function 'GET_PRINT_PARAMETERS'
exporting
destination = 'LOCL'              " This is important
immediately = 'X'
layout = 'X_65_255'
list_name = 'SFK_LIST'
no_dialog = 'X'
importing
out_parameters = params
valid = valid.
"if valid = 'X'.   " COMMENT THIS
new-page print on
parameters params
no dialog.
"endif.    " Comment this as well

Goto SPAD click output devices... check whether LOCL is defined or LP01 is defined.. accordingly change the hardcoded value of DESTINATION.

Best regards,

Prashant

Read only

0 Likes
1,016
call function 'GET_PRINT_PARAMETERS'
exporting
destination = 'LOCL'              " This is important
immediately = 'X'
layout = 'X_65_255'
list_name = 'SFK_LIST'
no_dialog = 'X'
importing
out_parameters = params
valid = valid.
"if valid = 'X'.   " COMMENT THIS
new-page print on
parameters params
no dialog.
write :/ 'TEST'.
new-page print off.

"endif.    " Comment this as well

This should work !!

Read only

0 Likes
1,016

Thank you prashanth for your post . same problem happened to me that,  user sap user maintanance SU01 output device (LOCL) not maintained.  basis can maintain output device data.

Read only

Former Member
0 Likes
1,016

Thank You Prashant for your valuable inputs