SAP ABAP IMG Activity FCC_CAL_REF_DATE (BAdI: Custom Calculation of Reference Date)
Hierarchy
FCCO (Software Component) Financial Closing Cockpit 200
   CA-GTF-FCC (Application Component) Financial Closing cockpit Add-on
     FCC_CLOSING (Package) Financial Closing Cockpit - SAPGUI and backend
IMG Activity
ID FCC_CAL_REF_DATE BAdI: Custom Calculation of Reference Date  
Transaction Code S_FC8_75000022   (empty) 
Created on 20111124    
Customizing Attributes FCC_CAL_REF_DATE   BAdI: Custom Calculation of Reference Date 
Customizing Activity FCC_CAL_REF_DATE   BAdI: Custom Calculation of Reference Date 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name FCC_CAL_REF_DATE    

Use

This Business Add-In (BAdI) is used in the Financial Closing cockpit Add-On (CA-GTF-FCC) component. You can use this BAdI to manually specify the reference date for a task list. You use the reference date to define the planned start date of the tasks in the task list. When you create a task in the Financial Closing cockpit, you can specify the offset days for the task. The reference date plus the offset days is the planned start date of the task.

When you create a task list, you specify a key date for the task list. The system calculates the reference date according to the key date in the following way:

  • If you do not use a factory calendar, the reference date is the key date.
  • If you use a factory calendar and if the key date is a workday, the reference date is the key date.
  • If you use a factory calendar and if the key date is not a workday, the system by default uses the closest workday after the key date as the reference date.

This BAdI definition contains the following methods:

  • Set Reference Date (SET_NEW_ZERODATE)

    You can use this BAdI method to manually specify the reference date if you use a factory calendar and if the key date is a not workday. You have the following options:

    • Use the closest workday
    • You can use the closest workday to the key date as the reference date. To use the closest workday before the key date as the reference date, set the CV_DIRECTION changing parameter to the minus sign (-). To use the closest workday after the key date as the reference date, set the CV_DIRECTION changing parameter to the plus sign (+). By default, the parameter is set to the plus sign (+), so you do not need to implement this BAdI if you want to use the closest workday after the key date as the reference date.
    • Specify a specific workday
    • You can specify a specific workday as the reference date. You specify the workday in the CV_STARTDATE changing parameter.
  • Get Calculation Settings (GET_CALC_SETTINGS)
    You can use this BAdI method to influence the recalculation according the factory calendar. You can set the parameter CV_ADJUST_DURATION to the following values:
    • '' (default value) - the duration of the task is not recalculated according the factory calendar; it can happen that the end date of the task falls to the non-working day
    • 'X' - the duration of all tasks is adjusted so that the end date is shifted reflecting the factory calendar
    • 'M' - similar to 'X' but only manual tasks are considered

Note: When adjusting the duration, then the dependencies are not taken into account. Thus is can happen that the start time of the successor is before the end time of the predecessor.

Requirements

Standard settings

For more information about the standard settings (filters, single or multiple uses), see the Enhancement 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

You create a task list. You specify Sunday, April 22, 2012 as its key date and use the 01 Germany factory calendar. The system by default uses Monday, April 23, 2012, the closest workday after the key date, as the reference date. You can specify Friday, April 20, 2012, the closest workday before the key date, as the reference date by setting the CV_DIRECTION changing parameter to the minus sign (-). You can also specify any workday, such as April 19, April 20, April 23, and April 24, 2012, as the reference date by specifying the date in the CV_STARTDATE changing parameter.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG FCC_CAL_REF_DATE 0 FC80000001 Financial Closing cockpit Add-on 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20120202 
SAP Release Created in 100