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

capturing error messages

former_member423024
Participant
0 Likes
732

Hi,

In my program , I need to display certain erro messages as shown below.

Ex : Message I005(ZCM).

Now I have to copy the '005',Message text in Message Class 'ZCM' into an internal table.

Could anyone please kindly let me know how to handle this situation.

thanks

Natasha SS.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
685

Hello Natasha,

You can use the syntax MESSAGE ... INTO ...

DATA: V_MSG TYPE STRING.

MESSAGE I005(ZCM) INTO V_MSG.

WRITE V_MSG.

Do an F1 for further details.

BR,

Suhas

2 REPLIES 2
Read only

Former Member
0 Likes
685

Hi

All the messages in the message class are stored in the table T100.

Just query/fetch from the table T100 with the message class(T100-ARBGB) = ZCM and Message Number(T100-MSGNR) = '005'

You will get the message text in T100-TEXT.

Hope this helps

Regards

Shiva

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
686

Hello Natasha,

You can use the syntax MESSAGE ... INTO ...

DATA: V_MSG TYPE STRING.

MESSAGE I005(ZCM) INTO V_MSG.

WRITE V_MSG.

Do an F1 for further details.

BR,

Suhas