CL_EXM_IM_WRBAX_OUT_OF_STOCK - Example-Implementation for BAdI-Definition WRBAX_OUT_OF_ST

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Class CL_EXM_IM_WRBAX_OUT_OF_STOCK

Functionality

Example implementation for BAdI definition WRBAX_OUT_OF_STOCK.

The example implementation displays the implemementation of BAdIWRBAX_OUT_OF_STOCK when a large number of the required functions are already provided by the standard implementationCL_DEF_IM_WRBAX_OUT_OF_STOCK but subfunctions are still implemented differently.

The example implementation here passes on the method calling programs to the class that is derived from the standard implementation.

You can use the example implementation as a template for the BAdI implementations. In the copy you createdyou simply need to change the type reference of the local variable LR_BADI in method INIT_VENDOR_OUT_OF_STOCKS and have it point to the reference of your subclass fromCL_DEF_IM_WRBAX_OUT_OF_STOCK.

In the copy of the class in method INIT_VENDOR_OUT_OF_STOCKS you replace the expression

  ...
  DATA:
    lr_badi TYPE REF TO cl_def_im_wrbax_oos_subclass.
with
    lr_badi TYPE REF TO CL_DEF_IM_WRBAX_OUT_OF_STOCK>

The class used in the example class CL_DEF_IM_WRBAX_OOS_SUBCLASSprovides an example of how you can implement alternative functional behavior using the derivation mechanism.

Relationships

Example

Notes

Further information

See also:






General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 2864 Date: 20120526 Time: 122452     triton ( 102 ms )