To Print the DUPLICATE text on the second invoices , you have to write a logic either in the SMARTFORM /SAPSCRIPT
For this you have to check the NAST table
For every Second copy the NAST table will have another Output and the Original OUTPUT status will be 1 ( processed)
Check this from the NAST table for your Application and the OUTPUT combination.
If the VSTAT is 1 then you can considere the remaining copies will be duplicate.
In the SMARTFORM put a logic as
REPEAT = X
which will check the NAST tables for the repeated outputs and will print the DUPLICATE text.
try this and revert back if you have any queries
I do have access, I tried my level best with my ABAP knowledge, and now I am able to print Duplicate on second invoice print, but client wants to print 'Original' on first invoice. Here I am facing Problem.
If I include Original in different Text option, only Original text is getting printed on every invoice. if I remove this Test item, then I am able to print 'duplicate' on Second print and First print is not print anything, where as I want to print 'Original' on first print.
can you please help me to solve this.
For this change we have to go for an ABAP code.
Goto the T.Code "NACE".
Select your application as "V3(Billing)".Click on "Output types".
Select your output type and click on Processing routines.
Check the smartform and program for your medium.
If you are using smartform go to the T.Code "SMARTFORMS" and enter your smartform here.
Here you have make changes or you can make the changes in the form also.
Before this check whetehr the entry is there in "NAST" table or not.
If it is there then the repeat will be active else not.
When you print first time, it will update the table NAST, with the Object Number and the Output Type, the processing status will be set to 1 (ie Successfully processed) Field Name VSTAT.
In case you want the duplicate copy to be printed for every reprint of the Invoice, you could inform your Technical Consultant (ABAPer) to check the entry in NAST Table for the particular combination of Object Number and Output Type and VSTAT = 1.
If it successful, then you should print DUPLICATE COPY, which is maintained as a Text in the Smartform assigned to the particular output type. This text will be printed conditionally depending on the success of check mentioned in second para above.
You will have to maintain another Text "ORIGINAL" as you might have already done I presume.
Now you will have to maintain condition which is converse of the condition explained for printing of "DUPLICATE".
ie You should check for the status VSTAT <> 1 if successful print "ORIGINAL".