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 Classes

Former Member
0 Likes
1,459

How do I use the program generated messages in my program.

In my code when I create a material, i get a message 'Material created or extended' in status bar. From where do i include this message in program.

8 REPLIES 8
Read only

Former Member
0 Likes
1,091

Hi,

These messages may be captured in the call transaction statement like below


data: begin of msstab occurs 0.
 include structure bdcmscoll.
data :end of msstab.
call transaction 'MM01' messages in MSSTAB mode 'a'.

You will get all the message in your internal table then you can use them.

Regards,

Himanshu Verma

Read only

0 Likes
1,091

the message i am getting in status bar is not being captured in bdcmsgcoll

Read only

0 Likes
1,091

the message i am getting in status bar is not being captured in bdcmsgcoll

Read only

Former Member
0 Likes
1,091

in your logic after everthing is completed ok

MESSAGE S###.

S is for Status

I is for Info

W is for warning.

If S doesn't do what you want, try the other prefix.

Read only

Former Member
0 Likes
1,091

Hello,

Try this:


MESSAGE i014(sabapdocu). 

Where i is the message type , 014 is the message number (you can get it at transaction SE91 and sapabapdocu is the message class.

Regards.

Read only

Former Member
0 Likes
1,091

Hello,

Try this:


MESSAGE i014(sabapdocu). 

Where i is the message type , 014 is the message number (you can get it at transaction SE91 and sapabapdocu is the message class.

Regards.

Read only

Former Member
0 Likes
1,091

Hello,

Try this:


MESSAGE i014(sabapdocu). 

Where i is the message type , 014 is the message number (you can get it at transaction SE91 and sapabapdocu is the message class.

Regards.

Read only

Former Member
0 Likes
1,091

hi

1) in sap for every action that happens the system has maintained messages,

2) for eg. u might have seen some message displayed in statusbar wen u perform some action in sap.

3) al msg are maintained in sap standard system.

4) msg class is used to group number of related messages in the system.

eg. msg class : m5

this class m5 can have number of related messages. each msg is identified with a number.

5) u can also create ur own msg. goto se91. enter ur message class, and create number of messge for that class.

6) now in ur report program u can use those maintained message for various porposes..

different msg type like s-success, e- error, w-warning

reward if helpful

regards

mano