cancel
Showing results for 
Search instead for 
Did you mean: 

Print Dialogue box occurence

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member205763
Active Contributor
0 Kudos

In the control parameters u have NO_DIALOG, check sy-tabix and if its ge 1 then set NO_DIALOG = 'X'

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

use condition "if sy-tabix eq '1'."

regards,

manjula