Ansicht
Dokumentation

SPP_PDEM_DET_DEM_CAT - BAdI: Determine Demand Category

SPP_PDEM_DET_DEM_CAT - BAdI: Determine Demand Category

General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this BAdI to determine the Demand Category for raw demand.

Input Parameter:,,,,IS_DMRD ,,,,,,,,is the field list for raw demand.

Changing Parameter:,,CV_DEMAND_CATEGORY,,Demand Category

The SAP Standard provides the predetermined Demand Category CV_DEMAND_CATEGORY as changing parameter.

This BAdI is called during Demand Capture and Demand Alignment within a loop over the raw demand records. The implementation can have significant influence on the overall processing performance.
If possible, execute the logic only if CV_DEMAND_CATEGORY is initial or undefined. Buffer any used table for reuse.

Demand Capture processes all raw demand records on an individual basis. Each record is provided to the BADI.

Demand Alignment has the option to aggregate raw demand records for performance optimization depending on the parameter AGRAWDEM in transaction /SAPAPO/PDEMCUST.

As a consequence, the input field list depends on the customizing parameter AGRAWDEM in transaction /SAPAPO/PDEMCUST.

Parameter AGRAWDEM value 'N' - No Aggregation

Demand Capture processes all raw demand records on an individual basis. Each record is provided to the BADI with all its fields.

Parameter AGRAWDEM value 'T' - Aggregation by Date

The BADI is called with aggregated raw demand records. You can set this parameter when the Demand Category Determination does not depend on Order ID, Item ID, Schedule ID, Order Date, Ship Date.
The raw demand is grouped by DEM_TYPE PRODUCT FACING STOCKING DEM_CAT CUST_NO BASE_UOM ORD_TYPE ITM_TYPE TPOP ABNORMAL VCP_FA VCP_ST EMER_ORD IS_FDO PERID STOCKED_OEMMI OEMMI CGFLD. This option has improved performance.

Per default Demand Alignment runs with option 'T'.

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method ~. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.






CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3642 Date: 20240523 Time: 172351     sap01-206 ( 71 ms )