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

IDOC status to sender system

I configured IDoc within 2 clients in same server, when I send IDoc to receiver it is giving 03 (success) but in receiving system IDoc gives error 51 as some data is not maintained, i am using "Z" function module for inbound IDoc

question - how to send that same error message to the sender

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2008 at 12:40 PM

    Hi Ankush ,

    question - how to send that same error message to the sender?

    I have done the same requirement . Please find the below Procedure

    -> before ending of the Custom function module check whether Idoc is Success or not .

    IF (error)

    LOOP AT idoc_status INTO wa_idoc_status

    WHERE docnum = idoc_data-docnum . "Loop the Idoc Status table

    l_i = 0.

    CALL FUNCTION 'FORMAT_MESSAGE'

    EXPORTING

    id = wa_idoc_status-msgid

    lang = '-D'

    no = wa_idoc_status-msgno

    v1 = wa_idoc_status-msgv1

    v2 = wa_idoc_status-msgv2

    v3 = wa_idoc_status-msgv3

    v4 = wa_idoc_status-msgv4

    IMPORTING

    msg = l_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.

    l_i = l_i + 1.

    CASE l_i .

    WHEN c_1.

    MOVE l_msg TO wa_zf40-error_msg1.

    WHEN c_2.

    MOVE l_msg TO wa_zf40-error_msg2.

    WHEN c_3.

    MOVE l_msg TO wa_zf40-error_msg3.

    WHEN c_4.

    MOVE l_msg TO wa_zf40-error_msg4.

    WHEN c_5.

    MOVE l_msg TO wa_zf40-error_msg5.

    ENDCASE.

    ENDLOOP.

    ->Now create a Ztable to make the error descrptions.(Matian some Key fields to identify the Idoc .

    ->After this create a RFC to read the entries .

    I hope this helps to you.Please let me know if u have any query.

    Rgds

    Sree M

    Edited by: Sree Merugu on Mar 27, 2008 6:22 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Yes you are right!!!!!!! I want to send the errors automatically........

      secondly I cannot run any RFC on sender system....... I have no authorizations for that.......

      IS sending Mail is the only option!!!!!!

      Thanks you all for the support

      --Ankush

  • author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2008 at 12:15 PM

    For the sender, the idoc handling ends when the idoc is sent ok to the target system, i.e. status = '03'. The processing of the idoc in the target system is not relevant at this point.

    Error handling (status 51) should be done in the receiving system itself. I don't see any reason to send the error back to the sender.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2008 at 06:22 PM

    hi ankush

    Ankush the problrm is at the reciver end ...the applicationdocuent id not posted ..

    try running program RBDMANIN once

    check as it is a z function module check with the WE57 and WE42 for

    process codes and assigning of process codes and the message types. Even if its not been cleared contact basis tocheck with SPRO settings for inbound....

    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.