CALCULATE_BUSINESS_DATE SAP Method Determine a Working Day









Below is documentation, parameters and attributes of ABAP Method CALCULATE_BUSINESS_DATE within SAP class IF_EX_RECA_BUSINESS_DATE. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_EX_RECA_BUSINESS_DATE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method CALCULATE_BUSINESS_DATE can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CALCULATE_BUSINESS_DATE

.

NameTypeData TypeDescriptionDefault Value
ID_BUSINESS_DAYSImportingTYPE
SCAL-FACIDATE
Working Days
ID_CALC_CONTEXTImportingTYPE
RECABUSDATECALCCONTEXT
Business Context for Determining a Working Day
ID_DATE_SOURCEImportingTYPE
SCDATUM
Baseline Date
ID_DIRECTIONImportingTYPE
SCAL-INDICATOR
Direction
ID_FACTORY_CALENDARImportingTYPE
SCAL-FCALID
Factory Calendar
CD_DATE_TARGETChangingTYPE
SCDATUM
Target Date



Exceptions of Method CALCULATE_BUSINESS_DATE

ERROR - Error

Example ABAP coding


DATA: lo_class TYPE REF TO IF_EX_RECA_BUSINESS_DATE.
DATA: lv_CD_DATE_TARGET TYPE SCDATUM,
lv_ID_BUSINESS_DAYS TYPE SCAL-FACIDATE,
lv_ID_CALC_CONTEXT TYPE RECABUSDATECALCCONTEXT,
lv_ID_DATE_SOURCE TYPE SCDATUM,
lv_ID_DIRECTION TYPE SCAL-INDICATOR,
lv_ID_FACTORY_CALENDAR TYPE SCAL-FCALID,
lv_other TYPE c.

CALL METHOD lo_class=>CALCULATE_BUSINESS_DATE(
EXPORTING
ID_BUSINESS_DAYS = lv_ID_BUSINESS_DAYS
ID_CALC_CONTEXT = lv_ID_CALC_CONTEXT
ID_DATE_SOURCE = lv_ID_DATE_SOURCE
ID_DIRECTION = lv_ID_DIRECTION
ID_FACTORY_CALENDAR = lv_ID_FACTORY_CALENDAR
CHANGING
CD_DATE_TARGET = lv_CD_DATE_TARGET ).

Links to Related Class(s)

IF_EX_RE...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!