openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BM_STRUCTURE_READ_N_TOP_LEVEL:
    post:
      tags:
      - SF05
      operationId: /rfc/BM_STRUCTURE_READ_N_TOP_LEVEL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DISPLAY_MODE:
                  type: string
                  default: D
                  maxLength: 1
                FILTER_ID:
                  type: string
                  default: ' '
                  maxLength: 32
                IGNORE_SFW_SWITCHES:
                  type: string
                  default: ' '
                  maxLength: 1
                READ_ALL_LEVELS:
                  type: string
                  maxLength: 1
                READ_N_LEVELS:
                  type: integer
                  format: int64
                STRUCTURE_ID:
                  type: string
                  maxLength: 32
                STRUCTURE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                      NODE_LEVEL:
                        type: integer
                        format: int64
                        description: Node level
                      EXTENSION:
                        type: string
                        maxLength: 15
                        description: Structure enhancement ID
                      PARENT_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      BROTHER_ID:
                        type: string
                        maxLength: 40
                        description: ID of predecessor on same level
                      TREE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      REFNODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      REFTREE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      LOG_REF:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      LOCAL_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Local use: Must not be referenced  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      VALID_F_R:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      VALID_T_R:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      VALID_F_D:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      VALID_T_D:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      FORCE_PLUS:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      W_SUBNODES:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      FILTER_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      LOST_EXT:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      LOST_NODE:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      APPL_FLAG1:
                        type: string
                        maxLength: 1
                        description: 'Flag: Use by application only'
                      APPL_FLAG2:
                        type: string
                        maxLength: 1
                        description: 'Flag: Use by application only'
                      APPL_FLAG3:
                        type: string
                        maxLength: 1
                        description: 'Flag: Use by application only'
                      FUSER:
                        type: string
                        maxLength: 12
                        description: Created by
                      FDATE:
                        type: string
                        format: date
                        description: Created on
                      FTIME:
                        type: string
                        maxLength: 6
                        description: Created at
                      FRELEASE:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      LUSER:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      LDATE:
                        type: string
                        format: date
                        description: Last Changed On
                      LTIME:
                        type: string
                        maxLength: 6
                        description: Time of Last Change
                      LRELEASE:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      NODE_KEY:
                        type: string
                        maxLength: 12
                        description: 'Tree Control: Node Key'
                      PARENT_KEY:
                        type: string
                        maxLength: 12
                        description: 'Tree Control: Node Key'
                      IS_CUT:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      CHECKBOXST:
                        type: string
                        maxLength: 1
                        description: 'Status of a checkbox in a tree structure; values:  A, I, P  enumValues: A=Active,I=inactive,P=partly active'
                        enum:
                        - A
                        - I
                        - P
                      MANUAL_SET:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      NOFRONTEND:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      NO_DISPLAY:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      HIDDEN_FL:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      DOUBLE_FL:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      DEFAULTFLG:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      COPY_NODE:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      COPY_TREE:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      COPNODFRST:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      COPTREFRST:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Technical Description of Logical Components
                      SYSTEMINST:
                        type: string
                        maxLength: 20
                        description: Code for an Assigned System Landscape in Project
                      COMPRELFR:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      COMPRELTO:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      NODRAGDROP:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      PRDVERSFR:
                        type: string
                        maxLength: 20
                        description: Component Release
                      PRDVERSTO:
                        type: string
                        maxLength: 20
                        description: Component Release
              required:
              - READ_ALL_LEVELS
              - READ_N_LEVELS
              - STRUCTURE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGE:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGTXT:
                        type: string
                        maxLength: 256
                        description: Text, 256 Characters
                  STRUCTURE_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                        NODE_LEVEL:
                          type: integer
                          format: int64
                          description: Node level
                        EXTENSION:
                          type: string
                          maxLength: 15
                          description: Structure enhancement ID
                        PARENT_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        BROTHER_ID:
                          type: string
                          maxLength: 40
                          description: ID of predecessor on same level
                        TREE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        REFNODE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        REFTREE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        LOG_REF:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        LOCAL_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Local use: Must not be referenced  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        VALID_F_R:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        VALID_T_R:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        VALID_F_D:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        VALID_T_D:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        FORCE_PLUS:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        W_SUBNODES:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        FILTER_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        LOST_EXT:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        LOST_NODE:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        APPL_FLAG1:
                          type: string
                          maxLength: 1
                          description: 'Flag: Use by application only'
                        APPL_FLAG2:
                          type: string
                          maxLength: 1
                          description: 'Flag: Use by application only'
                        APPL_FLAG3:
                          type: string
                          maxLength: 1
                          description: 'Flag: Use by application only'
                        FUSER:
                          type: string
                          maxLength: 12
                          description: Created by
                        FDATE:
                          type: string
                          format: date
                          description: Created on
                        FTIME:
                          type: string
                          maxLength: 6
                          description: Created at
                        FRELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        LUSER:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        LDATE:
                          type: string
                          format: date
                          description: Last Changed On
                        LTIME:
                          type: string
                          maxLength: 6
                          description: Time of Last Change
                        LRELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        NODE_KEY:
                          type: string
                          maxLength: 12
                          description: 'Tree Control: Node Key'
                        PARENT_KEY:
                          type: string
                          maxLength: 12
                          description: 'Tree Control: Node Key'
                        IS_CUT:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        CHECKBOXST:
                          type: string
                          maxLength: 1
                          description: 'Status of a checkbox in a tree structure; values:  A, I, P  enumValues: A=Active,I=inactive,P=partly active'
                          enum:
                          - A
                          - I
                          - P
                        MANUAL_SET:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        NOFRONTEND:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        NO_DISPLAY:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        HIDDEN_FL:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        DOUBLE_FL:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        DEFAULTFLG:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        COPY_NODE:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        COPY_TREE:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        COPNODFRST:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        COPTREFRST:
                          type: string
                          maxLength: 32
                          description: GUID for Structure
                        COMPONENT:
                          type: string
                          maxLength: 30
                          description: Technical Description of Logical Components
                        SYSTEMINST:
                          type: string
                          maxLength: 20
                          description: Code for an Assigned System Landscape in Project
                        COMPRELFR:
                          type: string
                          maxLength: 10
                          description: SAP Release
                        COMPRELTO:
                          type: string
                          maxLength: 10
                          description: SAP Release
                        NODRAGDROP:
                          type: string
                          maxLength: 1
                          description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                          enum:
                          - ''
                          - X
                        PRDVERSFR:
                          type: string
                          maxLength: 20
                          description: Component Release
                        PRDVERSTO:
                          type: string
                          maxLength: 20
                          description: Component Release
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
