CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
* TITLEBAR = ' '
* DIAGNOSE_OBJECT = ' '
text_question =
* TEXT_BUTTON_1 = 'Ja'(001)
* ICON_BUTTON_1 = ' '
* TEXT_BUTTON_2 = 'Nein'(002)
* ICON_BUTTON_2 = ' '
* DEFAULT_BUTTON = '1'
* DISPLAY_CANCEL_BUTTON = 'X'
* USERDEFINED_F1_HELP = ' '
* START_COLUMN = 25
* START_ROW = 6
* POPUP_TYPE =
* IV_QUICKINFO_BUTTON_1 = ' '
* IV_QUICKINFO_BUTTON_2 = ' '
* IMPORTING
* ANSWER =
* TABLES
* PARAMETER =
* EXCEPTIONS
* TEXT_NOT_FOUND = 1
* OTHERS = 2
.
*------------------------------------------
EXPORTING
* TITLEBAR = ' '
* DIAGNOSE_OBJECT = ' '
text_question =
* TEXT_BUTTON_1 = 'Ja'(001)
* ICON_BUTTON_1 = ' '
* TEXT_BUTTON_2 = 'Nein'(002)
* ICON_BUTTON_2 = ' '
* DEFAULT_BUTTON = '1'
* DISPLAY_CANCEL_BUTTON = 'X'
* USERDEFINED_F1_HELP = ' '
* START_COLUMN = 25
* START_ROW = 6
* POPUP_TYPE =
* IV_QUICKINFO_BUTTON_1 = ' '
* IV_QUICKINFO_BUTTON_2 = ' '
* IMPORTING
* ANSWER =
* TABLES
* PARAMETER =
* EXCEPTIONS
* TEXT_NOT_FOUND = 1
* OTHERS = 2
.
*------------------------------------------
* EXPLANATION:
*------------------------------------------
1. TITLEBAR => Text to be displayed on the title bar of the modal dialog box.
2. DIAGNOSE_OBJECT => Diagnosis text (DOKHL-OBJECT). It must be created and maintained via T-Code SE61, document class equals to Dialog Text (DT).
3. TEXT_QUESTION => Text line to be displayed on Modal Dialog Box. Screen length is dynamically adjusted.
4. TEXT_BUTTON_1 => Text to be displayed on Button 1.
5. ICON_BUTTON_1 => Icon to be displayed on Button 1. (Any ICON-NAME)
6. TEXT_BUTTON_2 => Text to be displayed on Button 2.
7. ICON_BUTTON_2 => Icon to be displayed on Button 2. (Any ICON-NAME)
8. DEFAULT_BUTTON => Cursor Position
· '1' = Button 1
· Other values = Button 2
9. DISPLAY_CANCEL_BUTTON => 'X' or SPACE. ‘X’ to display cancel button
10.USERDEFINED_F1_HELP => Must be created and maintained via T-Code SE61 (DOKHL-OBJECT). This will create additional information button after Button 2 and before cancel button (if applicable).
11.START_COLUMN => x position of the modal dialog box
12.START_ROW => y position of the modal dialog box
13.POPUP_TYPE => Icon to be displayed at the left hand side of the modal dialog. Allowed value includes 'NO_ICON' or the icon name in the following list:
14.IV_QUICKINFO_BUTTON_1 => Quick Information Text to be displayed when cursor scrolled over button 1.
15.IV_QUICKINFO_BUTTON_2 => Quick Information Text to be displayed when cursor scrolled over button 2.
16.ANSWER => Result of the button pressed.
· 'A' = Cancel Button
· '1' = Button 1
· '2' = Button 2
17.PARAMETER => You can maintain parameter in the text. Parameter must be written in uppercase and enclosed with ampersands. For e.g. &AMOUNT& is written in the Diagnosis Text maintained in SE61. Then PARAMETER-PARAM = 'AMOUNT', PARAMETER-VALUE = '10.00'.
*------------------------------------------
* SCREEN SHOT:
*------------------------------------------
*------------------------------------------
* NOTE:
*------------------------------------------
Please refer to SAP sample program RSSPO120 for more information.