Fonction SAP CACSHR_TRANSFER_HR_REVERSAL - Reverse HR Wage Components

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

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 Reporting Structure for FI Transfer
IT_DOC CACS_S_TRANSFER_HR_R 58 Structure: Reversal of HR Document

Functionality
Several documents can be sent to the function module for reversal. Thedocument number to be reversed, the document year and, if available, thenew reversal document number are entered in the table for this purpose.In case the new reversal document number is not known, the functionmodule gives a new number for posting the document.
The reversal document is posted in accounting with reversed sign.
Successfully reversed documents are marked in the table CACS00_DOCFI_H(FI document header data) in field WORK_FLAG with 'S'. This helps inavoiding a duplicate reversal.
(Error-)messages are returned in a table. In addition, a processingstatus is also returned as to whether the documents were correctlyformatted/posted.

Notes

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

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