Skip to Content
0
Former Member
Aug 11, 2009 at 02:50 PM

Fill Idoc error status

201 Views

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