on 09-23-2008 7:47 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rahul,
Create the program lines for the copies.
if if sfsy-copycount = 001.
text = 'original for buyer'.
elseif...
..............
...............
endif.
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.