POPUP_TO_CONFIRM Messages in sap abap programming

Some time required to take user action so we put the error messages as per the below

DATAzz_answer TYPE c.
            CALL FUNCTION 'POPUP_TO_CONFIRM'
              EXPORTING
                titlebar              'Warning Message'
                text_question         'Messages to popup to cofirm'
                text_button_1         'Yes'
                text_button_2         'No'
                default_button        '2'
                display_cancel_button ''
              IMPORTING
                answer                zz_answer
              EXCEPTIONS
                text_not_found        1
                OTHERS                2.
            CASE zz_answer.
              WHEN '1'.
*              Process further checks
              WHEN '2'.
                SET SCREEN 0.
                LEAVE TO  SCREEN 4001.

              WHEN OTHERS.
            ENDCASE.

Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

MB_MIGO_BADI THIS BADI USED TO POSTING DATA IN MIGO

Long Text in input and output field in module pool