on 06-16-2009 9:50 AM
Hi all,
I developed a smartform for goods receipt. I wrote a driver program and called the smart form with in a loop and print dialogue comes as many times the loop rotates, but i want to make the dialogue to come only once for the first time. please let me know whether any posiblity available.
Regards,
Nagesh
In the control parameters u have NO_DIALOG, check sy-tabix and if its ge 1 then set NO_DIALOG = 'X'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I checked sy-tabix and give if sy-tabix <> 1, then no dialog. The dialogue is not appearing, but the print preview also is not displaying,
Actually my requirement is, when user clicks print for the first time when the dialogue box appears, then if he gives 50 records in selection screen, they shud all be printed all at a time without the dialogue box appearing all the 50 times.
Regards,
Nagesh
Hello Nagesh,
Just need to kep your smartform Funtion Module under a IF condition.
ex.
DATA: flag TYPE c.
IF flag = ' '.
CALL FUNCTION fm_name.
Exporting.
.....
....
Importing
...
Table
....
Exception.
IF sy-subrc = 0.
FLAG = 'X'.
ENDIF.
ENDIF.
Hope this will solve your problem.
Best of luck,
Cheers,
Suvendu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use condition "if sy-tabix eq '1'."
regards,
manjula
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.