Imports calendars from SAP to an AE system.
Interface:AE and Standard
R3_IMPORT_CALENDAR
CALENDAR_ID=...
[,TYPE=...]
[,FOLDER=...]
[,UC4_CALE=...]
[,UC4_KEYWORD=...]
[,YEAR_FROM=...]
[,YEAR_TO=...]
Syntax |
Description/Format |
---|---|
CALENDAR_ID= |
The ID of the SAP calendar that should be imported. The SAP calendar's ID includes exactly 2 characters. |
TYPE= |
The type of the SAP calendar. Allowed values: "FACTORY" (default value) or "HOLIDAY" |
FOLDER= |
The folder in the AE client in which the Calendar objects should be stored. You must specify the folder path without a leading root folder in the following format: Default value: The root folder of the AE client in which the job was started. |
UC4_CALE= |
The name of the Calendar object. 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. 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: |
YEAR_FROM= |
The year as of which the SAP calendar entries should be imported. Default value: No limit |
YEAR_TO= |
The year until which the SAP calendar entries should be imported. Default value: No limit |
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.
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'