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

Mapping of Return code to Message class

Former Member
0 Likes
922

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

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
Read only

Former Member
0 Likes
680

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

ARBGB: Message Class

MSGNR: Message number

Read only

Former Member
0 Likes
680

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 !

Read only

Former Member
0 Likes
680

marking this question as answered.

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