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

(copy windo) Runtime printed number in smartforms

Former Member
0 Likes
445

Dear Expert,

I created smartform(customise) .It is running fine

using customing transaction code(tc-zqa33).

I used copy windo and created text (&SFSY-COPYCOUNT&)

I have taken printout.Fist time it is showing 1.

Again i have taken printout for same number(unique)

stil is is showing one.

i want second time show - 2.

third time show - 3.

like this

lastprinout copy + current printout = Show in outout.

Please suggest me solution

Thanks in advance

jyoti prakash

2 REPLIES 2
Read only

Former Member
0 Likes
418

Hi

U should run the sf as many times as many the copy to be printed are, only in this way u can print different value in the copy window:

DO COPY_TIMES TIMES.
   
   NR_COPY = SY-INDEX.

   CALL SF.

ENDDO.

U should replace SFSY-COPYCOUNT with NR_COPY.

Max

Read only

former_member226999
Contributor
0 Likes
418

If you take 3 copy of at the one print process then it will show 1,2,3 but it is not the field which can tell you how many total print out has been done upto now.

May be you can check NAST table and find out how many times the form was printed and then put a logic to count it and display.

Hope this helps.

Fran

Edited by: Franc on Jul 9, 2008 11:48 AM