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

printer name in smart form

Former Member
0 Likes
1,203

I am new to smartforms.

The requirement is whenever the program ie driver program gets called

the required output should get printed on the specific printer.

Plese guide me where to specify the printer name so that every time the

programs gets called the printout should come to that printer.

I am new to smartforms.

The requirement is whenever the program ie driver program gets called

the required output should get printed on the specific printer.

Plese guide me where to specify the printer name so that every time the

programs gets called the printout should come to that printer.

2 REPLIES 2
Read only

younes_bouaouad
Explorer
0 Likes
612

Hi,

you specify that in the customization, it dpends on the object that you wanna print.

In fine, the output types are stored in the table TNAPR, there you can find a field like TDDEST which contains the name of the standard printer to use, after that, the print program retrieves the printer name from table NAST depending on every single object.

to explain further, say that your smartform is an SD invoice, you should customize the Sales application to use this form with your specific program in V/40 under the name ZINV for example.

these values are stored in the table TNAPR.

after that, everytime you wanna print an invoice,you'll have ZINV output type in the list. but you must have your single invoice configured to be printed using that output type.

let's say you wanna print invoice n° 32000000001. open it for modification and go under goto->header->output and add an output type names ZINV. when you try to save, you'll be asked to enter a printer name and other options.

beside that, you can force the destination by setting the value of the structure field NAST-TDDEST within your print program, but it's not recommended, it's better to set it up through the customization.

and to sum up, it's usually to the functional team to set up this stuff, you just ask them to add entries to enable documents to be processed by your specific form/program.

Hope it helps.

Reward if helpfu

Read only

amit_khare
Active Contributor
0 Likes
612

Welcome to SDN.

If the driver program is cutom report then in the SMARTFORM call FM pass these parameters -

output_options-tddest = printer. (the printer you selected)

control_parameters-device = 'PRINTER'.

control_parameters-no_dialog = ' '.

Regards,

Amit

Reward all helpful replies.