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

Error message

Former Member
0 Likes
1,526

Hi all,

Is there any FM to raise a error message when when he enter some value..

Thank U

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,470

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,470

You may use any of these:

POPUP_DISPLAY_MESSAGE

POPUP_TO_CONFIRM_WITH_MESSAGE

POPUP_TO_DECIDE_WITH_MESSAGE

Thanks,

SKJ

Read only

0 Likes
1,470

tHANKS!

can u please write some code how to use this FM POPUP_DISPLAY_MESSAGE

Read only

0 Likes
1,470

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

Read only

0 Likes
1,470

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

Read only

0 Likes
1,470

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

Read only

0 Likes
1,470

message 'You have an error' type 'E'.

Read only

0 Likes
1,470

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

Read only

0 Likes
1,470

Hi Srikanth,

I realize now that you are trying to issue an error mesage in a USER EXIT which you cannot do.

Regards,

Ravi

Read only

0 Likes
1,470

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

.

.

.

Read only

0 Likes
1,470

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.

Read only

Former Member
0 Likes
1,471

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

Read only

Former Member
0 Likes
1,470

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