openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPLSCVH_SEARCHTREE_GET:
    post:
      tags:
      - RSPLSCVH
      operationId: /rfc/RSPLSCVH_SEARCHTREE_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHANM:
                  type: string
                  maxLength: 30
                I_HIEDATETO:
                  type: string
                  format: date
                I_HIENM:
                  type: string
                  maxLength: 30
                I_HIEVERS:
                  type: string
                  maxLength: 3
                I_INFOPROVIDER:
                  type: string
                  maxLength: 30
                I_KEYDATE:
                  type: string
                  format: date
                  default: SY-DATUM
                I_S_HIERSELOPT:
                  type: object
                  properties:
                    PARENT:
                      type: string
                      maxLength: 12
                      description: nodekey in the hierachy structure
                    OPTION:
                      type: string
                      maxLength: 2
                      description: 'OPTION field in structure of SELECT-OPTIONS tables  enumValues: EQ=Equal: Single value,LT=Less Than: Everything < value in field LOW,NE=Not Equal: Everything apart from the specified single value,GT=Greater Than: Everything > value in field LOW,NP=Not Contains Pattern: Masked input: Reject pattern,NB=Not Between: Everything outside the range,CP=Contains Pattern: Masked input: Find pattern,LE=Less or Equal: Everything <= value in field LOW,GE=Greater or Equal >=
                        value in field LOW,BT=Between: Range of values'
                      enum:
                      - EQ
                      - LT
                      - NE
                      - GT
                      - NP
                      - NB
                      - CP
                      - LE
                      - GE
                      - BT
                    LOW:
                      type: string
                      maxLength: 70
                      description: Field for any characteristic value (external display)
                    HIGH:
                      type: string
                      maxLength: 70
                      description: Field for any characteristic value (external display)
                    SEARCH_IN_TEXT:
                      type: string
                      maxLength: 1
                      description: 'indicates whether the pattern is to be searched in text  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    SEARCH_IN_KEY:
                      type: string
                      maxLength: 1
                      description: 'indicates whether search is to be carried in key values  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    GET_TREE:
                      type: string
                      maxLength: 1
                      description: 'indicates whether the entire search tree is to be returned  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    NIOBJNM:
                      type: string
                      maxLength: 30
                      description: Characteristic
                    MAXTLEVEL:
                      type: integer
                      format: int32
                      description: Specifies level to which search is to be performed
                I_S_VAR_ID:
                  type: object
                  properties:
                    VNAM:
                      type: string
                      maxLength: 30
                      description: Name (ID) of a Report Variable
                    HANDLE:
                      type: integer
                      format: int64
                      description: 'BW: General reference field for internal IDs'
                I_WITH_REST_NODE:
                  type: string
                  default: RS_C_TRUE
                  maxLength: 1
                E_T_HIERNODE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODEKEY:
                        type: string
                        maxLength: 12
                        description: nodekey in the hierachy structure
                      RELATKEY:
                        type: string
                        maxLength: 12
                        description: nodekey in the hierachy structure
                      CHAVL:
                        type: string
                        maxLength: 60
                        description: 'Dim: Field for a User-Defined Characteristic Value'
                      CHAVL_EXT:
                        type: string
                        maxLength: 70
                        description: Field for any characteristic value (external display)
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
                      NIOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      NTYPEID:
                        type: integer
                        format: int32
                        description: Internal ID for the Node Type
                      IS_NODE:
                        type: string
                        maxLength: 1
                        description: 'indicates whether the node is a hierachy node or leaf  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                E_T_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
                E_T_SEARCH_RESULT:
                  type: array
                  items:
                    type: object
                    properties:
                      NODEKEY:
                        type: string
                        maxLength: 12
                        description: nodekey in the hierachy structure
                      RELATKEY:
                        type: string
                        maxLength: 12
                        description: nodekey in the hierachy structure
                      CHAVL:
                        type: string
                        maxLength: 60
                        description: 'Dim: Field for a User-Defined Characteristic Value'
                      CHAVL_EXT:
                        type: string
                        maxLength: 70
                        description: Field for any characteristic value (external display)
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
                      NIOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      NTYPEID:
                        type: integer
                        format: int32
                        description: Internal ID for the Node Type
                      IS_NODE:
                        type: string
                        maxLength: 1
                        description: 'indicates whether the node is a hierachy node or leaf  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
              required:
              - I_HIENM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_SUBRC:
                    type: integer
                    format: int32
                  E_T_HIERNODE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODEKEY:
                          type: string
                          maxLength: 12
                          description: nodekey in the hierachy structure
                        RELATKEY:
                          type: string
                          maxLength: 12
                          description: nodekey in the hierachy structure
                        CHAVL:
                          type: string
                          maxLength: 60
                          description: 'Dim: Field for a User-Defined Characteristic Value'
                        CHAVL_EXT:
                          type: string
                          maxLength: 70
                          description: Field for any characteristic value (external display)
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
                        NIOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        NTYPEID:
                          type: integer
                          format: int32
                          description: Internal ID for the Node Type
                        IS_NODE:
                          type: string
                          maxLength: 1
                          description: 'indicates whether the node is a hierachy node or leaf  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                  E_T_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
                  E_T_SEARCH_RESULT:
                    type: array
                    items:
                      type: object
                      properties:
                        NODEKEY:
                          type: string
                          maxLength: 12
                          description: nodekey in the hierachy structure
                        RELATKEY:
                          type: string
                          maxLength: 12
                          description: nodekey in the hierachy structure
                        CHAVL:
                          type: string
                          maxLength: 60
                          description: 'Dim: Field for a User-Defined Characteristic Value'
                        CHAVL_EXT:
                          type: string
                          maxLength: 70
                          description: Field for any characteristic value (external display)
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
                        NIOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        NTYPEID:
                          type: integer
                          format: int32
                          description: Internal ID for the Node Type
                        IS_NODE:
                          type: string
                          maxLength: 1
                          description: 'indicates whether the node is a hierachy node or leaf  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
