Menu

SAP Function Module CY_GET_TIMEINTERVAL

Computes start date and finish date according to given period type

The Function Module CY_GET_TIMEINTERVAL (Computes start date and finish date according to given period type) is a standard Function Module in SAP ERP and is part of the function group CYCP within the package CY.

Technical Information

Function Module CY_GET_TIMEINTERVAL
Short Text Computes start date and finish date according to given period type
Function Group CYCP
Package CY
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CALENDAR_ID LIKE RC65A-KALID SPACE Calendar ID
FISCAL_YEAR_VARIANT LIKE RC65A-PERIV SPACE Fiscal year variant
PERIOD_TYPE LIKE RC65A-DATE_TYPE Period type
SDATEFROM LIKE RC65A-DBDATEFROM Start of interval
SDATETO LIKE RC65A-DBDATETO SPACE End of interval

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATEFROM LIKE RC65A-LIDAV Start date of interval
DATEFROM_STRING LIKE RC65A-DBDATEFROM Start date of interval as string
DATETO LIKE RC65A-LIDAB Finish date of interval
DATETO_STRING LIKE RC65A-DBDATEFROM Finish date of interval as string

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
INTERVAL_CANNOT_BE_COMPUTED Dates not computed for various reasons