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