2006 Dec 13 5:06 PM
Hi,
I want to stop the program execution until the user read and close a pop-up that i throw in a badi. Someone can give me an idea?
Thanks to all,
Nacho
2006 Dec 14 4:42 PM
Hi Ignacio,
try this:
DATA: ANSWER(01) TYPE C.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Question'
TEXT_QUESTION = 'Must the Report STOP?'
TEXT_BUTTON_1 = 'Ja'
ICON_BUTTON_1 = 'ICON_LED_GREEN'
TEXT_BUTTON_2 = 'Nein'
ICON_BUTTON_2 = 'ICON_LED_RED'
DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = ' '
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = ANSWER
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
*
IF ANSWER = '1'.
STOP.
ENDIF.
WRITE: 'N'.
Regards, Dieter
Or you can simply use an information message.
message I001(00) with 'Hey, Read This'.User will need to hit enter, which will close the dialog and continue with the program execution.
Regards,
Rich Heilman
2006 Dec 13 5:17 PM
hi,
DATA:
lt_fields TYPE STANDARD TABLE OF sval.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
...
IMPORTING
...
TABLES
fields = lt_fields.
hope this helps!!!
2006 Dec 13 5:22 PM
2006 Dec 13 5:31 PM
I may be mistaken but I think it's not possible to directly call a popup from within a BADI. Although, calling a popup function module should work..... in theory.
2006 Dec 14 4:30 PM
Hi,
It is possible to lunch a pop-up in a badi. The main problem of the other solution is that i dont want to insert a value o whatever, only show a message.
Thanks
2006 Dec 14 4:42 PM
Hi Ignacio,
try this:
DATA: ANSWER(01) TYPE C.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Question'
TEXT_QUESTION = 'Must the Report STOP?'
TEXT_BUTTON_1 = 'Ja'
ICON_BUTTON_1 = 'ICON_LED_GREEN'
TEXT_BUTTON_2 = 'Nein'
ICON_BUTTON_2 = 'ICON_LED_RED'
DEFAULT_BUTTON = '2'
DISPLAY_CANCEL_BUTTON = ' '
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = ANSWER
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
*
IF ANSWER = '1'.
STOP.
ENDIF.
WRITE: 'N'.
Regards, Dieter
2006 Dec 15 10:54 AM
I was searching for only one button popup but i adapt my program to use this.
Thanks!!!
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |