Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BDC For Customer Create

Hi All,

I have a BDC function module for customer create, and I'm getting back three items in the error table none of which has any textual description.

It looks like this:

sy-subrc = 1,001

TCODE                          XD01
DYNAME                         SAPMF02D
DYNUMB                         0130
MSGTYP                         S
MSGSPRA                        EN
MSGID                          00
MSGNR                          344
MSGV1                          SAPMF02D
MSGV2                          0130
MSGV3
MSGV4
ENV                            CTU
FLDNAME

Any idea how I can look up some more details about this error message?

Thanks!

Roman

Tags:
Former Member replied

hi

use FM

<b>format_message</b>

sample code

CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        ID        = IT_MSG-MSGID
        LANG      = SY-LANGU
        NO        = IT_MSG-MSGNR
        V1        = IT_MSG-MSGV1
        V2        = IT_MSG-MSGV2
        V3        = IT_MSG-MSGV3
        V4        = IT_MSG-MSGV4
      IMPORTING
        MSG       = V_MSG
      EXCEPTIONS
        NOT_FOUND = 1
        OTHERS    = 2.
    IF SY-SUBRC <> 0.
*      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

<b>plz reward helpful posts</b>

regards

ganesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question