Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dulicate

Former Member
0 Likes
898

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

6 REPLIES 6
Read only

Former Member
0 Likes
862

Hello,

Check like this

 if &PAGES& = 1
             &TEXT& = 'Original'
else
             &TEXT& = 'Duplicate'
endif

Regards,

Vasanth

Read only

Former Member
0 Likes
862

do this way...

if &PAGES& = 1.

&TEXT& = 'Original'.

else.

&TEXT& = 'Duplicate'.

endif.

Read only

Former Member
0 Likes
862

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

Read only

Former Member
0 Likes
862

And what abt smartforms ????????

Read only

0 Likes
862

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

Read only

Former Member
0 Likes
862

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 ??????