on 04-04-2007 2:21 PM
Hi all,
I does not understand the problem that why i am gettting two print outs,how can i restrict a smartform to print only once.
hi
check outputoptions-TDCOPIES .. may be ur passing 2..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for the reply but where do we find the outputoptions in smartforms
in the output options i have following options
page format
chars per inch
lines per inch
style
output format
output mode
output device
in which the last two were disable
Thanks in advance
Message was edited by:
ravulapalli santosh
hi when u t callin gthe smartfom u have to paas the OUTPUT_OPTIONS ans export parameters
in the type output parameters is W_COMPOP type SSFCOMPOP
W_COMPOP-TDCOPIES = 1. "Number of Copies
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = 'X'
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
even you can find ths field when u get the dialog to print.. there u will find numbr of copies in bottom right side.
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K
Thanks for the answers, but i have made them commented in the calling function,for example think that i am calling this smartform from a function module,in that i have commented the ssfcompop,outputoptions and others which were related to the print ,even i am unable to solve the problem.
Thakns n Regards
Santosh.
hi
even u have commented all of them system will populate the value by defaults..
wht i am telling u is once check the values after calling the smartform..
put a breack point in smartform and execute it then check the value of output_options-tdcopies. i beleve it is populating 2 by defaly.. if it is to then pass the value as 1 from u r driver program
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.