Cancel material document configuration

Note

This section can be added to any of the general posting transactions to allow you to search for material documents and then cancel them. It is supplied as standard in some of the transactions such as PB2_GEN_POSTING and PB2_GEN_POST_IMB.

The movement type of "CAN" is generally used in the AMD element ACTION_TYPE_LIST to represent cancelling.

Cancel document input

Configuration element
Available structures/fields

INPUT_CANDOC

MAT_DOC or MBLNR or MATERIAL_DOCUMENT - material document number

MAT_DOC_YR or MJAHR or MATERIAL_DOCUMENT_YEAR - material document year

PURCH_DOC or PO_NUMBER or EBELN - purchase order number

MATERIAL or MATNR - SAP material number

PLANT or WERKS - plant

STOR_LOC or LGORT or STGE_LOC - storage location

BATCH - SAP batch number

MVMT_TYPE or BWART or MOVE_TYPE - movement type

POST_DATE or BUDAT - posting date

VENDOR or LIFNR - vendor number

USER or UNAME or PR_UNAME or USERNAME - SAP userid

EXC_CANCELLED - exclude already cancelled material documents

INC_CANCELLED - include already cancelled material documents

INPUT_CANDOC_ACTIONS

n/a

Cancel document list

Configuration element
Available structures

LIST_CANDOC

Primary: /TCTM/BAPI2017_GM_HEAD_02 Secondary: None

LIST_CANDOC_ACTIONS

n/a

LIST_CANDOC_HEADER

Primary: /TCTM/BAPI2017_GM_HEAD_02 Secondary: /None

LIST_CANDOC_HEADER_EX

n/a

LIST_CANDOC_SORT

Primary: /TCTM/BAPI2017_GM_HEAD_02

Cancel document item list

Configuration element
Available structures

LIST_CANDOC_ITEM

Primary: /TCTM/BAPI2017_GM_ITEM_SHOW Secondary: MSEG, /TCTM/BAPI2017_GM_HEAD_02

LIST_CANDOC_ITEM_ACTIONS

n/a

LIST_CANDOC_ITEM_HEADER

Primary: /TCTM/BAPI2017_GM_ITEM_SHOW Secondary: MSEG, /TCTM/BAPI2017_GM_HEAD_02

LIST_CANDOC_ITEM_HEADER_EX

n/a

LIST_CANDOC_ITEM_SORT

Primary: /TCTM/BAPI2017_GM_ITEM_SHOW

Cancel document item input

Configuration element
Available structures

INPUT_CANDOC_ITEM

Primary: /TCTM/BAPI2017_GM_ITEM_SHOW Secondary: MSEG, /TCTM/BAPI2017_GM_HEAD_02, /TCTM/MAKT, /TCTM/MARA, /TCTM/MARC, /TCTM/MARD, /TCTM/MLGN

INPUT_CANDOC_ITEM_ACTIONS

n/a

Last updated

Was this helpful?