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

SMARTFORMS

Former Member
0 Likes
641

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
623

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.

5 REPLIES 5
Read only

Former Member
0 Likes
624

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.

Read only

Former Member
0 Likes
623

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

Read only

Former Member
0 Likes
623

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^

Read only

Former Member
0 Likes
623

THANKS

Read only

Former Member
0 Likes
623

thanx