SAP ABAP IMG Activity SAWE_AUTO_FORECAST (BAdI: Custom Methods for Automatic Forecasting)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   IS-PRS-LS (Application Component) Lean Staffing
     PSAWE_SA_BL (Package) Staff Assignment Business Layer
IMG Activity
ID SAWE_AUTO_FORECAST BAdI: Custom Methods for Automatic Forecasting  
Transaction Code S_EE6_85000108   (empty) 
Created on 20101116    
Customizing Attributes SAWE_AUTO_FORECAST   BAdI: Custom Methods for Automatic Forecasting 
Customizing Activity SAWE_AUTO_FORECAST   BAdI: Custom Methods for Automatic Forecasting 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SAWE_TIME_PS_AUTO_FORECAST    

Use

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.

Requirements

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.

Standard settings

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).

Activities

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

Example

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.

See also

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

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20101116 
SAP Release Created in 606