‎2007 Jun 27 3:17 PM
my requirment :
while printing forms : on the first copy i want 'original ' to be printed and from 2nd print out onwards 'duplicate ' has to be printed.
can any one tell me how
both in
1. sap scripts
2.smartforms
‎2007 Jun 27 3:23 PM
Hello,
Check like this
if &PAGES& = 1
&TEXT& = 'Original'
else
&TEXT& = 'Duplicate'
endif
Regards,
Vasanth
‎2007 Jun 27 3:25 PM
do this way...
if &PAGES& = 1.
&TEXT& = 'Original'.
else.
&TEXT& = 'Duplicate'.
endif.
‎2007 Jun 27 3:26 PM
Hi
Based on the NAST table fields I think you can fire this and print this..
Use the NAST table fields VSTAT or REPET for giving the condition
if NAST-VSTAT = 0.
use Original
else
Duplicate
endif.
Reward points for useful Answers
Regards
Anji
‎2007 Jun 27 3:29 PM
‎2007 Jun 27 3:39 PM
In Smart forms u can do that as follows.
right click & Choose Create - FlowLogic - Alternative
There u will get 2 events - <b>True & other False</b>
U can check whether its first row r not based on that u can give ur own text there.
One way is in <b>Function module</b> u should pass First Field say first VBELN in program itself
If u have any confusion revert back
‎2007 Jun 28 1:49 PM
if &PAGES& = 1.
&TEXT& = 'Original'.
else.
&TEXT& = 'Duplicate'.
endif.
**************************
by doing this way only from second page it ll be prited as DUPLICATE....
that is not i want from the second set of copy i want this to be done....
say my script has 5pages.........i need to print 3(i.e 5*3 pages) sets so from second set on i want DUPLICATE to be printed.........in scripts and smartforms any help ??????