openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_MDPROVIDER_GET_HIERARCHYS:
    post:
      tags:
      - RSOB
      summary: Delivers a list of HIERARCHIES
      operationId: /rfc/BAPI_MDPROVIDER_GET_HIERARCHYS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CAT_NAM:
                  type: string
                  maxLength: 32
                  description: 'Restriction: CAT_NAM'
                CUBE_NAM:
                  type: string
                  maxLength: 70
                  description: 'Restriction: CUBE_NAM'
                DIM_UNAM:
                  type: string
                  maxLength: 32
                  description: 'Restriction: DIM_UNAM'
                HRY_NAM:
                  type: string
                  maxLength: 41
                  description: 'Restriction: HRY_NAM'
                HRY_UNAM:
                  type: string
                  maxLength: 65
                  description: 'Restriction: HRY_UNAM'
                HIERARCHIES:
                  type: array
                  items:
                    type: object
                    properties:
                      CAT_NAM:
                        type: string
                        maxLength: 32
                        description: CATALOG to which the CUBE belongs
                      CUBE_NAM:
                        type: string
                        maxLength: 70
                        description: Cube name
                      DIM_UNAM:
                        type: string
                        maxLength: 32
                        description: Unique name of dimension (dimension unique name)
                      HRY_NAM:
                        type: string
                        maxLength: 41
                        description: Name of a hierarchy (hienm30, version3, dateto8)
                      HRY_UNAM:
                        type: string
                        maxLength: 65
                        description: Hierarchy Unique Name
                      HRY_UID:
                        type: string
                        maxLength: 25
                        description: UUID in compressed form
                      HRY_CAP:
                        type: string
                        maxLength: 60
                        description: Description (caption)
                      DIM_TYPE:
                        type: integer
                        format: int64
                        description: 'Type of dimension (TIME, MEASURE)  enumValues: 4=md_dimtype_other_no_aggre,1=md_dimtype_time,3=md_dimtype_other,0=md_dimtype_unknown,2=md_dimtype_measure'
                        enum:
                        - '4'
                        - '1'
                        - '3'
                        - '0'
                        - '2'
                      HRY_CARDINALITY:
                        type: integer
                        format: int64
                        description: Cardinality of the dimension (Approx. number of members)
                      DFLT_MEM:
                        type: string
                        maxLength: 143
                        description: Unique name of a member
                      ALL_MEM:
                        type: string
                        maxLength: 143
                        description: Unique name of a member
                      DSCRPTN:
                        type: string
                        maxLength: 60
                        description: Description
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    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
                  HIERARCHIES:
                    type: array
                    items:
                      type: object
                      properties:
                        CAT_NAM:
                          type: string
                          maxLength: 32
                          description: CATALOG to which the CUBE belongs
                        CUBE_NAM:
                          type: string
                          maxLength: 70
                          description: Cube name
                        DIM_UNAM:
                          type: string
                          maxLength: 32
                          description: Unique name of dimension (dimension unique name)
                        HRY_NAM:
                          type: string
                          maxLength: 41
                          description: Name of a hierarchy (hienm30, version3, dateto8)
                        HRY_UNAM:
                          type: string
                          maxLength: 65
                          description: Hierarchy Unique Name
                        HRY_UID:
                          type: string
                          maxLength: 25
                          description: UUID in compressed form
                        HRY_CAP:
                          type: string
                          maxLength: 60
                          description: Description (caption)
                        DIM_TYPE:
                          type: integer
                          format: int64
                          description: 'Type of dimension (TIME, MEASURE)  enumValues: 4=md_dimtype_other_no_aggre,1=md_dimtype_time,3=md_dimtype_other,0=md_dimtype_unknown,2=md_dimtype_measure'
                          enum:
                          - '4'
                          - '1'
                          - '3'
                          - '0'
                          - '2'
                        HRY_CARDINALITY:
                          type: integer
                          format: int64
                          description: Cardinality of the dimension (Approx. number of members)
                        DFLT_MEM:
                          type: string
                          maxLength: 143
                          description: Unique name of a member
                        ALL_MEM:
                          type: string
                          maxLength: 143
                          description: Unique name of a member
                        DSCRPTN:
                          type: string
                          maxLength: 60
                          description: Description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
