Skip to Content

question on samrtforms default printer

Jul 06, 2017 at 05:23 AM


avatar image


I want to default the printer name which is maintained in TVARVC table . I am passing the printer name to tddest parameter in the coding . But the printer name is defaulted from the master data of the user . please suggest if I am missing any other thing .



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jul 14, 2017 at 03:45 PM

Passing printer name to TDDEST is correct. Make sure that you are passing the correct 4 characters output device name and to parameter OUTPUT_OPTIONS.

10 |10000 characters needed characters left characters exceeded
Richard Harper Jul 06, 2017 at 07:54 AM

So you are populating the Output_Options parameter ?

The printer is a defined SAP printer ?

Show 4 Share
10 |10000 characters needed characters left characters exceeded

yes i am passing output options and control parameters

  st_control_parameters-langu   = sy-langu.

*  st_control_parameters-device  = ca_printer.

*  st_control_parameters-preview = ca_x.   "IMPORT PARAMETER

  st_control_parameters-preview = space.

*  st_control_parameters-no_dialog = ca_x.

*   Fill the output options

  st_output_options-tdsuffix1 = ca_r15a.

  st_output_options-tdsuffix2 = sy-uname.

  st_output_options-tdnewid = ca_x.

  st_output_options-tdfinal = ca_x.

  st_output_options-tdimmed = ca_x.

  st_output_options-tddelete = ''.

  st_output_options-tddest   = vl_dest.

please confiorm if I am missing any thing .



even though I pass tddest as the printer name its defaulting the printer name from master data. that is my issue where as it should be display the printer name passed to TDDEST . yes its an sap printer I can see that printer name.


Is the smartform a standard smartform or a custom smartform ?

Run an ST05 trace in another session and then run your program to see where it is accessing the user data. Use the trace to check where it is in the code and see if there are any conditions around it.


Thanks for your replies .. i found it myself passing user settings = space solved