Automation Engine Script Guide > AE JCL for Applications > SAP > R3_IMPORT_CALENDAR

R3_IMPORT_CALENDAR

Imports calendars from SAP to an AE system.

Interface:AE and Standard

Syntax

R3_IMPORT_CALENDAR

Syntax

Description/Format

CALENDAR_ID= 

The ID of the SAP calendar that should be imported.
Format: script literal or AE name

The SAP calendar's ID includes exactly 2 characters.

TYPE=

The type of the SAP calendar.
Format: script literal or AE name

Allowed values: "FACTORY" (default value) or "HOLIDAY"
"FACTORY" - The type factory calendar.
"HOLIDAY" - The type holiday calendar.

FOLDER=

The folder in the AE client in which the Calendar objects should be stored.
Format: script literal or AE name

You must specify the folder path without a leading root folder in the following format:
/<sub-folder>/.../<folder>
Example: /JOBS/TESTJOBP

Default value: The root folder of the AE client in which the job was started.

UC4_CALE=

The name of the Calendar object.
Format: script literal or AE name

If the specified object does not yet exist, it will be created. Otherwise, the calendar keyword will be entered or renewed.

Default value: CALE.FROM.%SID%

UC4_KEYWORD=

The name of the calendar keyword for the AE calendar that is used to store the days of the SAP calendar.
Format: script literal or AE name

If the calendar keyword already exists in the Calendar object, it will be overwritten. When you use YEAR_FROM and YEAR_TO, the system will only delete the days that lie within this period.

Default value:
The ID of the SAP calendar.

YEAR_FROM=

The year as of which the SAP calendar entries should be imported.
Format: script literal or AE name

Default value: No limit

YEAR_TO=

The year until which the SAP calendar entries should be imported.
Format: script literal or AE name

Default value: No limit

Comments

This script element imports a certain calendar from a SAP system to an AE system. You can use factory calendars and holiday calendars.
The days of the SAP calendar are stored in a keyword of a certain Calendar object.

Examples

The following example imports the SAP holiday calendar US to an AE system and enters the days of the keyword USA to the Calendar object CALE.US. Only the day of the year 2012 will be used.

R3_IMPORT_CALENDAR CALENDAR_ID='US',TYPE='HOLIDAY',FOLDER='/TEST/CALE',UC4_CALE='CALE.US',UC4_KEYWORD='USA',YEAR_FROM='2012',YEAR_TO='2012'