Menu

SAP Function Module CY_GET_BEGIN_AND_END_OF_PERIOD

Gets the start date and the finish date of a period of the specified type

The Function Module CY_GET_BEGIN_AND_END_OF_PERIOD (Gets the start date and the finish date of a period of the specified 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_BEGIN_AND_END_OF_PERIOD
Short Text Gets the start date and the finish date of a period of the specified 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_TEXT LIKE RC65A-DATEFROM Period according to PERIOD_TYPE
PERIOD_TYPE LIKE RC65A-DATE_TYPE Period type to interpret PERIOD_TEXT

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ENDDATE LIKE RC65A-LIDAB Finish date of the period
STARTDATE LIKE RC65A-LIDAV Start date of the period

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
CALENDAR_BUFFER_NOT_LOADABLE sic!
FACTORYDATE_AFTER_RANGE Factory date later than range in calendar
FACTORYDATE_BEFORE_RANGE Factory date earlier than range in calendar
FACTORYDATE_INVALID Factory date not valid
FACTORY_CALENDAR_ID_MISSING Calendar ID needed for conversion
FACTORY_CALENDAR_NOT_FOUND Calendar ID not found
FISCAL_YEAR_VARIANT_MISSING sic!
INVALID_PERIOD_TYPE Period type is invalid
PLAUSIBILITY_CHECK_FAILED Date not plausible
T009B_NOTFOUND Fiscal year variant not found in table T009B
T009_NOTFOUND Fiscal year variant not found in table T009
WRONG_DATE_FORMAT PERIOD_TEXT is not a correct date format