Ansicht
Dokumentation

BADI_LOBM_GM_CHV_MOD - BAdI: Characteristic Value Modification for Batch in Goods Movement Proc.

BADI_LOBM_GM_CHV_MOD - BAdI: Characteristic Value Modification for Batch in Goods Movement Proc.

CPI1466 during Backup   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) Characteristic Value Modification for Batch in Goods Movement Processes is used in the Batch Management (LO-BM) component for the business context Batch. You can use this BAdI to create or delete characteristic values for a batch during goods movement.

The BAdI provides a filter GODDSMOVEMETTYPE with which the implementation can be made specific to goods movement types.

To classify user-defined characteristics automatically during goods movements in Inventory Management you can also use SAP enhancement MBCFC004 EXIT_SAPMM07M_004. Note that if there is an active implementation for this SAP enhancement and the BAdI at the same time for a movement type, then the BAdI implementation will be executed first.

Requirements

The BAdI is called if the type of the goods movement is included in the filter and if the following conditions are fulfilled:

  • The goods movement relates to a batch which is classified.
  • The class of the batch is valid at the time of the goods movement.
  • The class has a status which allows the change of characteristic values of a batch (the BAdI will not be called, e.g., if the class is in status "locked").
  • The user is authorized to access characteristic values of a batch.
    Access to the characteristic values of a batch can be granted, for example, by assigning the business catalog SAP_SCM_BC_BATCH_DSP_PC (Batch Management - Batch Display) to the business role of the user.

Parameters

The BAdI is called once for each item of a goods movement if it relates to a batch and if the type of the goods movement is part of a filter of an implementation of this BAdI.

The following parameters are provided:

Import Parameters

  • BATCH: Contains the batch number to which the goods movement relates.
  • BATCHIDENTIFYINGPLANT: Contains the plant number if it is part of the batch key. That is, if the batch level is defined at plant level in the system.
  • MATERIAL: Contains the material number of the goods movement.
  • PLANT: Contains the plant number of the goods movement.
  • GOODSMOVEMENTTYPE: Contains the type of the goods movement.
  • DEBITCREDITCODE: Indicates whether the goods movement is a debit or credit posting.
  • MANUFACTURINGORDER: Contains the manufacturing order number of the goods movement.
  • PURCHASINGDOCUMENT: Contains the purchasing document number of the goods movement.
  • CHANGEABLECHARACTERISTICS: Contains the characteristics for which the values can be changed using this BAdI. Object characteristics cannot be changed using this BAdI.
  • CHARACTERISTICVALUES: Contains the characteristic values currently assigned to the batch. Only those values are listed that are also contained in import parameter CHANGEABLECHARACTERISTICS.

Export Parameters

  • CREATECHARACTERISTICVALUES: Contains the values that shall be set for certain characteristics of the given batch. If a characteristic is set to have only a single value assigned, then the existing value will be replaced with the new value.
  • DELETECHARACTERISTICVALUES: Contains the values that shall be deleted for certain characteristics of the given batch.

Values can only be set or deleted for characteristics which are also listed in the import parameter CHANGEABLECHARACTERISTICS.

The export parameters may contain values prefilled by other implementations of the BAdI. For example, this situation might arise if the BAdI is implemented by partner extensions.

Exceptions

  • CX_BLE_RUNTIME_ERROR: Exception used to re-signal extension or app code errors.

Example

As an example, you can replace the values of a certain characteristic by deleting all currently assigned values and creating new values for this characteristic.






CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4513 Date: 20240523 Time: 221646     sap01-206 ( 71 ms )