SAP ABAP IMG Activity RERA_DOC_SPLIT (Change Document Split)
Hierarchy
EA-FIN (Software Component) EA-FIN
   RE-FX-RA (Application Component) Rental Accounting
     RE_RA_CA (Package) RE: Cross Application Rental Accounting
IMG Activity
ID RERA_DOC_SPLIT Change Document Split  
Transaction Code S_EE6_85000193   (empty) 
Created on 20110802    
Customizing Attributes RERA_DOC_SPLIT   Implement Enhancements (BAdI): Document Split 
Customizing Activity RERA_DOC_SPLIT   Implement Enhancements (BAdI): Document Split 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_RERA_DOC_SPLIT    

Use

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.

Requirements

Standard settings

Activities

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.

Example

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

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20110802 
SAP Release Created in 606