‎2006 Nov 20 6:31 AM
hello..
m printing a range of purchase orders but i want that the printer pop up screen should come only once at the starting..now itz poping up for each purchase order number..
these is becoming tedious to execute..plz suggest a better way..i tries with the
NO_OPEN and NO_CLOSE option of control parameters but unable to solve the problem..
plz explain the sequential procedure of calling these parameters
‎2006 Nov 20 6:43 AM
Declare as specified below.
DATA : WA_CANCELPP TYPE ITCPO.
WA_CANCELPP-TDPREVIEW = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZFORM'
OPTIONS = WA_CANCELPP
DIALOG = ' '.
Dialog must be empty.
u have already posted this thread in form printing also.
‎2006 Nov 20 6:43 AM
Declare as specified below.
DATA : WA_CANCELPP TYPE ITCPO.
WA_CANCELPP-TDPREVIEW = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZFORM'
OPTIONS = WA_CANCELPP
DIALOG = ' '.
Dialog must be empty.
u have already posted this thread in form printing also.
‎2006 Nov 20 6:43 AM
You will be calling the SMART Form in a loop, right?
For the first time when you call, you don't have the Printer parameters, so its important that the popup comes up at least once.
So, once you capture the paramters, you can set the NO_DIALOG = 'X' and clear the value in PREVIEW parameter of CONTROL_OPTIONS
Also set the TDNOPREV = 'X' and set the TDPRINTER to the printer name where you want to print in the OUPTUT_OPTIONS.
This will suppress the dialog.
regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 20 6:44 AM
hi
good
NO_OPEN
TDSFFLAG
CHAR(1)
You use these parameters to include several forms into one print request. When calling the generated functions modules, set the parameters as follows:
1st call: NO_OPEN = SPACE.
NO_CLOSE = 'X'.
nth call: NO_OPEN = 'X'.
NO_CLOSE = 'X'.
last call: NO_OPEN = 'X'.
NO_CLOSE = SPACE .
NO_CLOSE
TDSFFLAG
CHAR(1)
http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm
thanks
mrutyun^
‎2007 Jul 24 8:37 AM
‎2007 Jul 25 10:07 AM