openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RRAM_CREATE_MODEL:
    post:
      tags:
      - RS_ANALYTIC_MODEL
      operationId: /rfc/RRAM_CREATE_MODEL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_IDENTIFIER1:
                  type: string
                  maxLength: 30
                I_IDENTIFIER2:
                  type: string
                  maxLength: 30
                I_IDENTIFIER3:
                  type: string
                  maxLength: 30
                I_IDENTIFIER4:
                  type: string
                  maxLength: 30
                I_RFC_DEST:
                  type: string
                  maxLength: 32
                I_TYPE:
                  type: string
                  default: REM
                  maxLength: 3
                E_T_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
                I_T_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELD:
                        type: string
                        maxLength: 60
                        description: Long description
                      DATATP:
                        type: string
                        maxLength: 4
                        description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                          accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                          field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      MAXLEN:
                        type: integer
                        format: int64
                        description: Internal Length of InfoObjects in BW - see Docu
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      IOBJTP:
                        type: string
                        maxLength: 3
                        description: 'Type of an InfoObject  enumValues: DPA=Data packet characteristic,KYF=Key figure,UNI=Unit of measurement,CHA=Characteristic,TIM=Time characteristic'
                        enum:
                        - DPA
                        - KYF
                        - UNI
                        - CHA
                        - TIM
                      AGGR:
                        type: string
                        maxLength: 3
                        description: 'Usual aggregation  enumValues: SUM=,MAX=Maximum,MIN=Minimum,NO1=No aggregation (X, if more than one record occurs),NOP=No aggregation (X, if more than one value not = 0 occurs),NHA=No hierarchy aggregation (only to be used internally),NO2=No aggregation (X, if more than one value occurs)'
                        enum:
                        - SUM
                        - MAX
                        - MIN
                        - NO1
                        - NOP
                        - NHA
                        - NO2
                      UNIT:
                        type: string
                        maxLength: 60
                        description: Long description
                      UNITP:
                        type: string
                        maxLength: 3
                        description: 'Unit type  enumValues: UNI=Units of measure,CUR=Currency'
                        enum:
                        - UNI
                        - CUR
                      FIXED_UNIT:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
              required:
              - I_IDENTIFIER1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_INFOPROV:
                    type: string
                    maxLength: 30
                  E_T_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
                  I_T_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELD:
                          type: string
                          maxLength: 60
                          description: Long description
                        DATATP:
                          type: string
                          maxLength: 4
                          description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                            accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                            field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        MAXLEN:
                          type: integer
                          format: int64
                          description: Internal Length of InfoObjects in BW - see Docu
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        IOBJTP:
                          type: string
                          maxLength: 3
                          description: 'Type of an InfoObject  enumValues: DPA=Data packet characteristic,KYF=Key figure,UNI=Unit of measurement,CHA=Characteristic,TIM=Time characteristic'
                          enum:
                          - DPA
                          - KYF
                          - UNI
                          - CHA
                          - TIM
                        AGGR:
                          type: string
                          maxLength: 3
                          description: 'Usual aggregation  enumValues: SUM=,MAX=Maximum,MIN=Minimum,NO1=No aggregation (X, if more than one record occurs),NOP=No aggregation (X, if more than one value not = 0 occurs),NHA=No hierarchy aggregation (only to be used internally),NO2=No aggregation (X, if more than one value occurs)'
                          enum:
                          - SUM
                          - MAX
                          - MIN
                          - NO1
                          - NOP
                          - NHA
                          - NO2
                        UNIT:
                          type: string
                          maxLength: 60
                          description: Long description
                        UNITP:
                          type: string
                          maxLength: 3
                          description: 'Unit type  enumValues: UNI=Units of measure,CUR=Currency'
                          enum:
                          - UNI
                          - CUR
                        FIXED_UNIT:
                          type: string
                          maxLength: 1
                          description: 'Boolean  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
