2008 Apr 01 6:29 AM
2008 Apr 01 7:07 AM
how to get prompt message in abap.
2008 Apr 01 6:31 AM
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...
2008 Apr 01 6:39 AM
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.
2008 Apr 01 6:57 AM
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.
2008 Apr 01 6:58 AM
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
2008 Apr 01 7:07 AM
2008 Apr 01 7:27 AM
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~
2008 Apr 01 11:41 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |