Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartfrom + print popup

vallamuthu_madheswaran2
Active Contributor
0 Likes
834

Hi Friends,

Please find the image below. How can I suppress the popup in SmartForm.

print.png

2 REPLIES 2
Read only

gphadnis2000
Participant
0 Likes
727

Hi Madheswaran,

Please pass no_dialog = abap_true or 'X' so popup will not come for smartforms.

DATA(gs_control) = VALUE ssfctrlop( no_dialog = 'X' preview = 'X' ).

CALL FUNCTION gv_fm_name

  EXPORTING

    control_parameters = gs_control

    output_options     = gs_options

    user_settings      = space

  EXCEPTIONS

    formatting_error   = 1

    internal_error     = 2

    send_error         = 3

    user_canceled      = 4

    OTHERS             = 5.

IF sy-subrc <> 0.

  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Thanks and Regards,

Gaurav Phadnis

Read only

Sandra_Rossi
Active Contributor