Ansicht
Dokumentation

FAGL_R_OBJ_TYPE_BADI - BAdI: Enhancement of Reorganization Object Types

FAGL_R_OBJ_TYPE_BADI - BAdI: Enhancement of Reorganization Object Types

rdisp/max_wprun_time - Maximum work process run time   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the General Ledger Accounting (FI-GL) component.

You can use this BAdI to define the logic of your own object types for a reorganization or to change the behavior of standard object types.

The BAdI is called at the following call-up points:

  • For the selection of objects using restrictions
  • For the determination of balances
  • When reading display attributes
  • For the determination of object properties
  • When changing the general or specific restrictions

Before you create a BAdI implementation for a new object type, you need to have made the following settings in Customizing for the reorganization:

  1. You have created a new object type under Define Reorganization Object Types
  2. You have defined a derivation hierarchy under Define Own Derivation Hierarchy

There must be an active implementation of the BAdI for each object type used in the active derivation hierarchies. All hierarchy versions for which the Version Is Active indicator is set are active.

  • If an object type is used in a derivation hierarchy for which there is no BAdI implementation, message FAGL_REORGANIZATION003 is displayed when one of the above call-up points is reached.
  • If there is more than one active implementation for an object type, message FAGL_REORGANIZATION002 is displayed when one of the above call-up points is reached.

The BAdI is filter-dependent: The filter consists of the field combination Reorganization Plan Type / Object Type. That is, there is an active default implementation for each delivered combination of reorganization plan type and object type.

Example: In a profit center reorganization (reorganization plan type 001), there is the default implementation FAGL_R_OBJ_TYPE_001_MAT for object type MAT.

This BAdI is not intended for multiple use.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Methods:

Select Objects Using Restrictions (GENERATE_OBJLIST)

Reassign Master Data (REASSIGN_MASTERDATA)

Reassign Master Data AND Determine Balances (REASSIGN_MD_AND_GET_BALANCE)

Determine Balances (GET_BALANCES)

Subsequently Select Additional (Layout) Attributes (GET_ADDITIONAL_FIELDS)

Determine Display and Selection Field Names for Input Help (GET_FIELDNAMES)

Determine Object Properties (GET_OBJECT_INFO)

Event Handler for Changing General Restrictions (RESTRICTIONS_GENERAL_CHANGED)

Event Handler for Changing Specific Restrictions (RESTRICTIONS_ SPECIFIC_CHANGED)






RFUMSV00 - Advance Return for Tax on Sales/Purchases   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6685 Date: 20240523 Time: 191353     sap01-206 ( 76 ms )