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

How can we create ERROR MESSAGE ?

Former Member
0 Likes
8,904

Hi Abapers,

How can we create ERROR MESSEAGE?

Waht is the T-Code used?

Early reply is highely appriciable?

Regards,

chow

1 ACCEPTED SOLUTION
Read only

Former Member
3,832

Step1

Go to TCODE SE91

Create Message Class ZMSGID.

001 - Wrong Entry.

Step2

Create a program

Message E001(ZMSGID).

This will give you a error message.

santhosh

3 REPLIES 3
Read only

Former Member
0 Likes
3,832

In order to add new messages of any type, go to transaction SE91 and create a new message class or add new mesages to an existing one.

Read only

Former Member
3,833

Step1

Go to TCODE SE91

Create Message Class ZMSGID.

001 - Wrong Entry.

Step2

Create a program

Message E001(ZMSGID).

This will give you a error message.

santhosh

Read only

Former Member
0 Likes
3,832

Or you can use a FM:

CALL FUNCTION 'BALW_BAPIRETURN_GET2'

EXPORTING

TYPE = 'E'

CL = 'ZMSGID'

NUMBER = '001'

IMPORTING

RETURN = wa_return.

APPEND wa_return TO return.

Edited by: dries droesbeke on Jul 2, 2008 8:22 AM