openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPE_Q_CLASS_SCALE_READ:
    post:
      tags:
      - RHPE
      operationId: /rfc/RHPE_Q_CLASS_SCALE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEGDA:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Start date
                ENDDA:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: End Date
                OBJID:
                  type: integer
                  format: int64
                  description: Operation
                OTYPE:
                  type: string
                  default: Q
                  maxLength: 2
                  description: Object Type
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan Version
                READ_SCALE:
                  type: string
                  default: X
                  maxLength: 1
                WITH_TEXT:
                  type: string
                  default: X
                  maxLength: 1
                  description: Read texts
                CLASS_SCALE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS_OBJ:
                        type: integer
                        format: int64
                        description: Object ID
                      CLASS_STXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      SCALE:
                        type: integer
                        format: int64
                        description: Scale ID
                      SCALE_TXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
                SCALE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      SCALE:
                        type: integer
                        format: int64
                        description: Scale ID
                      SCALE_TXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
              required:
              - OBJID
              - PLVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CLASS_SCALE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS_OBJ:
                          type: integer
                          format: int64
                          description: Object ID
                        CLASS_STXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        SCALE:
                          type: integer
                          format: int64
                          description: Scale ID
                        SCALE_TXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        ENDDA:
                          type: string
                          format: date
                          description: End Date
                  SCALE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        SCALE:
                          type: integer
                          format: int64
                          description: Scale ID
                        SCALE_TXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        ENDDA:
                          type: string
                          format: date
                          description: End Date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
