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

Message class in IDOC

Former Member
0 Likes
2,168

Hi

Can any one let me know the message class in IDOC??

Thanks and Regards

Arun Joseph

Hi

Can any one let me know the message class in IDOC??

Thanks and Regards

Arun Joseph

2 REPLIES 2
Read only

Former Member
0 Likes
994

Hi Arun,

we will never use messageclass in idcos.we will use message types in idocs.message class is used to define messages.the tcode is SE91.message type tells which type of data we are sending between systems.we will define a modelview in which we have to specify who is sender,who is reciever and what is the message type.like for material data we will uae MATMAS.for customer related data we will use DEBMAS.for Vendor we will use CREMAS.go to tcode WE81.you will find all the existed message types existed in your system.

reward points if helpful.

Read only

Former Member
0 Likes
994

hi arun,

Creating Message Classes

Procedure

To create a new message class from the ABAP Editor:

In the initial statement (for example, REPORT) or directly in the statement MESSAGE ID <id> enter a parameter value of up to 20 characters as a message ID, for example:

REPORT <name> MESSAGE-ID <message class>.

Messages are stored system-wide. The chosen message ID (message class) must not already exist in the system.

Double-click the message ID.

If you enter an ID that already exists in the system, the system calls up Message maintenance. In this case, enter a different ID. Once you have done this, the system asks you whether you want to create a new message class.

Choose Yes.

The system calls up Message maintenance.

Enter a brief description of the class in Short text.

Choose Save.

Result

You can add messages to your class by choosing the Messages tab. You can always return to the Message maintenance screen by double-clicking a message ID or a message number where it appears in your code.

Configure System Messages

For example, when a user blocks himself out and receives a message :

"User blocked. Contact system administrator"

You can open a repair and change the message in Message class 00.

This can be done in transaction SE91 - Message Maintenance.

Messages allow you to communicate with the users from your programs.

They are mainly used when the user has made an invalid entry on a screen.

To send messages from a program, you must link it to a message class.

Each message class has an ID, and usually contains a whole set of message. Each message has a single line of text, and may contain placeholders for variables (e.g. & & & - three variables).

All messages are stored in table T100.

Once you have created a message, you can use it in the MESSAGE statement in a program.

refer these also

- 72k

- 55k

help.sap.com/saphelp_nw04/helpdata/en/d1/801b3e454211d189710000e8322d00/content.htm - 5k

thanks

karthik

reward me points if usefull