Ansicht
Dokumentation

WRF_REF_BADI_001 - BAdI: References for Materials Without Histories

WRF_REF_BADI_001 - BAdI: References for Materials Without Histories

General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) is used in the References (SCM-FRE-REF) component.

You can use this BAdI in order to enhance the standard functionality of the programs Automatic Assignment of References and References for Materials without History. You can implement the following enhancements:

  • The reference determination typeBAdI.
    This BAdI is called during the automatic assignment of references to a material/plant combination whose reference determination schema contains the reference determination type BAdI. Your BAdI implementation must return a list of references which then will be assigned to that material/plant combination by the system. The BAdI is called also in the dialog program References for Materials without History when you choose Select References and the option Use Setting in Reference Determination Schema for that material/plant combination.
    Use the BAdI method DETERMINE_REFERENCES for this enhancement.
  • Selection of plants using option Find Plants using BAdI for the functionality Transfer to Other Plants.
    This BAdI is called if you select plants for the transfer of a reference assignment to other plants using the option Find Plants using BAdI in the dialog program. Your BAdI implementation should return a list of plants which then will be displayed on the screen.
    Use the BAdI-method GET_SITE_LIST for this enhancement.
  • Change of the new reference assignments during the functionalityTransfer to Other Plants.
    This BAdI is called during the transfer of a reference assignment to other plants which can be carried out with the dialog program References for Materials without History. With the BAdI implementation you can change the reference assignment before they take effect for the plants. The system then creates the changed reference assignments for the affected plants. The source target assignment always remains unchanged.
    Use the BAdI method CHANGE_TARGET_ASSIGNMENT for this enhancement.

Requirements

Standard settings

This Business Add-In

  • Is not active in the standard and contains no default coding
  • Cannot be used multiple times
  • Is not filter-dependent.

Activities

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.

Example

Methods:

Determine the references via determination type BAdI

Select plants using BAdI for the transfer to other plants

Change the new assignments during the transfer to other plants






ABAP Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 5704 Date: 20240523 Time: 190143     sap01-206 ( 83 ms )