cancel
Showing results for 
Search instead for 
Did you mean: 

Printing multiple copies in a smartform

Former Member
0 Kudos

Hi Experts,

I have a requirement to print 4 copies of a layout through smartform and on each copy the title should be changed like this:

Original copy should display ORIGINAL FOR BUYER

1st copy should display DUPLICATE FOR TRANSPORT

2nd copy should display TRIPLICATE FOR ASSESSEE and

3rd copy should display EXTRA Copy.

How to achieve this issue. Please help me in this. Appreciate your inputs on this.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

copy the main and give next page which contains the same code so that all the changes in the main reflects on the next page.You can refer to standard PO forms in that this method is followed.

Edited by: Midhun Abraham on Sep 23, 2008 1:19 PM

Former Member
0 Kudos

Hi

first create a one window "copy window" then create program line to write the code with in the program use system varible sfsy-count = 1, sfsy_copycount = 2 like this then we can solve u r problem

Former Member
0 Kudos

Hi rahul,

Create the program lines for the copies.

if if sfsy-copycount = 001.

text = 'original for buyer'.

elseif...

..............

...............

endif.

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

Create a window as Copies window in The page.

Now check the radiobutton of Output to as - Original and copies-Copies differ.

In the global data take variable as text of character length you want to display.

now Create program lines and take text as output parameter as text.

Write

if sfsy-copycount = 001.

text = 'Original copy.

elseif sfsy-copycount = 002.

text = '2nd copy'.

Endif.

Former Member
0 Kudos

Hi Sujit,

Thanks for your response. But I have a small issue. Please let me know that where(in which window - output options) we need to check the radiobutton of Output to as - Original and copies-Copies differ. I am not able to find it anywhere in the Copy Window. Please help me to solve this issue.

Former Member
0 Kudos

Hi,

When you select the window as Copies window then below that some radiobuttons are displayed in general attributes. Now check the first radiobutton.

No need to check radiobutton here because by default its checked.

Former Member
0 Kudos

Hi Sujit,

I have got my desired result. Thanks a lot man.

Regards,

Rahul

Former Member
0 Kudos

Hi Sujit,

One more issue in addition to this, when i will take a re-print of this layout again in near future, then the title should be "EXTRA COPY". no matter how many copies will be taken.. Please help me in this as well. Appreciate your answer.

Former Member
0 Kudos

Hi Rahul,

In your case you are taking

Original copy should display ORIGINAL FOR BUYER

1st copy should display DUPLICATE FOR TRANSPORT

2nd copy should display TRIPLICATE FOR ASSESSEE and

3rd copy should display EXTRA Copy.

So for Extra copy you can proceed this way-

if sfsy-copycount = 001.

text = 'ORIGINAL FOR BUYER'.

elseif sfsy-copycount = 002.

text = 'DUPLICATE FOR TRANSPORT'.

elseif sfsy-copycount = 003.

text = 'TRIPLICATE FOR ASSESSEE' .

elseif sfsy-copycount >= 004.

text = 'EXTRA Copy'.

endif.

or

Give the number of copies when printing more than 4.

it will take the last Text by default.

Hope it will work.

Former Member
0 Kudos

Hi Sujit,

Thanks for the response. According to this logic, it will print "EXTRA COPY" whenever the copies are more than 3. But my issue is with reprinting. Suppose if we are reprinting the same PO, so in that case, the title should be EXTRA COPY or if its a fresh prining then the previous logic is perfect. Please help me in this. Appreciate your answer.

Former Member
0 Kudos

Hi Sujit,

I haven't got ne solution. if you have ne clues, then please let me know.

Former Member
0 Kudos

Hi Rahul,

I think this smartforms assigend to some printer or fax or etc,

if it is assogend some printer or fax, so in NAST table you got the data.

In Smartform>Form interface>Import Tab Declare like below.

  • i_nast type nast *

after in initilization or in program lines

If i_nast-vstat = 1, it means it is original copy(Very First Copy)

else it is Extra Copy.

If you have need any clarification

let me know

Regards

Jana

Edited by: Janardhan Reddy on Sep 24, 2008 5:12 PM

Former Member
0 Kudos

Hi Rahul,

I am not sure but you can define a counter variable to count the print i,e number of execution of that forms.

Then you can use

if sfsy-copycount = 001 and counter > 1.

text = "Extracopy'.

both the condition when printing.

Former Member
0 Kudos

Hi,

Create Copy window, under Copy window Create fout Text nodes Give conditon for each Node like:

1) SFSY_COPYCOUNT = 1

2) SFSY_COPYCOUNT = 2

3) SFSY_COPYCOUNT = 3

4) SFSY_COPYCOUNT = 4

respectively

1) Original copy should display ORIGINAL FOR BUYER

2) 1st copy should display DUPLICATE FOR TRANSPORT

3) 2nd copy should display TRIPLICATE FOR ASSESSEE and

4) 3rd copy should display EXTRA Copy

Regards

Jana