openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/HRCA_STRUCTURE_ENTRY_READ:
    post:
      tags:
      - RHAB
      operationId: /rfc/HRCA_STRUCTURE_ENTRY_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEX:
                  type: integer
                  format: int32
                  description: Index of entry
              required:
              - INDEX
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ENTRY:
                    type: object
                    properties:
                      SEQNR:
                        type: integer
                        format: int32
                        description: Index of Entry
                      LEVEL:
                        type: integer
                        format: int32
                        description: Level of Element in Structure
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
                      PDOWN:
                        type: integer
                        format: int32
                        description: Pointer Down
                      DFLAG:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Node or Page  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      VCOUNT:
                        type: integer
                        format: int32
                        description: Number of Objects Directly Related to a Node
                      PNEXT:
                        type: integer
                        format: int32
                        description: Right Pointer
                      PUP:
                        type: integer
                        format: int32
                        description: Pointer Up
                      PPREV:
                        type: integer
                        format: int32
                        description: Left Pointer
                      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
                      VPRIOX:
                        type: string
                        maxLength: 2
                        description: Priority
                      VISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      VBEGDA:
                        type: string
                        format: date
                        description: Start Date
                      VENDDA:
                        type: string
                        format: date
                        description: End Date
                      VPROZT:
                        type: integer
                        format: int64
                        description: Weighting Percentage
                      VADATA:
                        type: string
                        maxLength: 600
                        description: Additional Relationship Data
                      SUBRC:
                        type: integer
                        format: int64
                        description: Return Code
                      RFLAG:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Check Recursion  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      SBEGD:
                        type: string
                        format: date
                        description: Start Date
                      SENDD:
                        type: string
                        format: date
                        description: End Date
                      VSIGN:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      VSEQNR:
                        type: integer
                        format: int64
                        description: Number of Infotype Record With Same Key
                  OBJECT:
                    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
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      HISTO:
                        type: string
                        maxLength: 1
                        description: Historical Record Flag
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      REALO:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
                  ROOT:
                    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
                      WEGID:
                        type: string
                        maxLength: 8
                        description: Evaluation Path
                      SBEGD:
                        type: string
                        format: date
                        description: Start Date
                      SENDD:
                        type: string
                        format: date
                        description: End Date
                      SVECT:
                        type: string
                        maxLength: 5
                        description: Status Vector
                      ACTIV:
                        type: string
                        maxLength: 1
                        description: 'Status Overlap  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      DEPTH:
                        type: integer
                        format: int64
                        description: Display Depth of Structure
                      TDEPTH:
                        type: integer
                        format: int64
                        description: Technical Depth of Structure
                      PSTRU:
                        type: integer
                        format: int32
                        description: Pointer to Root of Structure
                      CSTRU:
                        type: integer
                        format: int32
                        description: Number of Objects in Structure
                      SUBRC:
                        type: integer
                        format: int64
                        description: Return Code
                      REALO:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
