openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RH_READ_ALL_OBJECTS_FOR_OTYPE:
    post:
      tags:
      - RHP0
      operationId: /rfc/RH_READ_ALL_OBJECTS_FOR_OTYPE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEGDA:
                  type: string
                  format: date
                  default: '19000101'
                  description: Start Date
                ENDDA:
                  type: string
                  format: date
                  default: '99991231'
                  description: End date
                OTYPE:
                  type: string
                  maxLength: 2
                  description: Object Type
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan Version
                STATUS:
                  type: string
                  default: '1'
                  maxLength: 1
                  description: Status
                WITH_STEXT:
                  type: string
                  default: X
                  maxLength: 1
                OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      MARK_X:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                OBJECTSTIME:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      MARK_X:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
              required:
              - OTYPE
              - PLVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        PLVAR:
                          type: string
                          maxLength: 2
                          description: Plan Version
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        SHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        MARK_X:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                  OBJECTSTIME:
                    type: array
                    items:
                      type: object
                      properties:
                        PLVAR:
                          type: string
                          maxLength: 2
                          description: Plan Version
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        SHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        MARK_X:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        ENDDA:
                          type: string
                          format: date
                          description: End Date
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
