Skip to Content
author's profile photo Former Member
Former Member

Mapping of Return code to Message class

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 08:56 AM

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

    ARBGB: Message Class

    MSGNR: Message number

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 09:01 AM

    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 !

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 09:01 AM

    marking this question as answered.

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.