Ansicht
Dokumentation

SAWE_AUTO_FORECAST - BAdI: Custom Methods for Automatic Forecasting

SAWE_AUTO_FORECAST - BAdI: Custom Methods for Automatic Forecasting

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Lean Staffing(IS-PRS-LS) component.

This BAdI is used to alter or overwrite the automatic forecast distribution provided by the central method for automatic forecast. This central method is accessed by the forecast application or staff assignment application to provide automatic forecast based on the selected mode.

This BAdI is called in the following scenarios:

  • Forecast application

On selecting a single assignment or forecast object and choosing Automatic Forecast, a dialog box is provided to select the automatic forecast parameters - Automatic Forecast Mode, Start Date, End Date and Automatic Forecast Days. On selecting the parameters and choosing OK, automatic forecast is performed by the central method and distribution is done based on the selected mode. This distribution can be altered by implementing BAdI interface method CHG_AUTO_FORECAST_DISTRIBUTION.

  • Staff assignment application

On choosing Save, automatic forecast is triggered for the list of all the staff assignments that have been successfully created or changed.

If the central method for auto forecast is called from the BAdI: Automatic Forecast from Staff Assignment,then this BAdI will be indirectly used.

You have already implemented all mandatory Customizing for the Forecast application.

In the customizing activity Activate Automatic Forecasting Functionality, you have activated the automatic forecast functionality for the company code.

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example class: CL_SA_TIME_PS_AUTO_FCD_SAMPLE

Example scenario: Automatic forecast is by default permitted for assignments with negative Not FCd days.

If you use this BAdI to alter the default distribution, auto forecast is not permitted if the assignment has negative Not FCd days before auto forecast distribution. The default distribution is then removed and the relevant warning message is displayed.

This BAdI uses the IF_SAWE_TPS_AUTO_FORECAST_ENH interface. For more information, display the interface in the Class Builder.






General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3681 Date: 20240523 Time: 194223     sap01-206 ( 108 ms )