cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up issue during printing the smartform.

Former Member
0 Kudos

Hello All,

I have a requirement where i need to have a pop up for the first time when a smartform is executed and for the rest of smart forms in the same loop ,i need to supress the pop up.Here the printer which is choosen by the user in the first POPUP should be automatically assigned for the next few smartforms which doest have pop up...

eg:

i have values x =1

and smartforms A and B

when i execute the smart forms keepinthem in loop.

i need to get the pop up for only A and B should not show pop up.

and B should have the same printer as A.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

In the control_parameters parameter always mark with an 'X' the no_close field.

After the first loop passes, mark the field no_open to avoid the printer popup in the next loops

When the loops finish call FM 'SSF_CLOSE' and that's it

Former Member
0 Kudos

do u have any example code for it ...that could be helpful for me.

Former Member
0 Kudos
w_ssfctrlop-no_close = 'X'.
    LOOP AT i_alv_temp INTO w_alv_temp.
          CALL FUNCTION l_fname
             EXPORTING
                  control_parameters = w_ssfctrlop
             TABLES
                  i_alv              = i_alv_lista
             EXCEPTIONS
                  user_canceled      = 1.
        IF sy-subrc <> 0.
          l_canc = 'X'.
        ENDIF.
        w_ssfctrlop-no_open = 'X'.
    ENDLOOP.
CHECK l_canc IS INITIAL.
    CALL FUNCTION 'SSF_CLOSE'.