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

POP UP Function Module

Former Member
0 Likes
763

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
Read only

Former Member
0 Likes
742

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

Read only

Former Member
0 Likes
742

POPUP_TO_CONFIRM

Read only

Former Member
0 Likes
742

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.

Read only

Former Member
0 Likes
742

hi,

POPUP_TO_CONFIRM

Read only

Former Member
0 Likes
742

Hi,

Use This FM POPUP_TO_CONFIRM

Regards

Sandipan.

Read only

Former Member
0 Likes
742

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