2008 Mar 18 3:07 AM
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!
2008 Mar 18 3:16 AM
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
2008 Mar 18 3:17 AM
2008 Mar 18 3:28 AM
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.
2008 Mar 18 3:30 AM
2008 Mar 18 4:27 AM
2008 Mar 18 4:30 AM
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