Application Development 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: 

POP UP Function Module

Former Member
0 Kudos
102

Hi,

I want to use an FM for pop up messages whihc validate if its going to proceed with the processing or it will go back to the selection screen depending on the selected button (check or X). Would you know what FM will I use for it? Thanks!

6 REPLIES 6

Former Member
0 Kudos
81

Hi Mark,

Please check the below FM 'POPUP_TO_CONFIRM' :

Data: d_response(1). " Response from popup

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

TITLEBAR = 'Create Sales Order '

  • DIAGNOSE_OBJECT = ' '

TEXT_QUESTION = 'Create sales order?'

TEXT_BUTTON_1 = 'YES'(001)

  • ICON_BUTTON_1 = ' '

TEXT_BUTTON_2 = 'NO'(002)

  • ICON_BUTTON_2 = ' '

  • DEFAULT_BUTTON = '1'

DISPLAY_CANCEL_BUTTON = 'X'

  • USERDEFINED_F1_HELP = ' '

  • START_COLUMN = 25

  • START_ROW = 6

  • POPUP_TYPE =

IMPORTING

ANSWER = d_response

  • TABLES

  • PARAMETER =

EXCEPTIONS

TEXT_NOT_FOUND = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

-


Regards,

Abhishek

Former Member
0 Kudos
81

POPUP_TO_CONFIRM

Former Member
0 Kudos
81

Hi,

Use this FM.

data RESULT TYPE C.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   TITLEBAR                    = 'Confirmation Message '
    TEXT_QUESTION         = ;Do u want to close'
   TEXT_BUTTON_1               = 'Yes'
   ICON_BUTTON_1               = 'ICON_OKAY'
   TEXT_BUTTON_2               = 'No'
   ICON_BUTTON_2               = 'ICON_CANCEL'
   DEFAULT_BUTTON              = '1'
   DISPLAY_CANCEL_BUTTON       = ' '
 IMPORTING
   ANSWER                      = RESULT
    EXCEPTIONS
      TEXT_NOT_FOUND = 1
      OTHERS         = 2.

          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.                    " exit_tcode


 IF RESULT = 1.
        LEAVE PROGRAM.
 ENDIF.

Regards,

Balakumar.G.

Reward Points if helpful.

Former Member
0 Kudos
81

hi,

POPUP_TO_CONFIRM

Former Member
0 Kudos
81

Hi,

Use This FM POPUP_TO_CONFIRM

Regards

Sandipan.

former_member200338
Active Contributor
0 Kudos
81

Hi,

Goto transcation BIBS. click on Prompts link. you will find the different types of prompt dialog boxes with explantion.

use the one which suits ur requirement.

Regards,

Niyaz