openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/COM_HIERARCHY_CREATE_API:
    post:
      tags:
      - COM_HIERARCHY_MAINTAIN_API
      operationId: /rfc/COM_HIERARCHY_CREATE_API
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_HIERARCHY:
                  type: object
                  properties:
                    CLIENT:
                      type: string
                      maxLength: 3
                      description: Client
                    HIERARCHY_GUID:
                      type: string
                      format: byte
                      description: Category Hierarchy GUID
                    HIERARCHY_ID:
                      type: string
                      maxLength: 10
                      description: Category Hierarchy ID
                    ROOT_CAT_GUID:
                      type: string
                      format: byte
                      description: Category GUID
                    SCHEME_GUID:
                      type: string
                      format: byte
                      description: Numbering Scheme GUID
                    CAT_AUTONUMBER:
                      type: string
                      maxLength: 1
                      description: 'Automatic Number Assignment  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    MULTI_SYS:
                      type: string
                      maxLength: 1
                      description: 'Hierarchy Contains Categories from Several Systems  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    STANDARD_SCHEMA:
                      type: string
                      maxLength: 10
                      description: Standard Schema Type
                    VALID_FROM:
                      type: integer
                      format: int64
                      description: Valid From (Time Stamp)
                    VALID_TO:
                      type: integer
                      format: int64
                      description: Valid To (Time Stamp)
                    UPNAME:
                      type: string
                      maxLength: 12
                      description: Name of the User Who Last Changed the Set
                    HISTEX:
                      type: string
                      maxLength: 1
                      description: 'History Exists  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Original System
                IT_HIERARCHYT:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      HIERARCHY_GUID:
                        type: string
                        format: byte
                        description: Category Hierarchy GUID
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      HIERARCHY_TEXT:
                        type: string
                        maxLength: 40
                        description: Category Hierarchy Description
                      TEXT_UPPER_CASE:
                        type: string
                        maxLength: 40
                        description: Hierarchy Description in Uppercase Letters
                      VALID_FROM:
                        type: integer
                        format: int64
                        description: Valid From (Time Stamp)
                      VALID_TO:
                        type: integer
                        format: int64
                        description: Valid To (Time Stamp)
                      UPNAME:
                        type: string
                        maxLength: 12
                        description: Name of the User Who Last Changed the Set
                      HISTEX:
                        type: string
                        maxLength: 1
                        description: History Exists
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Original System
                IV_COMMIT_WORK:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_EXT_MAINT:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_SUPPRESS_DB_SAVE:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_UPDATE_TASK:
                  type: string
                  default: ' '
                  maxLength: 1
              required:
              - IS_HIERARCHY
              - IT_HIERARCHYT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BAPIRETURN:
                    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
                  EV_HIERARCHY_GUID:
                    type: string
                    format: byte
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
