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

question on samrtforms default printer

Former Member
0 Likes
1,132

Hi,

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 .

thansk,

rg

6 REPLIES 6
Read only

Former Member
0 Likes
1,045

So you are populating the Output_Options parameter ?

The printer is a defined SAP printer ?

Read only

0 Likes
1,045

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 .

rg

Read only

0 Likes
1,045

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.

Read only

0 Likes
1,045

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.

Read only

1,045

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

Read only

silver1
Explorer
0 Likes
1,045

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.