‎2007 Jan 12 6:07 AM
Hello all,
Now I met a problem about smartform output:
The default printer is LP01. When I execute the program which calls this smartform in background, I change the printer to LP03.
Then I use the t-code:SP02 and find the printer is LP01 not LP03. What can i do change the printer to LP03?
---part of my code:
DATA:
ls_output TYPE ssfcompop.
ls_output-tddest = 'LP03'.
CALL FUNCTION '/1BCDWB/SF00000004'
EXPORTING
OUTPUT_OPTIONS = ls_output
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
Thanks in advance!
‎2007 Jan 12 7:00 AM
Hi,
Contact the Basis guy he will do the printer configuration.
Regards,
Ramu N.
‎2007 Jan 12 7:05 AM
Hi Nina,
U can check output device using Tz. SPAD. if ur output device LP03 is not configure there then configure that.or take help of ur basis consultant.
Thanks
Gaurav
‎2007 Jan 12 9:10 AM
Hello Gauray,
LP03 is configured. I don't know why? Is it a standard problem of smartform output?
Thanks
Nina
‎2007 Jan 12 9:20 AM
Hai
try with the following F.M
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING MODE = 'BATCH'
REPORT = 'MYREPORT'
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
look into this link
http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm
You need to set the USER_SETTINGS perameter in your SmartForm to SPACE
Regards
Sreeni