Fonction SAP CACSFI_TRANSFER_FI_D_REVERSAL - Reverse FI document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLAG_ROLLBACK FLAG C 1 'X' X General Flag
I_TEST FLAG C 1 'X' X General Flag

Paramètre Reférence Type Long. Description
E_FLG_ERROR CACSCASEERROR C 1 Indicator: Commn Case Inconsistent (X = error, ' ' = ok)

Paramètre Reférence Long. Facultatif Description
ET_MESSAGE CACS_S_TRANSF_MESSAGE 568 Return Parameter(s)
IT_DOC CACS_S_TRANSFER_FI_R 26 Structure: FI Document Reversal

Functionality
Several documents can be sent to the function module for reversal. Forthis, the document number to be reversed, the document year, and ifknown, the new reversal document number are sent to the table. If thenew reversal document number is not known, the function module providesa new number for posting the document.
Reversal document is posted with the reversed sign in the accounting.
Successfully reversed documents are marked in the table CACS00_DOCFI_H(FI-document header data) in field WORK_FLAG with 'S'. This helps inavoiding duplicate reversal.
(Error)messages are returned in a table. In addition, a processingstatus is returned, whether the documents were properly formatted/posted.

Notes

  • The field E_FLG_ERROR is set to 'X' after the first error.

  • Depending upon the switch position (I_FLAG_ROLLBACK), erroneous
  • documents are marked with 'E' in table IT_DOC in field WORK_FLAG or theprocessing is terminated with ROLLBACK.