SAP Function Modules

RS_DME_MCI_PREDICT SAP Function module - Prediction Interface







RS_DME_MCI_PREDICT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RS_DME_MCI_PREDICT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RS_DME_MP_CONSUMER_INT
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM RS_DME_MCI_PREDICT - RS DME MCI PREDICT





CALL FUNCTION 'RS_DME_MCI_PREDICT' "Prediction Interface
  EXPORTING
    i_service_name =            " rsdmem_analytical_service  Analytical service
    i_model_name =              " rsdmem_model  Analytical Model
    i_data_src =                " rsdmsm_data_src  Data Source for model
    i_user_id = SY-UNAME        " guser-bname   User name in user master record
    i_langu = SY-LANGU          " rsdmem_language  Language ID
*   i_batch_job =               " tbtcstrt      Start data description / Repetition period of background job
*   i_predict_col =             " rsdmem_column_name  Column Name
* TABLES
*   e_t_return =                " bapiret2      Return parameter
    .  "  RS_DME_MCI_PREDICT

ABAP code example for Function Module RS_DME_MCI_PREDICT





The ABAP code below is a full code listing to execute function module RS_DME_MCI_PREDICT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_e_t_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_e_t_return  LIKE LINE OF it_e_t_return .

DATA(ld_i_service_name) = 'Check type of data required'.
DATA(ld_i_model_name) = 'Check type of data required'.
DATA(ld_i_data_src) = 'Check type of data required'.

SELECT single BNAME
FROM GUSER
INTO @DATA(ld_i_user_id).

DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_batch_job) = 'Check type of data required'.
DATA(ld_i_predict_col) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_return to it_e_t_return. . CALL FUNCTION 'RS_DME_MCI_PREDICT' EXPORTING i_service_name = ld_i_service_name i_model_name = ld_i_model_name i_data_src = ld_i_data_src i_user_id = ld_i_user_id i_langu = ld_i_langu * i_batch_job = ld_i_batch_job * i_predict_col = ld_i_predict_col * TABLES * e_t_return = it_e_t_return . " RS_DME_MCI_PREDICT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_service_name  TYPE RSDMEM_ANALYTICAL_SERVICE ,
it_e_t_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_e_t_return  LIKE LINE OF it_e_t_return,
ld_i_model_name  TYPE RSDMEM_MODEL ,
ld_i_data_src  TYPE RSDMSM_DATA_SRC ,
ld_i_user_id  TYPE GUSER-BNAME ,
ld_i_langu  TYPE RSDMEM_LANGUAGE ,
ld_i_batch_job  TYPE TBTCSTRT ,
ld_i_predict_col  TYPE RSDMEM_COLUMN_NAME .

ld_i_service_name = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_return to it_e_t_return.
ld_i_model_name = 'Check type of data required'.
ld_i_data_src = 'Check type of data required'.

SELECT single BNAME
FROM GUSER
INTO ld_i_user_id.

ld_i_langu = 'Check type of data required'.
ld_i_batch_job = 'Check type of data required'.
ld_i_predict_col = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RS_DME_MCI_PREDICT or its description.