openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_HIERA_GETSUBSTRUCTURE:
    post:
      tags:
      - CLBPH
      summary: 'Class Hierarchy BAPI: Read Hierarchy (Top Down)'
      operationId: /rfc/BAPI_HIERA_GETSUBSTRUCTURE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSNUM:
                  type: string
                  maxLength: 18
                  description: Class Number
                CLASSTYPE:
                  type: string
                  maxLength: 3
                  description: Class Type
                HIERARCHYDEPTH:
                  type: integer
                  format: int32
                  description: Maximum Number of Hierarchy Levels
                KEYDATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Valid-From Date
                SUBSTRUCLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASSNAME:
                        type: string
                        maxLength: 18
                        description: Class number
                      DESCRIPTION:
                        type: string
                        maxLength: 40
                        description: Class Description
                      CHILDNAME:
                        type: string
                        maxLength: 18
                        description: Class number
                      LEVEL:
                        type: integer
                        format: int64
                        description: Level of a hierarchy node
                      LINK:
                        type: string
                        maxLength: 1
                        description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                      STATUS:
                        type: string
                        maxLength: 1
                        description: Classification status
                      LEFTNAME:
                        type: string
                        maxLength: 18
                        description: Class number
                      RIGHTNAME:
                        type: string
                        maxLength: 18
                        description: Class number
              required:
              - CLASSNUM
              - CLASSTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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
                  SUBSTRUCLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASSNAME:
                          type: string
                          maxLength: 18
                          description: Class number
                        DESCRIPTION:
                          type: string
                          maxLength: 40
                          description: Class Description
                        CHILDNAME:
                          type: string
                          maxLength: 18
                          description: Class number
                        LEVEL:
                          type: integer
                          format: int64
                          description: Level of a hierarchy node
                        LINK:
                          type: string
                          maxLength: 1
                          description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                          enum:
                          - X
                          - ''
                        STATUS:
                          type: string
                          maxLength: 1
                          description: Classification status
                        LEFTNAME:
                          type: string
                          maxLength: 18
                          description: Class number
                        RIGHTNAME:
                          type: string
                          maxLength: 18
                          description: Class number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
