on 02-10-2011 8:55 AM
Hello,
I develop a smartform with one page and three copies are there.
On first it wa written ORIGINAL, on second DUPLICATE and third one is TRIPLICATE.
In my driver program i use do undo statement 3 time with different text and call my FM for smartform in that.
Now user have to give print command three times to print that. he want to give one print command and three copies will print.
How to do that ????
Please help
With Regards,
Nitin
Hi,
You can solve this problem by creating three pages of which the first page is the ORIGINAL page and the windows in the second and the third page is the copy of the windows in the first page. To display the text as DUPLICATE and TRIPLICATE, instead of copying that window from the first page you can create new windows in the second and third page , This will make 3 copies of the page with different texts as ORIGINAL, DUPLICATE and TRIPLICATE.
Regards,
Praveenkumar T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii nitin,
create a window with window type as copy wondow
and for 3 pages you have created text feild in text feild under condition tab sfsy-copycount = 1 similarly for 2 and 3 pages.while at the print preview give how many copies u need.
regards,
sri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Making changes to your driver program with the sample code that is stated below, may help to reslove your issue.
DO 3 Times.
IF SY-index = 1.
label = 'Original'.
IF SY-INDEX = 2.
label = 'Duplicate'.
IF SY-index = 3.
Label = 'TRIPLICATE'
CALL FUNCTION lv_fm_name...
EXPORTING
GV_LABEL = label.
ENDDO.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can still use the same idea which I mentioned in the previous post by creating Copies Window.
Add the text "Original" or "Duplicate" or whatever based on the system variable SFSY-COPYCOUNT.
Alternatively you can do like this .
gs_control_param-no_open = 'X'.
gs_control_param-no_close = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
control_parameters = gs_control_param..
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lv_formname..
CALL FUNCTION lv_fm_name... " Do this for 3 outputs
CALL FUNCTION 'SSF_CLOSE'
Search SDN with "multiple smartform into single spool"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the smartform FM, just set the no of copies as below.
OUTPUT_OPTIONS-TDCOPIES = '3'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.