openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_HIERSTRUCT_READMULTIPLE:
    post:
      tags:
      - BESTRUCT
      summary: Read hierarchy structures
      operationId: /rfc/BAPI_HIERSTRUCT_READMULTIPLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADDON:
                  type: string
                  maxLength: 15
                  description: Industry
                CICOREQUESTNO:
                  type: string
                  default: ' '
                  maxLength: 20
                  description: Request/Task
                FROMTIMESTAMP:
                  type: integer
                  format: int64
                  description: Time stamp in short form (Local date and time/format)
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language key
                LANGUAGEISO:
                  type: string
                  maxLength: 2
                  description: Language according to ISO 639
                LASTUSER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Last changed on/by
                MODE:
                  type: string
                  default: SHOW
                  maxLength: 6
                  description: CICO mode
                NAMESONLY:
                  type: string
                  maxLength: 1
                  description: Only read texts
                READ_ALSO_FILTERS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read Filter Structures
                ROOT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Get root nodes
                VIEW:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Hierarchy view
                WITH_OBJECT_NAMES:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Read object names
                DOCUMENTATIONASSIGNMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJ_TYP:
                        type: string
                        maxLength: 4
                        description: Object Type
                      ID:
                        type: string
                        maxLength: 32
                        description: Object ID
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      INFO_CLASS:
                        type: string
                        maxLength: 15
                        description: Content type
                      STRUCCLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      STRUCOBJID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      TOPICCLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      TOPICOBJID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                HEADERS:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      NAME:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      PAR_STRUCT:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      PRED_NODE:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      POSITION:
                        type: string
                        maxLength: 1
                        description: 'Position of node to be inserted  enumValues: C=as subnode,B=on the same level'
                        enum:
                        - C
                        - B
                      EXTENSION:
                        type: string
                        maxLength: 15
                        description: Structure enhancement ID
                HIERARCHYSTRUCTURESTOREAD:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      NODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                      NODE_LEVEL:
                        type: integer
                        format: int64
                        description: Node level
                      RTREE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      RNODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      RMODE:
                        type: string
                        maxLength: 1
                        description: 'Reference Mode  enumValues: X=Structure referred to (included),""=Node copied with reference to its original'
                        enum:
                        - X
                        - ''
                      NAME:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                REFERENCES:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      NODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      REF_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Reference Types in Structure Repository
                      REF_OBJECT:
                        type: string
                        maxLength: 70
                        description: Referenced object for node
                TYPESTOREAD:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOCUMENTATIONASSIGNMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJ_TYP:
                          type: string
                          maxLength: 4
                          description: Object Type
                        ID:
                          type: string
                          maxLength: 32
                          description: Object ID
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        INFO_CLASS:
                          type: string
                          maxLength: 15
                          description: Content type
                        STRUCCLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        STRUCOBJID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        TOPICCLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        TOPICOBJID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                  HEADERS:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        DEVCLASS:
                          type: string
                          maxLength: 30
                          description: Package
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        NAME:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                        PAR_STRUCT:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        PRED_NODE:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        POSITION:
                          type: string
                          maxLength: 1
                          description: 'Position of node to be inserted  enumValues: C=as subnode,B=on the same level'
                          enum:
                          - C
                          - B
                        EXTENSION:
                          type: string
                          maxLength: 15
                          description: Structure enhancement ID
                  HIERARCHYSTRUCTURESTOREAD:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                  NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        NODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                        NODE_LEVEL:
                          type: integer
                          format: int64
                          description: Node level
                        RTREE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        RNODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        RMODE:
                          type: string
                          maxLength: 1
                          description: 'Reference Mode  enumValues: X=Structure referred to (included),""=Node copied with reference to its original'
                          enum:
                          - X
                          - ''
                        NAME:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                  REFERENCES:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        NODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        REF_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Reference Types in Structure Repository
                        REF_OBJECT:
                          type: string
                          maxLength: 70
                          description: Referenced object for node
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  TYPESTOREAD:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
