‎2008 Jan 24 4:43 PM
Hi Guys/Girls
I have developed an executable program it works ok but I need to display an informative message box prior to the front screen being displayed to ask the user to do some pre-work before they execute the main program.
Have any of you guru's done this - if so I would appreciate any help.
Some small sample code would be even more helpful.
Many thanks in advance.
Raj
Edited by: Alvaro Tejada Galindo on Jan 24, 2008 11:44 AM
‎2008 Jan 24 4:47 PM
You call FM TR_POPUP_TO_CONFIRM on the INITIALIZATION step.
Greetings,
Blag.
‎2008 Jan 24 4:47 PM
You call FM TR_POPUP_TO_CONFIRM on the INITIALIZATION step.
Greetings,
Blag.
‎2008 Jan 24 5:03 PM
Have you a small example of how to use this especially returning the answer - sorry not sure how to use it.
I'm using it like this but not gettiing anything back when I press No.
DATA: v_ev_answer(3).
CALL FUNCTION 'TR_POPUP_TO_CONFIRM'
EXPORTING
iv_titlebar = 'Pre Work Warning'
iv_text_question = ' Have you done your pre-work? check documentation'
IV_TEXT_BUTTON1 = 'Ja '(D01)
IV_ICON_BUTTON1 = ' '
IV_TEXT_BUTTON2 = 'Nein '(D02)
IV_ICON_BUTTON2 = ' '
IV_WITH_CANCEL_BUTTON = 'X'
IV_START_COLUMN = 10
IV_START_ROW = 6
IMPORTING
ev_answer = v_ev_answer.
‎2008 Jan 24 5:23 PM
Raj,
if you only want to display a message in a small window, no special user response is expected (only to hit Enter), than you can use:
MESSAGE ... DISPLAY LIKE 'I'.
DISPLAY LIKE will display the message as window and user has to press Enter to go on.
hope this helps
ec
‎2008 Jan 24 5:32 PM
Ok..try like this..
CALL FUNCTION 'TR_POPUP_TO_CONFIRM'
EXPORTING
IV_TITLEBAR = 'Pre Work Warning'
iv_text_question = ' Have you done your pre-work? check documentation'
IV_TEXT_BUTTON1 = 'Yes'
IV_TEXT_BUTTON2 = 'No'
IV_WITH_CANCEL_BUTTON = 'X'
IMPORTING
EV_ANSWER = v_ev_answer.