openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CMO_COUNT_JOB:
    post:
      tags:
      - CMON
      summary: 'CMO: Counts planned jobs per program'
      operationId: /rfc/CMO_COUNT_JOB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_END_DATE:
                  type: string
                  format: date
                  description: Enddate -  initial means complete last week
                IV_START_DATE:
                  type: string
                  format: date
                  description: Startdate - initial means complete last week
                ET_COUNTJOB:
                  type: array
                  items:
                    type: object
                    properties:
                      PROGRAM:
                        type: string
                        maxLength: 40
                        description: Program Name
                      CNTPLANNED:
                        type: integer
                        format: int32
                        description: Amount of Planned Jobs
                      CNTMIDJOB:
                        type: integer
                        format: int32
                        description: Amount of average plannings per Job
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_END_DATE:
                    type: string
                    format: date
                    description: Evaluated end date
                  EV_START_DATE:
                    type: string
                    format: date
                    description: Evaluated start date
                  ET_COUNTJOB:
                    type: array
                    items:
                      type: object
                      properties:
                        PROGRAM:
                          type: string
                          maxLength: 40
                          description: Program Name
                        CNTPLANNED:
                          type: integer
                          format: int32
                          description: Amount of Planned Jobs
                        CNTMIDJOB:
                          type: integer
                          format: int32
                          description: Amount of average plannings per Job
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
