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

How to get a string if I know message id, message type and number?

For example , if I want to get a string from the following code, how can I do?

MESSAGE ID 'COM_PARTNER' TYPE 'I' NUMBER 116.

Best regards,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 02:11 AM

    Programmatically:

    CALL FUNCTION 'BALW_BAPIRETURN_GET2'

    EXPORTING

    type = sy-msgty

    cl = sy-msgid

    number = sy-msgno

    par1 = sy-msgv1

    par2 = sy-msgv2

    par3 = sy-msgv3

    par4 = sy-msgv4

    IMPORTING

    return = it_ret1.

    OR use se91

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 02:12 AM

    Hi,

    Try this -

    DATA mtext TYPE string.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    INTO mtext

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    OR

    call function BAPI_MESSAGE_GETDETAIL.

    Cheers.

    ...Reward if useful

    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.