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

urgent

Former Member
0 Likes
1,315

how to get prompt message in abap.

1 ACCEPTED SOLUTION
Read only

asik_shameem
Active Contributor
0 Likes
1,288

Hi,

U can use the FM POPUP_TO_CONFIRM.

how to get prompt message in abap.

7 REPLIES 7
Read only

Former Member
0 Likes
1,288

Hi,

use message option

mesage i001(zmsg) with 'Your Message here'.

i-information

s-status

a-abend

w-warning

e-error

zmsg - message class tcode se91

001-message code described in message class

Regards,

V.Balaji

Reward if Usefull...

Read only

Former Member
0 Likes
1,288

Hi,

I have sent you the different kinds of message types available. You can use different message variants along with the message type to dispay messages as per your requirements.

As with your requirement for prompting message you can use Type I or S.

type>message>behaviour-->Message appears in

s >Status message>Program continues without interruption-->Status Line in next screen

i > Information>Program continues after interruption-->Modal dialog box

w>Warning>Context dependent-->Status bar

e>Error>Context dependent-->Status bar

a>Termination>Program aborted-->Modal dialog box

x>Short dump>Runtime error MESSAGE_TYPE_X is triggered-->Short dump

Reward if useful.

Read only

Former Member
0 Likes
1,288

Hi,

Check the below code.

data: v_num1 type i value 30,

v_num2 type i value 20.

if v_num1 > v_num2.

message 'Num1 is greater' type 'S'.

else.

message 'Num2 is greater' type 'S'.

endif.

Read only

Former Member
0 Likes
1,288

to get an promt the the message type which is being used is either I or S depends on the conditions where as

I stands for information massage

and

S stands for success

rest types of message idplay the massage in status bar

so to solve ur problem u can use aither one of them

as per the conditions

Read only

asik_shameem
Active Contributor
0 Likes
1,289

Hi,

U can use the FM POPUP_TO_CONFIRM.

Read only

abapdeveloper20
Contributor
0 Likes
1,288

Hi,

Use like this in a simple way

instead of specific function module u can use

POPUP_FOR_INFORMATION

POPUP_TO_DECIDE_WM

POPUP_TO_FETCH_ONE_VALUE

POPUP_WITH_2_BUTTONS_TO_CHOOSE

POPUP_WITH_3_BUTTONS_TO_CHOOSE

PERFORM CALLERR USING
       'No Employee found...'.

*---------------------------------------------------------------------*
*       FORM CALLERR                                                  *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  -->  TEXT                                                          *
*---------------------------------------------------------------------*
FORM CALLERR USING TEXT.
  CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
       EXPORTING
            POPUP_TITLE  = 'Family Details Report'
            IS_ERROR     = 'X'
            MESSAGE_TEXT = TEXT
            START_COLUMN = 30
            START_ROW    = 8.
ENDFORM.

This will solve ur problem

Reward points if its is useful

~Lakshmiraj~

Read only

Former Member
0 Likes
1,288

Type Meaning Behavior Message appears in

s Status message Program continues without interruption Status Line in next screen

i Information Program continues after interruption Modal dialog box

w Warning Context dependent Status bar

e Error Context dependent Status bar

a Termination Program aborted Modal dialog box

x Short dump Runtime error MESSAGE_TYPE_X is triggere Short dump

Hi,

I have sent you the different kinds of message types available. You can use different message variants along with the message type to dispay messages as per your requirements.

As with your question for prompting you can use Type I or S.

Reward if useful.