Hi All.
I need to cancel the subj document.
The business process is below.
- Sale order REN type by BAPI_CUSTOMERRETURN_CREATE
- Delivery by BAPI_OUTB_DELIVERY_CREATE_SLS
- Goods movement by WS_DELIVERY_UPDATE_2. In this case is created MM document with 602 movement type
The documents chain works right.
But I need to create the reversal chain too. I.e. to cancel these three documents
In first step I try to cancel the MM document and hope to create MM document with 601 movement type.
If I do it by VL09 transaction manually, the result is right. But if I try to do it in my Z-program by FM WS_REVERSE_GOODS_ISSUE, I get the short-dump ITAB_ILLEGAL_ORDER in include FV45VF0C_CATALOGUE_BUILD.
The dump position is below
*$*$-End: EHP_CATALOGUE_BUILD_02--------------------------------------------------------------$*$*
* - and delete already existing corresponding entry from X_SDFIELDS
READ TABLE X_SDFIELDS WITH KEY DELNR = LS_CATALOGUE-DELNR
DELPS = LS_CATALOGUE-DELPS
KFDNA = LS_CATALOGUE-KFDNA
BINARY SEARCH TRANSPORTING NO FIELDS.
The X_SDFIELDS table is not sorted and not hashed.
I ask the SAP-support to correct this fragment of code (Binary search in unsorted table), but get answer
The FM WS_REVERSE_GOODS_ISSUE is not released for customers and I should not use it.
The FM is called from VL09 transaction and works right in this case.
Please propound a cancellation method for the document of 602 MT.
Regards, Anuser.