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: 

Mapping of Return code to Message class

Former Member
0 Kudos

Hi all,

My function module exports a return code in the variable l_ldaprc, there is a message class called ldaprc which has the text corresponding to the return code. Within my program i want to map this return code to the appropriate text in the message class so that i can display the text.

Can someone help me with the syntax ?

Awaiz

3 REPLIES 3

Former Member
0 Kudos

Use table T100 which stores the messages in the message class.

ARBGB: Message Class

MSGNR: Message number

Former Member
0 Kudos

Hi all,

I was able to do the mapping using the following syntax.

message id l_msgid type l_mtype number l_msgnum into l_rcmsg.

where

l_msgid type sy-msgid valus 'LDAPRC'

l_msgnum mapped to l_ldaprc.

Thank u all !

Former Member
0 Kudos

marking this question as answered.

Edited by: SBS ERPADMIN on Nov 3, 2008 10:01 AM