on 02-12-2009 5:16 AM
Hi All,
1. I have some code which generates a SAP Script using the form.
2. When I execute the Program, it asks for Print Prieview Dialog Box.
3. I created a header structure for the type ITCPO and passed the required parameters to the FM to suppress that window.
4. But, I could see the dilalog box again popping out asking us to select Print Preview/Print.
Here is the code that I used :
data : l_itcpo type itcpo.
l_itcpo-TDDEST = 'LP01'.
l_itcpo-TDNOPREV = 1.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZBNCHSS_FORM'
LANGUAGE = SY-LANGU
OPTIONS = l_itcpo
Please advice on this.
I repeat my requirement. As soon as I execute the program, I want the scipt output on to the screen without any dialog box in between.
HI,
try this
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = ' '
FORM = 'ZBNCHSS_FORM'
LANGUAGE = SY-LANGU
OPTIONS = l_itcpo
Regards,
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The requirement can be solved by changing user profile settings for printing with the help of basis.
I have achieved the same.
Regards,
Rajanbabu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you change the code as below and test it to see if it works?
L_ITCPO-TDNOPREV = 'X'. "<-----change this line only to test
Let me know if it worked.
Sougata.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try this .
Goto select menus system tab-->user profile->owndata->defaults->spoolcontrol--->
write printer name,check output immediately.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.