Menu

SAP Function Module CY_CONVERT_DATE_TO_PERIODTYPE

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

Unsere Literaturempfehlung

SAP – Der technische Einstieg: SAP-Technologien und Konzepte

Sind Sie neu in der SAP-Welt und möchten schnell mitreden? Mit diesem Buch finden Sie sich erfolgreich im SAP-Umfeld zurecht! Sie steigen direkt in die Konzepte und Technologien der SAP-Software ein und lernen die unterschiedlichen Systeme und Prozesse kennen. Schritt für Schritt zeigen die Autoren Ihnen die wichtigsten technischen Aufgaben und die Zusammenhänge zwischen den Objekten. Dank der vielen Beispiele und Abbildungen finden Sie sich schnell im SAP-Umfeld zurecht und können direkt in SAP ERP oder SAP S/4HANA anfangen.

Bei amazon.de ansehen →

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