Ansicht
Dokumentation

/ISDFPS/BADI_PM_RELO - BAdI: Override of Data Adjustment for Relocation

/ISDFPS/BADI_PM_RELO - BAdI: Override of Data Adjustment for Relocation

PERFORM Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

General

You can use this Business Add-In (BAdI) to influence data adjustments during relocation. As a default setting, the system adjusts the data for technical objects (equipment and functional location) and documents (maintenance order, notification and items in a maintenance plan). The relocation process uses the information from the receiving force element to update the objects that are relevant for relocation.

The following objects can be modified:

  • Equipment (method EXCLUDE_DATA_FOR_EQUI)
  • Functional location (method EXCLUDE_DATA_FOR_FUNC_LOC)
  • Maintenance order (method EXCLUDE_DATA_FOR_MAINT_ORDER)
  • Maintenance notification (method EXCLUDE_DATA_FOR_MAINT_NOTIF)
  • Maintenance plan items (method EXCLUDE_DATA_FOR_MAINTPL_ITEM)

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

The parameters for each implmenentation are usually identical:

  • Importing parameter is the technical ID of the current object (equipment ID or maintenance order ID, and so on).
  • Additional data (plant, storage location, cost center, WBS element, work center) is provided in the BAdI method as far as it is available in the calling process. Parameter IS_DATA
  • To provide more information about the context, the sending and receiving force element with all of its data is provided with the parameters IS_SENDING_FORCE and IS_RECEIVING_FORCE
If the BAdI is called from the relocation monitor, only the force element ID is available from the parameter IV_CURRENT_FORCE_OBJID. The other parameters (IS_SENDING_FORCE and IS_RECEIVING_FORCE) are not available.
  • Exporting parameter is a structure with attributes that are excluded from the data adjustment.

The following attributes can be excluded during relocation:

  • For the equipment, functional location, maintenance order and maintenance notification:
  • Work center

  • Cost center

  • WBS element

  • For the items in a maintenance plan:
  • Work center

The returning structure ES_EXCLUDE_DATA handles the data adjustment. If an attribute is to be excluded from the data adjustment, the attribute must be set to 'X'.

Example:

ES_EXCLUDE_DATA-WORK_CENTER = abap_true.

This code only excludes the work center from the data adjustment. The work center ID remains the same as the one for the sending force element and is not changed to the work center ID for the receiving force element. All other attributes (such as the cost center) are adjusted.

Relocation monitor

The BAdI is not only used in the relocation process. It is also used within the relocation monitor. The BAdI is executed in both the check mode and the correction mode.

The relocation monitor does not show any items with the status 'Error' when the BAdI was implemented to exclude the data adjustment.

All attributes that are excluded in the BAdI are not checked in the check mode. Data is also not adjusted in the correction mode.

On deployed server, the relocation BAdI could only be used to modify the check for the work center. Excluding checks for cost center or WBS element are not allowed.

The BAdI /ISDFPS/PM_CO_DATA is still used within the relocation monitor on deployed to handle the CO-data.

The BAdI does not change the relocation logic. This means that lower-level objects in a hierarchy are not adjusted if changes are made at a higher level.

Example of an implementation could be:

Object Adjustment Implementation
Equipment Standard SAP process (adjust data) No implementation required
Functional location Standard SAP process (adjust data) No implementation required
Maintenance order Modification for released orders, adjust work center only (do not adjust data) Implementation required: check status of the order, set flag for work center but not for the other attributes in BAdI
Maintenance notification Modification (do not adjust data) implementation required: check status of the order, set flag for work center but not for the other attributes in BAdI
Item of maintenance plan Standard SAP process (adjust data) No implementation required






BAL_S_LOG - Application Log: Log header data   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 5846 Date: 20240423 Time: 222231     sap01-206 ( 70 ms )