Ansicht
Dokumentation

FCC_CAL_REF_DATE - BAdI: Custom Calculation of Reference Date

FCC_CAL_REF_DATE - BAdI: Custom Calculation of Reference Date

rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the SAP S/4HANA Financial Closing cockpit (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.

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

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.

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.






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

Length: 5048 Date: 20240523 Time: 203533     sap01-206 ( 150 ms )