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

Message Before Main Screen

Former Member
0 Likes
683

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
659

You call FM TR_POPUP_TO_CONFIRM on the INITIALIZATION step.

Greetings,

Blag.

4 REPLIES 4
Read only

Former Member
0 Likes
660

You call FM TR_POPUP_TO_CONFIRM on the INITIALIZATION step.

Greetings,

Blag.

Read only

0 Likes
659

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.

Read only

0 Likes
659

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

Read only

0 Likes
659

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.