Menu

SAP Function Module CY_CONVERT_DATE_TO_PERIODTYPE

Converts a date into a text according to the selected period type

Recommended Now

Fire TV Stick Lite Essentials Bundle

This bundle contains Amazon Fire TV Stick Lite and Mission USB Power Cable. The USB power cable eliminates the need to find an AC outlet near your TV by powering Amazon Fire TV directly from your TV's USB port. Includes special power management circuitry that enhances the peak power capability of the USB port by storing excess energy and then releasing it as needed.

Check it out on amazon.com →

The Function Module CY_CONVERT_DATE_TO_PERIODTYPE (Converts a date into a text according to the selected 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_CONVERT_DATE_TO_PERIODTYPE
Short Text Converts a date into a text according to the selected 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
DATE LIKE SY-DATUM Date which should be converted
FISCAL_YEAR_VARIANT LIKE RC65A-PERIV SPACE Fiscal year variant
PERIOD_TYPE LIKE RC65A-DATE_TYPE Periodtype to which the date should be converted

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
PERIOD_TEXT LIKE RC65A-DATEFROM Converted date

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
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
FACTORY_CALENDAR_NOT_FOUND Factory calendar not found
T009B_NOTFOUND Fiscal year variant not found in table T009B
T009_NOTFOUND Fiscal year variant not found in table T009
UNKNOWN_PERIOD_TYPE Period type not correct
WRONG_INPUT Wrong input for the conversion