openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_RFC_PR_CALL_PRED_DB:
    post:
      tags:
      - RS_DME_RFC_PREDICTION
      summary: Run DB based Prediction
      operationId: /rfc/RS_DME_RFC_PR_CALL_PRED_DB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DBNAME:
                  type: string
                  maxLength: 30
                  description: DDIC Table Name for Prediction
                I_ENGINE:
                  type: string
                  maxLength: 30
                  description: Analytical service
                I_MODEL:
                  type: string
                  maxLength: 30
                  description: Analytical Model
                I_PERFORM_EVALUATION:
                  type: string
                  maxLength: 1
                  description: Perform Evaluation
                E_T_ERROR_MATRIX:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS_ACTUAL:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_PREDICTED:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_ACT_TXT:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_PRED_TXT:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      COUNTS:
                        type: integer
                        format: int64
                        description: Counts (Occurences, Frequency Distributions etc)
                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_CONN_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAM_NAME:
                        type: string
                        maxLength: 40
                        description: Name of Data Mining Vendor specific connection parameter
                      PARAM_DESC:
                        type: string
                        maxLength: 50
                        description: Description
                      PARAM_VALUE:
                        type: string
                        maxLength: 40
                        description: Value of a Data Mining Vendor specific connection parameter
                I_T_DATA_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      KEYF:
                        type: string
                        maxLength: 1
                        description: Boolean
                      KEYC:
                        type: string
                        maxLength: 1
                        description: Boolean
                      BLOCK:
                        type: string
                        maxLength: 1
                        description: Boolean
                      COND:
                        type: string
                        maxLength: 1
                        description: Boolean
                      NEWCOL:
                        type: string
                        maxLength: 1
                        description: Boolean
                      LENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: ABAP data type (C,D,N,...)
                      TEXT:
                        type: string
                        maxLength: 20
                        description: 'Services: Text for a Data Item/Parameter Item'
                      EXTTEXT:
                        type: string
                        maxLength: 1
                        description: 'Services: Text Is Managed Externally'
                      DDICFLAG:
                        type: string
                        maxLength: 1
                        description: Boolean
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Table Name
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      MEMORYID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: Lowercase letters allowed/not allowed
                      MAC:
                        type: string
                        maxLength: 1
                        description: Flag if search help is attached to the field
                      VALEXI:
                        type: string
                        maxLength: 1
                        description: Existence of fixed values
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      COMPONENT:
                        type: integer
                        format: int32
                        description: Integer Value
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                I_T_MAPPING:
                  type: array
                  items:
                    type: object
                    properties:
                      MODEL_FIELD:
                        type: string
                        maxLength: 30
                        description: Model Field ID
                      DATA_FIELD:
                        type: string
                        maxLength: 30
                        description: Input data field
                      IS_OUTPUT_FIELD:
                        type: string
                        maxLength: 1
                        description: Field Type - Model Signature field / Prediction Output Field
                      RANK:
                        type: integer
                        format: int32
                        description: Rank
                      TARGET_VAL:
                        type: string
                        maxLength: 64
                        description: Target Value (RFC)
                      MAP_BY_RANK:
                        type: string
                        maxLength: 1
                        description: Mapped by Rank ?
                      DATA_FIELD_POS:
                        type: integer
                        format: int64
                        description: 'Verification: Column position'
                      DB_FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      POSITION:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Table Name
                      LENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: ABAP data type (C,D,N,...)
                      REFTABLE:
                        type: string
                        maxLength: 30
                        description: Table for reference field
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      PRECFIELD:
                        type: string
                        maxLength: 30
                        description: Name of included table
                      AUTHORID:
                        type: string
                        maxLength: 3
                        description: Authorization class
                      MEMORYID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      LOGFLAG:
                        type: string
                        maxLength: 1
                        description: Indicator for writing change documents
                      MASK:
                        type: string
                        maxLength: 20
                        description: Template (not used)
                      MASKLEN:
                        type: integer
                        format: int64
                        description: Template length (not used)
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      HEADLEN:
                        type: integer
                        format: int64
                        description: Maximum length of heading
                      SCRLEN1:
                        type: integer
                        format: int64
                        description: Max. length for short field label
                      SCRLEN2:
                        type: integer
                        format: int64
                        description: Max. length for medium field label
                      SCRLEN3:
                        type: integer
                        format: int64
                        description: Max. length for long field label
                      FIELDTEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      REPTEXT:
                        type: string
                        maxLength: 55
                        description: Heading
                      SCRTEXT_S:
                        type: string
                        maxLength: 10
                        description: Short Field Label
                      SCRTEXT_M:
                        type: string
                        maxLength: 20
                        description: Medium Field Label
                      SCRTEXT_L:
                        type: string
                        maxLength: 40
                        description: Long Field Label
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: Identifies a key field of a table
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: Lowercase letters allowed/not allowed
                      MAC:
                        type: string
                        maxLength: 1
                        description: Flag if search help is attached to the field
                      GENKEY:
                        type: string
                        maxLength: 1
                        description: Flag (X or Blank)
                      NOFORKEY:
                        type: string
                        maxLength: 1
                        description: Flag (X or Blank)
                      VALEXI:
                        type: string
                        maxLength: 1
                        description: Existence of fixed values
                      NOAUTHCH:
                        type: string
                        maxLength: 1
                        description: Flag (X or Blank)
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Flag for sign in numerical fields
                      DYNPFLD:
                        type: string
                        maxLength: 1
                        description: 'Flag: field to be displayed on the screen'
                      F4AVAILABL:
                        type: string
                        maxLength: 1
                        description: Does the field have an input help
                      COMPTYPE:
                        type: string
                        maxLength: 1
                        description: 'DD: Component Type'
                      LFIELDNAME:
                        type: string
                        maxLength: 132
                        description: Field name
                      LTRFLDDIS:
                        type: string
                        maxLength: 1
                        description: Basic write direction has been defined LTR (left-to-right)
                      BIDICTRLC:
                        type: string
                        maxLength: 1
                        description: 'DD: No Filtering of BIDI Formatting Characters'
                I_T_PARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAM:
                        type: string
                        maxLength: 30
                        description: Prediction Parameter - Name
                      VALUE:
                        type: string
                        maxLength: 250
                        description: Param Value (RFC)
              required:
              - I_DBNAME
              - I_ENGINE
              - I_MODEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_MISCLASSIFIED_COUNTS:
                    type: integer
                    format: int64
                    description: Miss Classified Counts
                  E_T_ERROR_MATRIX:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS_ACTUAL:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_PREDICTED:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_ACT_TXT:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_PRED_TXT:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        COUNTS:
                          type: integer
                          format: int64
                          description: Counts (Occurences, Frequency Distributions etc)
                  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_CONN_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAM_NAME:
                          type: string
                          maxLength: 40
                          description: Name of Data Mining Vendor specific connection parameter
                        PARAM_DESC:
                          type: string
                          maxLength: 50
                          description: Description
                        PARAM_VALUE:
                          type: string
                          maxLength: 40
                          description: Value of a Data Mining Vendor specific connection parameter
                  I_T_DATA_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        KEYF:
                          type: string
                          maxLength: 1
                          description: Boolean
                        KEYC:
                          type: string
                          maxLength: 1
                          description: Boolean
                        BLOCK:
                          type: string
                          maxLength: 1
                          description: Boolean
                        COND:
                          type: string
                          maxLength: 1
                          description: Boolean
                        NEWCOL:
                          type: string
                          maxLength: 1
                          description: Boolean
                        LENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: ABAP data type (C,D,N,...)
                        TEXT:
                          type: string
                          maxLength: 20
                          description: 'Services: Text for a Data Item/Parameter Item'
                        EXTTEXT:
                          type: string
                          maxLength: 1
                          description: 'Services: Text Is Managed Externally'
                        DDICFLAG:
                          type: string
                          maxLength: 1
                          description: Boolean
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Table Name
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        MEMORYID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: Lowercase letters allowed/not allowed
                        MAC:
                          type: string
                          maxLength: 1
                          description: Flag if search help is attached to the field
                        VALEXI:
                          type: string
                          maxLength: 1
                          description: Existence of fixed values
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        COMPONENT:
                          type: integer
                          format: int32
                          description: Integer Value
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                  I_T_MAPPING:
                    type: array
                    items:
                      type: object
                      properties:
                        MODEL_FIELD:
                          type: string
                          maxLength: 30
                          description: Model Field ID
                        DATA_FIELD:
                          type: string
                          maxLength: 30
                          description: Input data field
                        IS_OUTPUT_FIELD:
                          type: string
                          maxLength: 1
                          description: Field Type - Model Signature field / Prediction Output Field
                        RANK:
                          type: integer
                          format: int32
                          description: Rank
                        TARGET_VAL:
                          type: string
                          maxLength: 64
                          description: Target Value (RFC)
                        MAP_BY_RANK:
                          type: string
                          maxLength: 1
                          description: Mapped by Rank ?
                        DATA_FIELD_POS:
                          type: integer
                          format: int64
                          description: 'Verification: Column position'
                        DB_FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        POSITION:
                          type: integer
                          format: int64
                          description: Position of the field in the table
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Table Name
                        LENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: ABAP data type (C,D,N,...)
                        REFTABLE:
                          type: string
                          maxLength: 30
                          description: Table for reference field
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        PRECFIELD:
                          type: string
                          maxLength: 30
                          description: Name of included table
                        AUTHORID:
                          type: string
                          maxLength: 3
                          description: Authorization class
                        MEMORYID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        LOGFLAG:
                          type: string
                          maxLength: 1
                          description: Indicator for writing change documents
                        MASK:
                          type: string
                          maxLength: 20
                          description: Template (not used)
                        MASKLEN:
                          type: integer
                          format: int64
                          description: Template length (not used)
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        HEADLEN:
                          type: integer
                          format: int64
                          description: Maximum length of heading
                        SCRLEN1:
                          type: integer
                          format: int64
                          description: Max. length for short field label
                        SCRLEN2:
                          type: integer
                          format: int64
                          description: Max. length for medium field label
                        SCRLEN3:
                          type: integer
                          format: int64
                          description: Max. length for long field label
                        FIELDTEXT:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
                        REPTEXT:
                          type: string
                          maxLength: 55
                          description: Heading
                        SCRTEXT_S:
                          type: string
                          maxLength: 10
                          description: Short Field Label
                        SCRTEXT_M:
                          type: string
                          maxLength: 20
                          description: Medium Field Label
                        SCRTEXT_L:
                          type: string
                          maxLength: 40
                          description: Long Field Label
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: Identifies a key field of a table
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: Lowercase letters allowed/not allowed
                        MAC:
                          type: string
                          maxLength: 1
                          description: Flag if search help is attached to the field
                        GENKEY:
                          type: string
                          maxLength: 1
                          description: Flag (X or Blank)
                        NOFORKEY:
                          type: string
                          maxLength: 1
                          description: Flag (X or Blank)
                        VALEXI:
                          type: string
                          maxLength: 1
                          description: Existence of fixed values
                        NOAUTHCH:
                          type: string
                          maxLength: 1
                          description: Flag (X or Blank)
                        SIGN:
                          type: string
                          maxLength: 1
                          description: Flag for sign in numerical fields
                        DYNPFLD:
                          type: string
                          maxLength: 1
                          description: 'Flag: field to be displayed on the screen'
                        F4AVAILABL:
                          type: string
                          maxLength: 1
                          description: Does the field have an input help
                        COMPTYPE:
                          type: string
                          maxLength: 1
                          description: 'DD: Component Type'
                        LFIELDNAME:
                          type: string
                          maxLength: 132
                          description: Field name
                        LTRFLDDIS:
                          type: string
                          maxLength: 1
                          description: Basic write direction has been defined LTR (left-to-right)
                        BIDICTRLC:
                          type: string
                          maxLength: 1
                          description: 'DD: No Filtering of BIDI Formatting Characters'
                  I_T_PARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAM:
                          type: string
                          maxLength: 30
                          description: Prediction Parameter - Name
                        VALUE:
                          type: string
                          maxLength: 250
                          description: Param Value (RFC)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
