openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FACTORYDATE_CONVERT_TO_DATE:
    post:
      tags:
      - SCAL
      summary: 'Calendar function: Returns date for a factory calendar date'
      operationId: /rfc/FACTORYDATE_CONVERT_TO_DATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FACTORYDATE:
                  type: integer
                  format: int64
                  description: serial number of the workday
                FACTORY_CALENDAR_ID:
                  type: string
                  maxLength: 2
                  description: Factory calendar ID
              required:
              - FACTORYDATE
              - FACTORY_CALENDAR_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DATE:
                    type: string
                    format: date
                    description: Date of factory calendar date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
