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