null

Skip to end of banner
Go to start of banner

Object Instance Enhancements

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 6 Current »

Object Instance Enhancements are loaded per object instance. The enhancement spot /PCH/BO supports filter to restrict an implementation to an object type. To enhance a specific object type the enhancement spot /PCH/BO must be implemented. Most of the business objects supports additional enhancement options. They can be implemented by adding a object specific OO interface to the implementation class.

Enhancement Spot

BAdI

  • Interface Method

Description

/PCH/BO (Business Object)

  • /PCH/BO

Enhancements for business objects

  • INIT

At Initialization of a new business object.

A business object is created once per object instance. Use this method to save a local reference to the corresponding business object instance. The business object is not passed to the other methods.

  • FREE

When the business object is finally cleaned up. Use this method to release you local data.

  • MAP

Most of the business object are reading only a subset of the main data from the database to increase performance. Additional fields can be added by simply enhancing the corresponding data structures (see Business Object Data Enhancements ). The data between several data structures are mapped automatically. In some cases you might map data by yourself.

  • GET_FIELDS_METADATA

Retrieving fields meta data. Screen modes (hidden, readonly, ...) can be change, but no definitions must be created or deleted.

  • GET_METADATA_
    CATALOG

Retrieving global meta data catalog for business object parts (e.g. basic data, classification,...). Screen modes can be change, but no catalogue entries must be created or deleted.

  • BEFORE_START_
    CHANGE

Before starting change. This can be either a normal change, deleting or creating. Start of change can be interrupted by own checks.

  • AFTER_START_
    CHANGE

After change has been started. Change token is passed to set custom data using business object methods.

  • BEFORE_SAVE

Called immediately before saving data. Change token is passed to set custom data using business object methods. Validation must not be done here (see VALIDATE).

  • AFTER_SAVE

Called after save was performed. Commit mode is passed to find out if booking was synchronously.

  • AFTER_CANCEL

After a started action was cancelled.

  • VALIDATE

Validation of all data. Errors can be returned.

  • BEFORE_INVALIDATION

Before invalidation takes place the control table can be adjusted.

  • IS_CHANGEABLE

Further checks, if an object can be changed. If changes are not allowed by business object this can not be overridden.

  • IS_DELETABLE

Further checks, if an object can be deleted. If changes are not allowed by business object this can not be overridden.

  • CHECK_
    AUTHORITY

Additional authority checks.

Enhancement Interfaces
Most of the business objects provides additional enhancement options which can be activated by adding one of the following interfaces:

Interface

  • Method

Description

/PCH/IF_BADI_BO_OBJ_AENR

Enhancement for engineering change master

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_BOM

Enhancements for BOM (Equipment, Material,...)

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_CRHD

Enhancements for work center

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_CRVS_B

Enhancements for production resources and tools

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_DRAW

Enhancements for document info records

  • GET_MAIN_DATA

After reading the main data

  • SET_MAIN_DATA

After setting the main data

  • GET_IDENTIFCATION

After reading the document identification

  • GET_ORGANIZATIONAL_KEY

After reading the document organizational key (used by ProConfiguration

  • GET_ORIGINALS

After reading the originals

/PCH/IF_BADI_BO_OBJ_EQUI

Enhancements for equipments

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_ESTRH

Enhancements for specifications

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_IFLOT

Enhancements for function locations

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_KLAH

Enhancements for classes

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_KNA1

Enhancements for customers

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_LFA1

Enhancements for vendors

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MARA

Enhancements for materials

  • GET_MAIN_DATA

After reading the main data

  • SET_MAIN_DATA

After setting the main data

  • GET_CONFIGURATION_TYPE

After reading the ProConfiguration configuration type

/PCH/IF_BADI_BO_OBJ_MARC

Enhancements for material plant data

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MARD

Enhancements for material storage location data

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MBEW

Enhancements for material valuation

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MKAL

Enhancements for material product versions

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MLGN

Enhancements for material warehouse data

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MLGT

Enhancements for material storage type data

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_MVKE

Enhancements for material sales data

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_PLKO

Enhancements for routings

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_PROJ

Enhancements for projects

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_PROJS

Enhancements for PSP elements

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_PRPS

Enhancements for standard projects

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_PRPSS

Enhancements for standard PSP elements

  • GET_MAIN_DATA

After reading the main data

/PCH/IF_BADI_BO_OBJ_QINF

Enhancements for QM-info records

  • GET_MAIN_DATA

After reading the main data


  • No labels