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

Smartform output problem

Former Member
0 Likes
700

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!

4 REPLIES 4
Read only

Former Member
0 Likes
641

Hi,

Contact the Basis guy he will do the printer configuration.

Regards,

Ramu N.

Read only

Former Member
0 Likes
641

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

Read only

0 Likes
641

Hello Gauray,

LP03 is configured. I don't know why? Is it a standard problem of smartform output?

Thanks

Nina

Read only

Former Member
0 Likes
641

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