openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSRCUB_CREATE:
    post:
      tags:
      - RSRCUB
      operationId: /rfc/RSRCUB_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DETAILS:
                  type: object
                  properties:
                    RCUB_NAME:
                      type: string
                      maxLength: 30
                      description: InfoCube
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    TYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of Entry in Directory RDRCUB (Catalog, Schema...)  enumValues: R=Relationaler Cube,S=Schema,C=Catalog'
                      enum:
                      - R
                      - S
                      - C
                    RCUB_UUID:
                      type: string
                      maxLength: 25
                      description: UUID in compressed form
                    NAME_PARENT:
                      type: string
                      maxLength: 30
                      description: InfoCube
                    SYSTEM_ID:
                      type: string
                      maxLength: 30
                      description: ''
                    OWNER:
                      type: string
                      maxLength: 12
                      description: Owner (Person Responsible)
                    TXTSH:
                      type: string
                      maxLength: 20
                      description: Short description
                    TXTLG:
                      type: string
                      maxLength: 60
                      description: Long description
                I_T_COLUMNS:
                  type: array
                  items:
                    type: object
                    properties:
                      TAB_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      COL_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      COL_NAME:
                        type: string
                        maxLength: 100
                        description: ''
                      COL_ALIAS:
                        type: string
                        maxLength: 100
                        description: ''
                      CLASSIFIER:
                        type: string
                        maxLength: 1
                        description: 'Field Classification  enumValues: K=Key Figure,A=Attribute,D=Dimension'
                        enum:
                        - K
                        - A
                        - D
                      AGGREGATOR:
                        type: integer
                        format: int64
                        description: 'Aggregational behaviour for key figure  enumValues: 006=MEASURE_AGGR_VAR,011=MEASURE_AGGR_COUNT_NOT_ZERO,001=MEASURE_AGGR_SUM,008=MEASURE_AGGR_AVG_NOT_ZERO,004=MEASURE_AGGR_MAX,007=MEASURE_AGGR_STD,013=MEASURE_AGGR_LAST,000=MEASURE_AGGR_UNKNOWN,002=MEASURE_AGGR_COUNT,010=MEASURE_AGGR_AVG_PERIOD,127=MEASURE_AGGR_CALCULATED,009=MEASURE_AGGR_AVG_CALENDAR_DAYS,014=MEASURE_AGGR_NOP,012=MEASURE_AGGR_FIRST,003=MEASURE_AGGR_MIN,005=MEASURE_AGGR_AVG'
                        enum:
                        - '006'
                        - '011'
                        - '001'
                        - '008'
                        - '004'
                        - '007'
                        - '013'
                        - '000'
                        - '002'
                        - '010'
                        - '127'
                        - '009'
                        - '014'
                        - '012'
                        - '003'
                        - '005'
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
                I_T_DIMCOL_ASSOCIATIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      DIM_NAME:
                        type: string
                        maxLength: 32
                        description: Unique name of dimension (dimension unique name)
                      COL_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                I_T_DIMENSIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      DIM_NAME:
                        type: string
                        maxLength: 32
                        description: Unique name of dimension (dimension unique name)
                      DIM_ORDINAL:
                        type: integer
                        format: int64
                        description: Ordinal number of dimension within the cube
                      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'
                      DIM_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
                I_T_JOINS:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Relational Cube: Join Type  enumValues: O=Left Outer,S=Self,I=Inner'
                        enum:
                        - O
                        - S
                        - I
                      TAB1_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      COL1_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      TAB2_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      COL2_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                I_T_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      TAB_ID:
                        type: integer
                        format: int64
                        description: Numc3, internal use
                      TAB_NAME:
                        type: string
                        maxLength: 100
                        description: ''
                      TAB_ALIAS:
                        type: string
                        maxLength: 100
                        description: ''
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
              required:
              - DETAILS
      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
                  I_T_COLUMNS:
                    type: array
                    items:
                      type: object
                      properties:
                        TAB_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        COL_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        COL_NAME:
                          type: string
                          maxLength: 100
                          description: ''
                        COL_ALIAS:
                          type: string
                          maxLength: 100
                          description: ''
                        CLASSIFIER:
                          type: string
                          maxLength: 1
                          description: 'Field Classification  enumValues: K=Key Figure,A=Attribute,D=Dimension'
                          enum:
                          - K
                          - A
                          - D
                        AGGREGATOR:
                          type: integer
                          format: int64
                          description: 'Aggregational behaviour for key figure  enumValues: 006=MEASURE_AGGR_VAR,011=MEASURE_AGGR_COUNT_NOT_ZERO,001=MEASURE_AGGR_SUM,008=MEASURE_AGGR_AVG_NOT_ZERO,004=MEASURE_AGGR_MAX,007=MEASURE_AGGR_STD,013=MEASURE_AGGR_LAST,000=MEASURE_AGGR_UNKNOWN,002=MEASURE_AGGR_COUNT,010=MEASURE_AGGR_AVG_PERIOD,127=MEASURE_AGGR_CALCULATED,009=MEASURE_AGGR_AVG_CALENDAR_DAYS,014=MEASURE_AGGR_NOP,012=MEASURE_AGGR_FIRST,003=MEASURE_AGGR_MIN,005=MEASURE_AGGR_AVG'
                          enum:
                          - '006'
                          - '011'
                          - '001'
                          - '008'
                          - '004'
                          - '007'
                          - '013'
                          - '000'
                          - '002'
                          - '010'
                          - '127'
                          - '009'
                          - '014'
                          - '012'
                          - '003'
                          - '005'
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
                  I_T_DIMCOL_ASSOCIATIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        DIM_NAME:
                          type: string
                          maxLength: 32
                          description: Unique name of dimension (dimension unique name)
                        COL_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                  I_T_DIMENSIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        DIM_NAME:
                          type: string
                          maxLength: 32
                          description: Unique name of dimension (dimension unique name)
                        DIM_ORDINAL:
                          type: integer
                          format: int64
                          description: Ordinal number of dimension within the cube
                        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'
                        DIM_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
                  I_T_JOINS:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Relational Cube: Join Type  enumValues: O=Left Outer,S=Self,I=Inner'
                          enum:
                          - O
                          - S
                          - I
                        TAB1_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        COL1_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        TAB2_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        COL2_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                  I_T_TABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        TAB_ID:
                          type: integer
                          format: int64
                          description: Numc3, internal use
                        TAB_NAME:
                          type: string
                          maxLength: 100
                          description: ''
                        TAB_ALIAS:
                          type: string
                          maxLength: 100
                          description: ''
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
