SAP Function CACSFI_TRANSFER_FI_REVERSAL - Reverse FI Document

Parameter Reference Type Length Default Optional Text
I_FLAG_ROLLBACK FLAG C 1 'X' X General Flag
I_TEST FLAG C 1 'X' X General Flag

Parameter Reference Type Length Text
E_FLG_ERROR CACSCASEERROR C 1 Indicator: Commn Case Inconsistent (X = error, ' ' = ok)

Parameter Reference Length Optional Text
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, document number to be reversed, document year, and, if known, thenew reversal document number, are entered in the table. In case the newreversal document number is not known, the function module provides anew number for posting the document.
Reversal document is posted with reversed sign in the accounting.
Successfully reversed documents are marked in table CACS00_DOCFI_H (FIdocument header data) in field WORK_FLAG with 'S'. This helps inavoiding a duplicate reversal.
(Error)messages are returned in the table. In addition, a processingstatus is returned, whether the documents were formatted/ postedcorrectly.

Notes

  • The field E_FLG_ERROR is set to 'X' during 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.