on 02-26-2009 4:12 AM
Hi All,
I have done a script for the WC Document,
But now the client requires it to print it only once for a particular document number,
How can we do. Is there any such coding to restrict the print only once per document.
If anyone knows the solution please post it
If you're using the standard output functionality, then this may be accomplished by a change in the output type (transaction NACE). There is a checkbox 'Multiple issuing'. If it's unchecked, the output will be issued only once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check the entry in nast table if you find more than 1 enrty that is repeated print .....
select objky
kschl
erdat
eruhr
vstat from nast into table gt_date
where objky eq gv_del_num. ---> document number
if sy-subrc eq 0.
sort gt_date by objky erdat descending .
describe table gt_date lines lv_n.
if lv_n gt 1.
gv_repeat = lc_x.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
to add on what kartik suggested just put check in that ztable once your document executed.
save document no. and with flag set 'X'.
and before printing the form . select the doc no. in the table if found then no need to print the form.
else go ahead.
this way you can skip the check field also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
what u can do is, create a ztable with entries of document number and a checkbox.
every time u execute the script check whether the particular doc number has already been executed or not. if yes then give error message or else process ur script and update the ztable with the current entry.
кu03B1ятu03B9к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.