Hierarchy

⤷

⤷

IMG Activity
ID | FAGL_MIGR_SUBST | BAdI: Define Document Splitting Information for Open Items |
Transaction Code | S_AC0_52000619 | (empty) |
Created on | 20050301 | |
Customizing Attributes | FAGL_MIGR_SUBST | BAdI: Define Doc. Splitting Information (Customer-Specific) for Open Items |
Customizing Activity | FAGL_MIGR_SUBST | BAdI: Define Doc. Splitting Information (Customer-Specific) for Open Items |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | FAGL_MIGR_SUBST |
Use
You can use this BAdI in a corresponding program to insert account assignments in open items during migration.
Requirements
You have older open items that were posted without using document splitting. You can only make the account assignments for such items.
Standard settings
Activities
When you implement the BAdI, note the following:
- You may not change or clear fields that are already filled. However, this does not apply to the profit center field. In this field, you can replace the dummy profit center with another profit center. In addition, you can enter values in empty fields.
- The content of the fields must be correct.
- In the BAdI, you can implement your own validation and send exactly one message to the calling program. Note that each open item containing a message in the BAdI is not processed further, regardless of the type of message.
- The following parameters are transferred to the BAdI and cannot be changed:
- The complete document that the open item belongs to (IT_BSEG)
- The open item itself in ACCIT format (IS_ACCIT)
- The document header in ACCHD format (IS_ACCHD)
You can make your changes to the fields of the CS_MIG_ASGMT structure. This structure consists mainly of fields from table FAGL_SPLINFO, and the fields are already filled with existing values for the open item. You can fill any of these fields. If you specify a profit center, the segment is derived.
Caution
The system only saves the characteristics for document splitting. All other values entered in the fields are lost. In any case, the rules from points 1 and 2 apply.
In structure ES_MESSAGE, you can communicate your own message externally. This ends processing of this open item, regardless of the type of message involved.
You can use structure ES_ACCIT_EXT to transfer ACCIT_EXTENSION to external destinations. This structure is not validated and is therefore transferred to the document splitting tables without being checked.
You can then generate entries in the tables of document splitting for open items that were posted before the migration date.
For this, see the SAP Notes about this BAdI.
Example
Business Attributes
ASAP Roadmap ID | 153 | Design enhancements |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | FAGL_MIGR_SUBST | 0 | HLA0006520 | Basic Functions |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20050311 |
SAP Release Created in | 600 |