SAP ABAP IMG Activity /ISDFPS/BADI_PM_CO (BAdI: Check and Define CO Data Transfer)
Hierarchy
EA-DFPS (Software Component) SAP Enterprise Extension Defense Forces & Public Security
   PM-WOC (Application Component) Maintenance Processing
     /ISDFPS/PM (Package) SDP BW Enhancements in PM
IMG Activity
ID /ISDFPS/BADI_PM_CO BAdI: Check and Define CO Data Transfer  
Transaction Code /ISDFPS/99000006   (empty) 
Created on 20070420    
Customizing Attributes /ISDFPS/BADI_PM_CO   BAdI: Check and Define CO Data Transfer 
Customizing Activity /ISDFPS/BADI_PM_CO   BAdI: Check and Define CO Data Transfer 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /ISDFPS/PM_CO_DATA    

Use

You can use this BAdI to check and influence the CO data transfer during the distribution of maintenance objects (orders, notifications, functional locations, and equipment). The behavior is controlled using the structure PM_CO_DATA_X. If the value "X" is filled in a field in this structure, the value of the assigned data field is transferred for the calling program. A SPACE or an initial value indicates that the value of the assigned data field is not transferred for the calling program. Below is a list of the maximum number of fields that can be influenced, provided that they are known for the calling object or program.

WBS_ELEM        WBS element of the additional data for the maintenance order

LOC_WBS_ELEM        WBS element of the location and account assignment data

ASSET_NO        Main asset number

SUB_NUMBER        Asset subnumber

SETTLORDER        Settlement order

RESPCCTR        Cost center responsible

PROFIT_CTR        Profit center

COSTCENTER        Cost center

STANDORDER        Standing order number

SUPERIOR_NETWORK        Network number of the superior network

SUPERIOR_ACTIVITY        Activity number in the network and standard network

The BAdI is shipped with a default implementation. In the default code, the following is implemented for the distribution scenarios in Maintenance:

  • New or changed object (such as an order) is distributed from the central system to the decentralized system:

    CO data is deleted and therefore not transferred to the decentralized system.   

  • New object (such as an order) was created in the decentralized system and distributed:

    CO data from the decentralized system is transferred to the central system.

  • Object (such as an order) was changed in the decentralized system and distributed:

    CO data <> SPACE from the decentralized system is transferred to the central system.

In this way, data maintained in the central system for the object types "order" and "notification" is overwritten only if the data comes from the decentralized system with content. Values maintained in the central system for the object types "equipment" and "functional location" are not overwritten or deleted.

The BAdI call is encapsulated by the function module /ISDFPS/PM_CO_DATA_CHK. This function module is called by the order, notification, equipment, and functional location modules/programs. Below is a list of the CO data that can be deleted.

Order: The following fields can be influenced:

WBS_ELEM    WBS element of the additional data for the maintenance order

LOC_WBS_ELEM    WBS element of the location and account assignment data

ASSET_NO    Main asset number

SUB_NUMBER    Asset subnumber

SETTLORDER    Settlement order

RESPCCTR    Cost center responsible

PROFIT_CTR    Profit center

COSTCENTER    Cost center

STANDORDER    Standing order number

SUPERIOR_NETWORK    Network number of the superior network

SUPERIOR_ACTIVITY    Activity number in the network and standard network

Notification: The following fields can be influenced:

WBS_ELEM    WBS element of the additional data for the maintenance order

ASSET_NO    Main asset number

SUB_NUMBER    Asset subnumber

STLMTORDER    Settlement order

COSTCENTER    Cost center

STDGORD    Standing order number

The following applies for orders and notifications: If the value of the update indicator in a CO data field (parameter PM_CO_DATA_X => reference structure /ISDFPS/PM_CO_DATA_X) is initial, the corresponding data field is also initialized, which means that any transferred values are deleted, that is, they are not posted on the receiving side.

Functional location and equipment: The following fields can be influenced:

WBS_ELEM    WBS element

ASSET_NO    Main asset number

SUB_NUMBER    Asset subnumber

SETTLORDER    Settlement order

COSTCENTER    Cost center

STANDORDER    Standing order number

When an object is posted to the decentralized system, distribution (the value is deleted or posted from the source system) is carried out in accordance with the values returned by the BAdI in the parameter PM_CO_DATA_X.

When a functional location is posted to the central system, existing values cannot be deleted or overwritten. The values are posted as they are received, with the exception that existing values in the central system are not overwritten.

The following parameters are transferred to the interface module /ISDFPS/PM_CO_DATA_CHK or BAdI /ISDFPS/PM_CO_DATA:

  • ACT_TYPE (Activity category)
    • H (Add)
    • V (Change)
  • BUS_OBJECT (Business object: order, notification, functional location, equipment)
    • WO (Order)
    • NO (Notification)
    • FL (Functional location)
    • ET (Equipment)
  • BUS_TRANS (Business transaction: distribution, relocation, and so on; currently not used)
  • PM_CO_DATA (CO data: list of the CO data to be influenced)

The following parameter is returned:

  • PM_CO_DATA_X (update indicator for CO data: for each field to indicate whether it is to be deleted or changed)

If you want to implement a separate logic for the objects listed above, you have to create a BAdI implementation to override or replace the default code.

Requirements

Standard settings

Activities

Example

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20070420 
SAP Release Created in