2008 Dec 09 12:38 PM
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
2008 Dec 09 12:40 PM
Hi,
Could you please paste your code..
just the part of get_print_parameters & code to create spool...
Best regards,
Prashant
2008 Dec 09 12:42 PM
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
2008 Dec 09 12:45 PM
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.
2008 Dec 09 12:51 PM
2008 Dec 09 12:42 PM
2008 Dec 09 12:45 PM
2008 Dec 09 12:54 PM
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 wellGoto SPAD click output devices... check whether LOCL is defined or LP01 is defined.. accordingly change the hardcoded value of DESTINATION.
Best regards,
Prashant
2008 Dec 09 12:56 PM
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 wellThis should work !!
2014 Feb 13 10:13 AM
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.
2008 Dec 10 9:51 AM