‎2007 Apr 06 3:10 PM
Hi all,
Is there any FM to raise a error message when when he enter some value..
Thank U
‎2007 Apr 06 3:13 PM
Why do you want a FM, when you have a statement?
message e001(zz) with 'Error occured'.
YOu have to create a message class with a name (say ZZ) in se91 transaction.
Create a message 001 with an &. and Save it.
Regards,
Ravi
‎2007 Apr 06 3:13 PM
You may use any of these:
POPUP_DISPLAY_MESSAGE
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_TO_DECIDE_WITH_MESSAGE
Thanks,
SKJ
‎2007 Apr 06 3:15 PM
tHANKS!
can u please write some code how to use this FM POPUP_DISPLAY_MESSAGE
‎2007 Apr 06 3:18 PM
Here is a sample:
call function 'POPUP_DISPLAY_MESSAGE'
exporting
msgid = 'RP'
msgty = 'S'
msgno = '016'
msgv1 = 'TEST'
msgv2 = 'MESSAGE'.
Thanks,
SKJ
Message was edited by:
SKJ
‎2007 Apr 06 3:22 PM
Hello !
You can also use FM POPUP_TO_DISPLAY_TEXT'
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = 'title'
textline1 = 'first_line'
TEXTLINE2 = 'second_line'
START_COLUMN = 25
START_ROW = 6
.
It depends of what you want exactly.
Have a look on thz SZP developpement class
Mathieu
Message was edited by:
Mathieu ILHE
‎2007 Apr 06 3:33 PM
Actually i want a strong error message without using the message-ID that we maintain in se91...
i want a error message at runtime not using the message_id
‎2007 Apr 06 4:14 PM
‎2007 Apr 06 4:46 PM
Thanks Ravi!
i have used message 'error' type 'E'.
a popup window was displayed as 'error' and it went for short dump...
short dump message as ""
COMMIT-WORK processing must not be interrupted. ""
pls help
‎2007 Apr 06 4:52 PM
Hi Srikanth,
I realize now that you are trying to issue an error mesage in a USER EXIT which you cannot do.
Regards,
Ravi
‎2007 Apr 06 4:54 PM
Hi Ravi Thanks for ur reply!
Exactly...
I want to display this error in a BADI....
PLease can u find any other way to display error message
.
.
.
‎2007 Apr 09 11:58 AM
Check if you have a parameter et_return type bapireturn2 in the BADI.
You can populate this table inside the BAdI , and display teh error messsge once the BAdI is executed.
‎2007 Apr 06 3:13 PM
Why do you want a FM, when you have a statement?
message e001(zz) with 'Error occured'.
YOu have to create a message class with a name (say ZZ) in se91 transaction.
Create a message 001 with an &. and Save it.
Regards,
Ravi
‎2007 Apr 06 4:21 PM
Hi Srikanth,
You can create and use text elements also like the below.
MESSAGE e000 WITH text-001 or write text-001.
Hope this helps.
Thanks,
Srinivas