Fonction SAP BAPI_ASSET_REVERSAL_POST - Post Attachment Document Reversal

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ORIGINDOCREFERENCE BAPI6037_DOC_REF u 25 X Reference to Document in Accounting
ORIGINDOCUMENTKEY BAPI6037_DOC_KEY u 18 X Key of a Document in Accounting
REVERSALDATA BAPI6037_REV_DATA u 16 X Data on Document Reversal

Paramètre Reférence Type Long. Description
DOCUMENTREFERENCE BAPI6037_DOC_REF u 25 Reference to Generated Document in Accounting
RETURN BAPIRET2 u 548 Return Parameters

Functionality
The Post method is used to check and post the reversal of anasset document including generating the FI document for posting. A livereversal is first attempted. If this is not possible, a regular reversaldocument is generated.

Notes
The document to be reversed must be entered either in the importparameter ORIGINDOCREFERENCE (reference to a document inFincancial Accounting) or ORIGINDOCUMENTKEY (key to an accountingdocument). Exactly one of these parameters must be filled.
INCLUDE AMFA_BAPI_REV_DOCREF OBJECT DOKU ID TX
INCLUDE AMFA_BAPI_RETURN OBJECT DOKU ID TX
INCLUDE AMFA_BAPI_REV_ORIGDOCREF OBJECT DOKU ID TX
INCLUDE AMFA_BAPI_REV_ORIGDOCKEY OBJECT DOKU ID TX
INCLUDE AMFA_BAPI_REVERSALDATA OBJECT DOKU ID TX