cancel
Showing results for 
Search instead for 
Did you mean: 

printer name in smartform

Former Member
0 Kudos

How to provide printer from programme if some condition fulfilled else ask use to enter printer name?

How to implement above logic?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sandeep,

Following is the logic you need to implement in your driver program -

PARAMETERS: p_tddest TYPE recptddest OBLIGATORY.

And in your function module calling teh smartform pass ont he printer as shown below:

if (Ur condition ) is true -

g_ctrl_op-no_dialog = c_x

g_output_options-tddest = p_tddest. " printer

else.

g_ctrl_op-no_dialog = ' '.

Try this out.

Hope this helps.

Cheers,

Varna

Answers (0)