openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSSHWD_HIEREF_NODE_INSERT:
    post:
      tags:
      - RSSHWD_HIEREF
      operationId: /rfc/RSSHWD_HIEREF_NODE_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_INSERTASNEXT:
                  type: string
                  default: RS_C_FALSE
                  maxLength: 1
                I_NODEID:
                  type: integer
                  format: int64
                I_S_HIERNODET:
                  type: object
                  properties:
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    HIEID:
                      type: string
                      maxLength: 25
                      description: Internal hierarchy ID (unique ID)
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    NODENAME:
                      type: string
                      maxLength: 32
                      description: Hierarchy node that cannot be posted to
                    TXTSH:
                      type: string
                      maxLength: 20
                      description: Short description
                    TXTMD:
                      type: string
                      maxLength: 40
                      description: Medium description
                    TXTLG:
                      type: string
                      maxLength: 60
                      description: Long description
                I_S_INTERVALL:
                  type: object
                  properties:
                    HIEID:
                      type: string
                      maxLength: 25
                      description: Internal hierarchy ID (unique ID)
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    NODEID:
                      type: integer
                      format: int64
                      description: Internal ID number of a hierarchy node
                    LEAFFROM:
                      type: string
                      maxLength: 60
                      description: Page of Hierarchy from
                    LEAFTO:
                      type: string
                      maxLength: 60
                      description: Page of the Hierarchy to
                I_S_NODESTRUC:
                  type: object
                  properties:
                    HIEID:
                      type: string
                      maxLength: 25
                      description: Internal hierarchy ID (unique ID)
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    NODEID:
                      type: integer
                      format: int64
                      description: Internal ID number of a hierarchy node
                    IOBJNM:
                      type: string
                      maxLength: 30
                      description: InfoObject
                    NODENAME:
                      type: string
                      maxLength: 60
                      description: Characteristic Value (Length is 60 for RFC; Do Not Change)
                    TLEVEL:
                      type: integer
                      format: int64
                      description: Level of a hierarchy node
                    LINK:
                      type: string
                      maxLength: 1
                      description: 'Link indicator for a hierarchy node  enumValues: ""=false,X=True'
                      enum:
                      - ''
                      - X
                    PARENTID:
                      type: integer
                      format: int64
                      description: Parent ID for a hierarchy node
                    CHILDID:
                      type: integer
                      format: int64
                      description: Child ID of a hierarchy node
                    NEXTID:
                      type: integer
                      format: int64
                      description: Next ID of a hierarchy node
                    DATEFROM:
                      type: string
                      format: date
                      description: Valid-From Date
                    DATETO:
                      type: string
                      format: date
                      description: Valid-to date
                    INTERVL:
                      type: string
                      maxLength: 1
                      description: 'Flag: Node is interval'
              required:
              - I_INSERTASNEXT
              - I_NODEID
              - I_S_NODESTRUC
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_NODEID:
                    type: integer
                    format: int64
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
