on 10-14-2010 10:48 AM
Hi Friends,
I got one issue in Scripts. I want to print 3 copies. In that script, first copy should display 'Original' and other 2 copies doesn't display anything. Now I have created a Original window, but it is displaying 'Original' for all the 3 copies. How to restrict 'Original' only for first copy? Please help me.
Regards,
Sruthi.
Think a bit more about what can/shall happen there are way more possibilities.
1. you print your form with 3 copies, 1 should have "original" on it and the 2 copies not. Now you print it again with 3 copies, what shall happen? Again the same? Or should none of the 3 newly printed form have original on it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well yeah, i understand that problem. What i wanted to know is, if you print your 3 copis a second time, should the first one again be original? That would be a really rare requirement since in case it is a 1 original and 5 copies then and not 2 originals and 4 copies.
I hope you got my point.
Anyway normally you check for NAST-records.with vstat 1. Means you do a select on table NAST with KSCHL, OBJKY and VSTAT = 1. if sy-subrc <> 0, print original, otherwise print copy or nothing.
This approach results in just the first one will be named "original" and every following not, even if you print it half a year later.
If you need to print original on the first one again when doing this for a second time i´d propose to install a counter variable in your driver program, which counts the number of the actual copy beeing printed. Then print "original" only if it is 1.
User | Count |
---|---|
76 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.