Menu

SAP Function Module CY_ADD_PERIODS

Adds a number of periods to the current one

The Function Module CY_ADD_PERIODS (Adds a number of periods to the current one) 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_ADD_PERIODS
Short Text Adds a number of periods to the current one
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 Calendar ID
FISCAL_YEAR_VARIANT LIKE RC65A-PERIV Fiscal year variant
NUMBER_OF_PERIODS LIKE Number of periods to be added to the current one
PERIOD_TYPE LIKE RC65A-DATE_TYPE Period type to write RESULTING_PERIOD

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
FIRST_DATE LIKE SY-DATUM First day of the calculated period
LAST_DATE LIKE SY-DATUM Last day of the calculated period
RESULTING_PERIOD LIKE RC65A-DATEFROM Calculated 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!
DATE_AFTER_RANGE Date after the defined range of the factory cal.
DATE_BEFORE_RANGE Date before the defined range of the fact. cal.
DATE_INVALID Date not correct
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 Factory calendar not found
FISCAL_YEAR_VARIANT_MISSING sic!
INVALID_PERIOD_TYPE Period type not valid
NOT_AN_INTEGER NUMBER_OF_PERIODS doesn't contain an integer
T009B_NOTFOUND Fiscal year variant not found in table T009B
T009_NOTFOUND Fiscal year variant not found in table T009