openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RHPE_QCAT_BRANCH_READ_UP:
    post:
      tags:
      - RHPE
      operationId: /rfc/RHPE_QCAT_BRANCH_READ_UP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEGDA:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: From selection date
                ENDDA:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Selection date "to"
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan Version
                PUP_INFO:
                  type: string
                  maxLength: 1
                ROOT_OBJID:
                  type: integer
                  format: int64
                ROOT_OTYPE:
                  type: string
                  maxLength: 2
                WITH_STEXT:
                  type: string
                  default: X
                  maxLength: 1
                QCAT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      REALO:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
                      SBEGD:
                        type: string
                        format: date
                        description: Start Date
                      SENDD:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      PRIOX:
                        type: string
                        maxLength: 2
                        description: Priority
                      SEQNR:
                        type: integer
                        format: int32
                        description: Index of Entry
                      VCOUNT:
                        type: integer
                        format: int32
                        description: Number of Objects Directly Related to a Node
                      LEVEL:
                        type: integer
                        format: int32
                        description: Level of Element in Structure
                      VRSIGN:
                        type: string
                        maxLength: 1
                        description: 'Relationship Specification  enumValues: B=top down,A=bottom up'
                        enum:
                        - B
                        - A
                      VRELAT:
                        type: string
                        maxLength: 3
                        description: Relationship Between Objects
                      VBEGDA:
                        type: string
                        format: date
                        description: Start Date
                      VENDDA:
                        type: string
                        format: date
                        description: End Date
                      PUP:
                        type: integer
                        format: int32
                        description: Pointer Up
                      PUP_OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      PUP_OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      PUP_STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      PUP_BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      PUP_ENDDA:
                        type: string
                        format: date
                        description: End Date
                      PUP_ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
              required:
              - PLVAR
              - ROOT_OBJID
              - ROOT_OTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  QCAT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        REALO:
                          type: string
                          maxLength: 45
                          description: Extended Object ID
                        SHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        ENDDA:
                          type: string
                          format: date
                          description: End Date
                        SBEGD:
                          type: string
                          format: date
                          description: Start Date
                        SENDD:
                          type: string
                          format: date
                          description: End Date
                        ISTAT:
                          type: string
                          maxLength: 1
                          description: Planning Status
                        PRIOX:
                          type: string
                          maxLength: 2
                          description: Priority
                        SEQNR:
                          type: integer
                          format: int32
                          description: Index of Entry
                        VCOUNT:
                          type: integer
                          format: int32
                          description: Number of Objects Directly Related to a Node
                        LEVEL:
                          type: integer
                          format: int32
                          description: Level of Element in Structure
                        VRSIGN:
                          type: string
                          maxLength: 1
                          description: 'Relationship Specification  enumValues: B=top down,A=bottom up'
                          enum:
                          - B
                          - A
                        VRELAT:
                          type: string
                          maxLength: 3
                          description: Relationship Between Objects
                        VBEGDA:
                          type: string
                          format: date
                          description: Start Date
                        VENDDA:
                          type: string
                          format: date
                          description: End Date
                        PUP:
                          type: integer
                          format: int32
                          description: Pointer Up
                        PUP_OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        PUP_OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        PUP_STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        PUP_BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        PUP_ENDDA:
                          type: string
                          format: date
                          description: End Date
                        PUP_ISTAT:
                          type: string
                          maxLength: 1
                          description: Planning Status
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
