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

Stop program execution until user accept by a pop-up

Former Member
0 Likes
1,292

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,007

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,007

hi,

DATA:

lt_fields TYPE STANDARD TABLE OF sval.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

...

IMPORTING

...

TABLES

fields = lt_fields.

hope this helps!!!

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,007

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

Read only

Former Member
0 Likes
1,007

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.

Read only

0 Likes
1,007

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

Read only

Former Member
0 Likes
1,008

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

Read only

0 Likes
1,007

I was searching for only one button popup but i adapt my program to use this.

Thanks!!!