openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STREE_STRUCTURE_CREATE:
    post:
      tags:
      - SHI6
      summary: Creation of a structure
      operationId: /rfc/STREE_STRUCTURE_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CREATE_ROOTNODE:
                  type: string
                  maxLength: 1
                DESCRIPTION:
                  type: object
                  properties:
                    SPRAS:
                      type: string
                      maxLength: 1
                      description: Documentation language
                    ID:
                      type: string
                      maxLength: 32
                      description: GUID for Structure
                    TEXT:
                      type: string
                      maxLength: 75
                      description: Explanatory text
                    TEXT_CAP:
                      type: string
                      maxLength: 75
                      description: Description - only uppercase
                DEVELOPMENT_CLASS:
                  type: string
                  default: ' '
                  maxLength: 30
                HEADER:
                  type: object
                  properties:
                    ID:
                      type: string
                      maxLength: 32
                      description: GUID for Structure
                    EXTENSION:
                      type: string
                      maxLength: 15
                      description: Structure enhancement ID
                    EXT_KEY:
                      type: string
                      maxLength: 12
                      description: External key
                    TYPE:
                      type: string
                      maxLength: 5
                      description: Structure Type
                    NODE_ID:
                      type: string
                      maxLength: 32
                      description: Unique ID - 32 characters
                    TREE_ID:
                      type: string
                      maxLength: 32
                      description: Unique ID - 32 characters
                    MASTERLANG:
                      type: string
                      maxLength: 1
                      description: Language Key
                    RESPONSIBL:
                      type: string
                      maxLength: 12
                      description: User Name
                    BUFFERMODE:
                      type: string
                      maxLength: 1
                      description: 'Buffer mode of structure data  enumValues: 1=Complete buffering of nodes, links, and texts,0=Buffering off'
                      enum:
                      - '1'
                      - '0'
                    BUFFERVAR:
                      type: string
                      maxLength: 10
                      description: Parameters for buffering
                    SINGLENODE:
                      type: string
                      maxLength: 1
                      description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                      enum:
                      - ''
                      - X
                    SUBTREEONL:
                      type: string
                      maxLength: 1
                      description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                      enum:
                      - ''
                      - X
                    LOG_STR:
                      type: string
                      maxLength: 1
                      description: 'Flag: Logical or Physical Structure  enumValues: ""=Normal Structure,L=Logical Structure,P=Physical Structure'
                      enum:
                      - ''
                      - L
                      - P
                    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
                NO_TRANSPORT_CHECK:
                  type: string
                  default: ' '
                  maxLength: 1
                ROOTNODE_TYPE:
                  type: string
                  maxLength: 4
                TRANSPORT_ORDER:
                  type: string
                  default: ' '
                  maxLength: 20
                EXTENSION_SEQUENCE:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      EXTENSION:
                        type: string
                        maxLength: 15
                        description: Structure enhancement ID
                      SEQUENCE:
                        type: integer
                        format: int32
                        description: Counter
                      ORDER_NO:
                        type: integer
                        format: int64
                        description: Enhancement Status Number
                INACTIVE_NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      NODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      COMPLETE:
                        type: string
                        maxLength: 1
                        description: 'Checkbox  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                POSSIBLE_NODE_TYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      TREE_TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
                STRUCTURE_DESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      ID:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      TEXT:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      TEXT_CAP:
                        type: string
                        maxLength: 75
                        description: Description - only uppercase
                USER_PARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 25
                        description: Hierarchy maintenance display attribute
                      VALUE:
                        type: string
                        maxLength: 128
                        description: Hierarchy maintenance attribute value
                VISIBLE_NODE_TYPES:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      NODE_TYPE:
                        type: string
                        maxLength: 4
                        description: Valid Node Types in Structure Repository
              required:
              - DESCRIPTION
              - HEADER
      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
                  NEW_DESCRIPTION:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Documentation language
                      ID:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      TEXT:
                        type: string
                        maxLength: 75
                        description: Explanatory text
                      TEXT_CAP:
                        type: string
                        maxLength: 75
                        description: Description - only uppercase
                  NEW_HEADER:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      EXTENSION:
                        type: string
                        maxLength: 15
                        description: Structure enhancement ID
                      EXT_KEY:
                        type: string
                        maxLength: 12
                        description: External key
                      TYPE:
                        type: string
                        maxLength: 5
                        description: Structure Type
                      NODE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      TREE_ID:
                        type: string
                        maxLength: 32
                        description: Unique ID - 32 characters
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Language Key
                      RESPONSIBL:
                        type: string
                        maxLength: 12
                        description: User Name
                      BUFFERMODE:
                        type: string
                        maxLength: 1
                        description: 'Buffer mode of structure data  enumValues: 1=Complete buffering of nodes, links, and texts,0=Buffering off'
                        enum:
                        - '1'
                        - '0'
                      BUFFERVAR:
                        type: string
                        maxLength: 10
                        description: Parameters for buffering
                      SINGLENODE:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      SUBTREEONL:
                        type: string
                        maxLength: 1
                        description: 'Flag with values '' '' and ''X''  enumValues: ""=Not valid; not selected,X=Valid; selected'
                        enum:
                        - ''
                        - X
                      LOG_STR:
                        type: string
                        maxLength: 1
                        description: 'Flag: Logical or Physical Structure  enumValues: ""=Normal Structure,L=Logical Structure,P=Physical Structure'
                        enum:
                        - ''
                        - L
                        - P
                      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
                  NEW_STRUCTURE_ID:
                    type: string
                    maxLength: 32
                  NEW_STRUCTURE_TADIR:
                    type: object
                    properties:
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Program ID in Requests and Tasks
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      KORRNUM:
                        type: string
                        maxLength: 10
                        description: Request/task up to and including Release 3.0
                      SRCSYSTEM:
                        type: string
                        maxLength: 10
                        description: Original System of Object
                      AUTHOR:
                        type: string
                        maxLength: 12
                        description: Person Responsible for a Repository Object
                      SRCDEP:
                        type: string
                        maxLength: 1
                        description: 'Repair Flag for Repository Object  enumValues: R=Object is in a repair in an unreleased request,""=Object is not in a repair in an unreleased request'
                        enum:
                        - R
                        - ''
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      GENFLAG:
                        type: string
                        maxLength: 1
                        description: 'Generation flag  enumValues: X=generated, is retained during the upgrade,T=generated, can be deleted during the upgrade,""=not generated'
                        enum:
                        - X
                        - T
                        - ''
                      EDTFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag: Object can only be edited with a special editor  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      CPROJECT:
                        type: string
                        maxLength: 8
                        description: Internal Use
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      VERSID:
                        type: string
                        maxLength: 20
                        description: Internal Use
                      PAKNOCHECK:
                        type: string
                        maxLength: 1
                        description: 'Exception Indicator for Package Check  enumValues: F=Can be Used as Foreign Key,C=Exception as User: Can call everything (eg system programs),""=No Exception,S=Exception as Provider: Can be Called from Everywhere,X=Exception as User and Provider'
                        enum:
                        - F
                        - C
                        - ''
                        - S
                        - X
                      OBJSTABLTY:
                        type: string
                        maxLength: 1
                        description: 'Release Status of a Development Object  enumValues: ""=Not Supported (Set by Developer),O=Obsolete,N=Not Supported (Set by Default),S=Supported'
                        enum:
                        - ''
                        - O
                        - N
                        - S
                      COMPONENT:
                        type: string
                        maxLength: 30
                        description: Software Component
                      CRELEASE:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      DELFLAG:
                        type: string
                        maxLength: 1
                        description: 'Deletion Flag  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      TRANSLTTXT:
                        type: string
                        maxLength: 1
                        description: 'Translate Technical Texts into Development Language  enumValues: X=Translation into Development Languages,""=No Translation'
                        enum:
                        - X
                        - ''
                  EXTENSION_SEQUENCE:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        EXTENSION:
                          type: string
                          maxLength: 15
                          description: Structure enhancement ID
                        SEQUENCE:
                          type: integer
                          format: int32
                          description: Counter
                        ORDER_NO:
                          type: integer
                          format: int64
                          description: Enhancement Status Number
                  INACTIVE_NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        NODE_ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        COMPLETE:
                          type: string
                          maxLength: 1
                          description: 'Checkbox  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  POSSIBLE_NODE_TYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        TREE_TYPE:
                          type: string
                          maxLength: 5
                          description: Structure Type
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
                  STRUCTURE_DESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Documentation language
                        ID:
                          type: string
                          maxLength: 32
                          description: GUID for Structure
                        TEXT:
                          type: string
                          maxLength: 75
                          description: Explanatory text
                        TEXT_CAP:
                          type: string
                          maxLength: 75
                          description: Description - only uppercase
                  USER_PARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 25
                          description: Hierarchy maintenance display attribute
                        VALUE:
                          type: string
                          maxLength: 128
                          description: Hierarchy maintenance attribute value
                  VISIBLE_NODE_TYPES:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 32
                          description: Unique ID - 32 characters
                        NODE_TYPE:
                          type: string
                          maxLength: 4
                          description: Valid Node Types in Structure Repository
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
