Ansicht
Dokumentation

/ISDFPS/BADI_PM_CO_I - BAdI: CO Data Adjustment for Distribution

/ISDFPS/BADI_PM_CO_I - BAdI: CO Data Adjustment for Distribution

ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In (BAdI) to influence data adjustments during the inbound process (e.g. PM redistribution or relocation) back to the central system. The BAdI is currently only used for the PM object equipment.

The BAdI is only executed during inbound processing on the central system.

As a default setting (programming logic outside the BAdI), the allocation of CO data (cost center and WBS element) for the equipment is done with the following process logic:

In case of a relocation from deployed to central, the system tries to get the CO data from the receiving force element. The data is used and adjusted when available.

For all other distribution reasons or if no data of the receiving force element is available, the already existing data stored on the central system is used.

With the BAdI, the logic (fallback class) is enhanced because the CO data can also be changed on deployed, or a relocation from one deployed to another deployed can happen. In both cases the PM redistribution has to send new data to the central system. The default logic of the BAdI works as follows:

  • The processed equipment is a master equipment:
A master equipment is always assigned to a storage location. The related force element which is assigned to the storage location is selected with the attached CO data.
The CO data in the table ILOA is adjusted when the value was not changed manually (data origin indicator with value "D" in table ILOA).
  • The master equipment can be assigned to a functional location with a whole structure. For that the structure must be updated afterwards

The assigned functional location will be selected. If the CO data of the functional location does not fit the values of the updated master equipment, the functional location will be updated.
Afterwards, the whole hierarchy will be read (using function module PM_HIERARCHY_CALL_LIGHT) and adjusted.
The CO data in the table ILOA is adjusted when the value was not changed manually (Data origin indicator with value "D" in the table ILOA) based on the values of the predecessor in the hierarchy.
  • No master equipment. In that case the equipment could be on stock or installed:
  • on stock:

The related force element which is assigned to the storage location is selected with the attached CO data.
The CO data in the table ILOA is adjusted when the value was not changed manually (data origin indicator with value "D" in the table ILOA).
  • installed on an equipment hierarchy:

The CO data of the upper level is read. The CO data in the table ILOA is adjusted when the value was not changed manually (data origin indicator with value "D" in the table ILOA).
  • installed in functional location:

The CO data of the functional location is read. The CO data in table ILOA is adjusted when the value was not changed manually (data origin indicator with value "D" in the table ILOA).

The updates will be done directly in the database without any lock concept as the BAdI is executed during the inbound and CP cannot be in the central system as long as the IDoc processing is running.

If the BAdI adjusts any data, the standard logic for adjusting the equipment CO data out of the existing data from the central system will be skipped.

The BAdI is executed for each instance of an object, which allows granular handling for data adjustment (single equipment).






rdisp/max_wprun_time - Maximum work process run time   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4046 Date: 20240420 Time: 171514     sap01-206 ( 67 ms )