openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/HOLIDAY_CHECK_AND_GET_INFO:
    post:
      tags:
      - SCAL
      summary: 'Calendar function: Public holiday check with information'
      operationId: /rfc/HOLIDAY_CHECK_AND_GET_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE:
                  type: string
                  format: date
                  description: Date to be checked
                HOLIDAY_CALENDAR_ID:
                  type: string
                  maxLength: 2
                  description: Public holiday calendar ID
                WITH_HOLIDAY_ATTRIBUTES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag whether attributes are to be returned
                HOLIDAY_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      FTGID:
                        type: string
                        maxLength: 3
                        description: Public holiday key
                      REGEL:
                        type: string
                        maxLength: 1
                        description: Holiday rule
                      MONAT:
                        type: integer
                        format: int64
                        description: 'Month for holiday calculation  enumValues: 06=June,10=October,12=December,05=May,09=September,03=March,07=July,01=January,02=February,04=April,08=August,11=November'
                        enum:
                        - '06'
                        - '10'
                        - '12'
                        - '05'
                        - '09'
                        - '03'
                        - '07'
                        - '01'
                        - '02'
                        - '04'
                        - '08'
                        - '11'
                      MOTAG:
                        type: integer
                        format: int64
                        description: 'Day of month for public holiday calculation  enumValues: 01=Days in month'
                        enum:
                        - '01'
                      WOTAG:
                        type: integer
                        format: int64
                        description: Day for public holiday calculation
                      ABSTD:
                        type: integer
                        format: int64
                        description: Distance of public holiday from Easter
                      KONFE:
                        type: string
                        maxLength: 2
                        description: Calendar religion key
                      KLASS:
                        type: string
                        maxLength: 1
                        description: 'Holiday class  enumValues: 2=half-day holiday, e.g. 24.12. (Christmas Eve),1=ordinary public holiday,3=customer specific public holiday classes,""=Not a public holiday'
                        enum:
                        - '2'
                        - '1'
                        - '3'
                        - ''
                      GARANT:
                        type: string
                        maxLength: 1
                        description: 'Public holiday guaranteed flag  enumValues: G=move to next day,M=move from Sat/Sun to previous/next day,F=move to previous day'
                        enum:
                        - G
                        - M
                        - F
                      SORT:
                        type: string
                        maxLength: 3
                        description: Sort field for public holidays
              required:
              - DATE
              - HOLIDAY_CALENDAR_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HOLIDAY_FOUND:
                    type: string
                    maxLength: 1
                    description: Flag whether the specified date is a public holiday
                  HOLIDAY_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        FTGID:
                          type: string
                          maxLength: 3
                          description: Public holiday key
                        REGEL:
                          type: string
                          maxLength: 1
                          description: Holiday rule
                        MONAT:
                          type: integer
                          format: int64
                          description: 'Month for holiday calculation  enumValues: 06=June,10=October,12=December,05=May,09=September,03=March,07=July,01=January,02=February,04=April,08=August,11=November'
                          enum:
                          - '06'
                          - '10'
                          - '12'
                          - '05'
                          - '09'
                          - '03'
                          - '07'
                          - '01'
                          - '02'
                          - '04'
                          - '08'
                          - '11'
                        MOTAG:
                          type: integer
                          format: int64
                          description: 'Day of month for public holiday calculation  enumValues: 01=Days in month'
                          enum:
                          - '01'
                        WOTAG:
                          type: integer
                          format: int64
                          description: Day for public holiday calculation
                        ABSTD:
                          type: integer
                          format: int64
                          description: Distance of public holiday from Easter
                        KONFE:
                          type: string
                          maxLength: 2
                          description: Calendar religion key
                        KLASS:
                          type: string
                          maxLength: 1
                          description: 'Holiday class  enumValues: 2=half-day holiday, e.g. 24.12. (Christmas Eve),1=ordinary public holiday,3=customer specific public holiday classes,""=Not a public holiday'
                          enum:
                          - '2'
                          - '1'
                          - '3'
                          - ''
                        GARANT:
                          type: string
                          maxLength: 1
                          description: 'Public holiday guaranteed flag  enumValues: G=move to next day,M=move from Sat/Sun to previous/next day,F=move to previous day'
                          enum:
                          - G
                          - M
                          - F
                        SORT:
                          type: string
                          maxLength: 3
                          description: Sort field for public holidays
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
