Ansicht
Dokumentation

RERA_DOC_SPLIT - Change Document Split

RERA_DOC_SPLIT - Change Document Split

BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) can be used to implement your own customer-specific document splitting.

This applies to cash flow records that would be posted in one document in the standard system. You can further break these documents down using your own criteria. However, you can only refine the split that would be made in the standard system. It is not possible to merge documents together (for instance, to group line items together in one document if they would normally have different document types).

The following methods are provided:

  • SPLIT_DOCUMENT: Splits the document based on any customer criteria
  • SET_NUMBER_OF_RECORDS_PER_DOC: Specifies the maximum number of records per document

.

The BAdI is executed during periodic posting and periodic posting for vacancy.

The BAdI is not allowed to be used for documents from input tax distribution, service charge settlement, and sales-based settlement, as well as documents from one-time postings. For each of these documents the document structure is fixed.

Create a BAdI implementation and implement the methods SPLIT_DOCUMENT and SET_NUMBER_OF_RECORDS_PER_DOC as you require. Then activate the BAdI implementation.

The SPLIT_DOCUMENT method contains the following parameters:

  • ID_PROCESSMODE: Mode of the process (simulation/update run), cannot be changed

  • CT_POSTING_RECORD: Posting records (cash flow records to be posted); you can change the sorting of this table, and if you wish, place the 'SPLIT' field at another position. But do not change any other fields.

  • CT_MESSAGE: Messages (can be changed); normally does not have to be filled; if you add an error message to CT_MESSAGE, then the document is not posted. If you add a warning or information message, the document is posted, but the message is entered in the posting log.

The SET_NUMBER_OF_RECORDS_PER_DOC method has the following parameters:

  • ID_PROCESSMODE: Mode of the process (simulation/update run), cannot be changed

  • IT_POSTING_RECORD: Posting records (cash flow records to be posted); you cannot change this table.

  • CD_REC_PER_DOC: Number of cash flow records within the accounting document. In the standard system, the default value is 100. You can change this value. Keep in mind that an FI document can have a maximum of 999 line items.

For the method SPLIT_DOCUMENT, there is an example implementation that splits the cash flow records to be posted according to their due dates. The result is that in each document all the items have the same due date.

For the method SET_NUMBER_OF_RECORDS_PER_DOC, there is an example implementation that increases the number of cash flow records within the accounting document if line item summarization is active in the company code.

Notes for Developers






ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3510 Date: 20240523 Time: 203851     sap01-206 ( 60 ms )