Application Development 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: 

capturing error messages

former_member423024
Participant
0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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