Functionality Using the Cancel method, material documents can be cancelled by callingup the function module MB_CANCEL_GOODS_MOVEMENT. You can only cancelone material document each time you call up the transaction. Note thatthe system does not delete the original document, but creates a newmaterial document (reversal document). Notes INCLUDE BAPI_BERECHTIGUNGEN INCLUDE MMIM_BAPI_AUTHOR_GOODSMVT OBJECT DOKU ID TX LANGUAGE EN Transfer> The key fields for the material document, MATERIALDOCUMENT andMATDOCUMENTYEAR have to be transferred to the method as importparameters. The posting date with the field GOODSMVT_PSTNG_DATE und the user namewith the field GOODSMVT_PR_UNAME are also imported. In table GOODSMVT_MATDOCITEM, you have the option of transferring thematerial document items that are to be cancelled. If no items aretransferred, all the items in the material document are cancelled. Confirmations> Once the system has successfully cancelled a material document, itreturns the material document number and material document year keyfields in the GOODSMVT_HEADRET parameter to the initiator. INCLUDE BAPI_RETFurther information INCLUDE BAPI_INVENTUR_WEITERINF Description INCLUDE BAPI_KEYFIELD Description Specifies the name of the user. The user name is required if you want the system to print a goodsreceipt/issue slip when the material document is posted. Description INCLUDE BAPI_DATAELEMENT Posting date>Description INCLUDE BAPI_KEYFIELD Description INCLUDE BAPI_KEYFIELD Description In this table, the material document items that are to be cancelled aretransferred. INCLUDE BAPI_DATAELEMENT Default You can choose whether you want to fill the table or not. If no itemsare transferred here, the system cancels all the items in the materialdocument. Description INCLUDE BAPI_TABLE Default INCLUDE BAPI_WARENBEWEGUNG_RETURN |