R3_IMPORT_CALENDAR

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

Interface: AE and Standard

Syntax

R3_IMPORT_CALENDAR

    CALENDAR_ID=...
    [,TYPE=...]
    [,FOLDER=...]
    [,UC4_CALE=...]
    [,UC4_KEYWORD=...]
    [,YEAR_FROM=...]
    [,YEAR_TO=...]

Parameters

  • R3_IMPORT_CALENDAR
    Imports calendars from an SAP system to an AE system

  • CALENDAR_ID=
    The ID of the SAP calendar that should be imported.This ID includes exactly 2 characters.
    Format: script literal or AE name

  • TYPE=
    (Optional) The type of the SAP calendar
    Format: script literal or AE name
    Allowed values:

    • FACTORY (default)
      Factory calendar type
    • HOLIDAY
      Public holiday calendar type
  • FOLDER=
    (Optional) The folder in theAE client in which the Calendar objects should be stored.
    Format: script literal or AE name
    Folder path: Without a leading root folder in the format /<sub-folder>/.../<folder>
    Default value: The root folder of the AE client in which the job was started.

  • UC4_CALE=
    (Optional) The name of the Calendar object. If the specified object does not yet exist, it will be created. If it exists, only the Calendar key is updated.
    Format:script literal or AE name
    Default value: CALE.FROM.%SID%

  • UC4_KEYWORD=
    (Optional) The name of the Calendar key for the AE calendar that should be used to store the days that are specified in the SAP calendar. If the Calendar key already exists in the Calendar object, it will be overwritten. If you use YEAR_FROM and YEAR_TO, the system only deletes the days that lie within this period.
    Format:script literal or AE name
    Default value:The ID of the SAP calendar

  • YEAR_FROM=
    (Optional) The year as of which the SAP calendar entries should be imported.
    Format:script literal or AE name
    Default value: Unlimited

  • YEAR_TO=
    (Optional) The year until which the SAP calendar entries should be imported.
    Format:script literal or AE name
    Default value: Unlimited

Examples

The following example imports the SAP holiday calendar called US to an AE system. The days that are specified in the SAP calendar are added to the Calendar object CALE.US by using the Calendar key USA. Only the days of the year 2019 are used.

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

See also:

seealso

About SAP JCL