on 02-17-2011 7:12 AM
Hello,
I would like to differentiate the invoice form during the printing.
When I print the invoice for the first time, I would like to display ORIGINAL in the invoice, et for the other print COPY.
The ORGINAL form must print just one time, and the other must be forms with the tile of COPY.
Somebody can help me to solve this pb?
Who know which requirement of the output type I could use?
Thank a lot
Regards
Kari
Hi
Use the below code to identify if the printout is an original or a copy.
Check if original or facsimile
SELECT vstat INTO TABLE t_vstat FROM nast
WHERE kappl = nast-kappl
AND objky = nast-objky "Invoice no
AND kschl = nast-kschl
AND spras = nast-spras
AND parnr = nast-parnr
AND parvw = nast-parvw
AND nacha BETWEEN '1' AND '4'
AND vstat = '1'.
IF sy-subrc EQ 0.
w_repeat = c_facsimile.
ELSE.
w_repeat = c_original.
ENDIF.
Hope this helps.
Thanks
Edited by: Sumit Naik on Feb 20, 2011 10:54 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Below field will tell you whether the invoice has been printed or not.
IF NAST-ANZAL = '1'.
-
> ORIGINAL
ELSE.
---> Duplicate
ENDIF.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the NAST table , in this table every print you will find one entry,.
if more than one entry found that is COPY , if you only one entry that iss ORIGINAL...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
create a copies window (Original & Copies - Copy differ) in your smartform where you need the text (Original/Copy/..).
Inside the window, create 2 text elements, one for Original with condition SFSY-COPYCOUNT = 1 and other for Copy with condition SFSY-COPYCOUNT > 1.
In the print Dialog (OUTPUT_OPTIONS-TDCOPIES), set the number of copies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii,
1. create a window with window type as copy window.
2. create a text elements under that window.
3. In text feild under condition tab specify sfsy-copycount = 1(similarly for many copies you need)oroginal
sfsy-copycount = 2 (copy)
4. specify how many copies u need in print preview.
regards,
Sri.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.