Application Development 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: 

Output to be printed directly with out the print dialog box

Former Member
0 Kudos

Hi all,

I have requirement where I donu2019t want the print output dialog screen to be displayed, and the script needs to be directly printed to the output device.

I am actually passing the following parameters

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMS =

DEVICE = 'PRINTER'

DIALOG = ''

FORM = 'ZUSP2P_PICK_PO_L'

LANGUAGE = SY-LANGU

OPTIONS = LS_ITCPO

In the ls_itcpo, I am passing the following details,

LS_ITCPO-TDPREVIEW = ' '.

LS_ITCPO-TDIMMED = 'X'.

LS_ITCPO-TDNOPREV = 'X'.

LS_ITCPO-TDPROGRAM = SY-REPID.

LS_ITCPO-TDNEWID = 'X'.

LS_ITCPO-TDDEST = P_TDDEST.

I donu2019t want this screen to be displayed. Please suggest me a solution.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

provide space for dialogue parameter, i hope it will solve ur problem

3 REPLIES 3

Former Member
0 Kudos

Hi ,

provide space for dialogue parameter, i hope it will solve ur problem

0 Kudos

i solved it myself .Thanks

Former Member
0 Kudos

Hi Shobana,

In the structure ls_itcpo , please pass the value of the No print preview as LS_ITCPO-TDNOPREV = '1' instead of passing the value as 'X'.

This field will accept both numeric or text value.

Hope this will solve your problem.

Thanks

Booma