Menu

SAP Function Module F4_DATE_CONTROL

Display factory calendar or Gregor. calendar and choose a day

The Function Module F4_DATE_CONTROL (Display factory calendar or Gregor. calendar and choose a day) is a standard Function Module in SAP ERP and is part of the function group SCAC within the package SZC.

Technical Information

Function Module F4_DATE_CONTROL
Short Text Display factory calendar or Gregor. calendar and choose a day
Function Group SCAC
Package SZC
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATE_FOR_FIRST_MONTH LIKE WORKFLDS-GKDAY SY-DATUM For determining the first month to be displayed
DISPLAY LIKE WORKFLDS-DISPL SPACE X - no selection option
FACTORY_CALENDAR_ID LIKE WORKFLDS-CALID SPACE Factory Calendar
GREGORIAN_CALENDAR_FLAG LIKE SPACE Display Gregorian calendar
HOLIDAY_CALENDAR_ID LIKE WORKFLDS-HIDENT SPACE Public Holiday Calendar
HOLIDAY_STYLE TYPE I '6'
PROGNAME_FOR_FIRST_MONTH LIKE SY-REPID SPACE to determine the date at the cursor position
SELECT_OPTION_MONTH LIKE WORKFLDS-DISPL SPACE
SELECT_OPTION_WEEK LIKE WORKFLDS-DISPL SPACE
WEEK_BEGIN_DAY LIKE T246-WOTNR 1

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
SELECT_BEGIN LIKE SY-DATUM
SELECT_DATE LIKE WORKFLDS-GKDAY selected date
SELECT_END LIKE SY-DATUM
SELECT_MONTH LIKE SCAL-WEEK Selected month
SELECT_WEEK LIKE SCAL-WEEK

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 Factory calendar read error
DATE_AFTER_RANGE Date is later than factory calendar
DATE_BEFORE_RANGE Date is earlier than factory calendar's
DATE_INVALID Date in invalid format
FACTORY_CALENDAR_NOT_FOUND Factory calendar is not available
HOLIDAY_CALENDAR_NOT_FOUND Holiday calendar is not available
PARAMETER_CONFLICT Pass Factory calendar and Holiday calendar