Skip to Content
-2

question on samrtforms default printer

Jul 06, 2017 at 05:23 AM

55

avatar image

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

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

2 Answers

Silver Hau Jul 14, 2017 at 03:45 PM
-1

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.

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

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 .

rg

0

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.

0

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.

0

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

1