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

Fill Idoc error status

Hi Folks,

I am trying to fill the IDoc error status when processing inbound ORDERS IDoc.

Code looks OK.

But i am not getting the IDoc in error status.

Pl look @ the code and let me know.

data: w_errtab like errtab occurs 0 with header line.

if condition fails.

move derrtab to w_errtab.

w_ERRTAB-ARBGB = 'IDOC_ADAPTER'.

w_ERRTAB-CLASS = 'E'.

w_ERRTAB-MSGNR = '902'.

w_ERRTAB-MSGV1 = xvbak-bstdk.

w_ERRTAB-MSGV2 = s_kunnr.

w_ERRTAB-MSGV3 = s_vbeln.

append w_ERRTAB.

DESCRIBE TABLE w_errtab LINES sy-tfill.

derrtab = w_errtab.

endif.

The IDoc status is still 53.

Thanks,

Matt

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 11, 2009 at 03:09 PM

    Which Customer exit do you using for this ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 04:19 PM

    change your last line in the code

    derrtab = w_errtab. 

    to

    
    derrtab[] = w_errtab[].
    
    

    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.