Application Development 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: 

SMARTFORMS - set printer device

Former Member
0 Kudos

Hi,

I have a SMARTFORM which is always going to be output on the same printer regardless of who is printing it and their default printer.

I have seen a field on the form attributes for setting the output device - but it cannot be edited !

Any ideas ?

Cheers

Colin.

5 REPLIES 5

Former Member
0 Kudos

Hai Colin

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

Thanks & regards

Sreeni

former_member188685
Active Contributor
0 Kudos

Hi,

smartform fm ,you have options

CONTROL_PARAMETERS you have DEvice field you can set that with your own device.

and also USER_SETTINGS = ' '. if you don't want users default printer. if you want users printer then USER_SETTINGS = 'X'.

try these..

Regards

vijay

Former Member
0 Kudos

Hi Colin,

Set CONTROL_PARAMETER-NO_DIALOG = 'X'. and

CONTROL_PARAMETERS-DEVICE = Printer_Name or

OUTPUT_OPTIONS-TDPRINTER = Printer_name, it will always go to that pritner...

Regds

Sandip

0 Kudos

Hi,

These are all no good. It is a SAP standard class I am using for output.

I need to be able to change it in the actual SMARTFORM itself.

Cheers

Colin.

0 Kudos

Colin,

I have the same requirement.

have you figured it out by any chance?

Thanks,

Joris