SAP Function Modules

RS_DME_CLK_LOOP_ON_INPUT_FINAL SAP Function module - Final Loop on input







RS_DME_CLK_LOOP_ON_INPUT_FINAL 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_CLK_LOOP_ON_INPUT_FINAL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RS_DME_CLUSTERING_KMEANS
Released Date: 02.04.2001
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RS_DME_CLK_LOOP_ON_INPUT_FINAL - RS DME CLK LOOP ON INPUT FINAL





CALL FUNCTION 'RS_DME_CLK_LOOP_ON_INPUT_FINAL' "Final Loop on input
  EXPORTING
    i_sets =                    " rsdmem_counts_sh  Small Counts
  IMPORTING
    e_t_return =                " bapiret2_t    Data Store
    e_change_count =            " rsdmem_counts  Counts (Occurences, Frequency Distributions etc)
  TABLES
    e_t_clust_dtl =             " rsdmsc_clust_dtl  Cluster Details
    i_t_set_mean_dtl =          " rsdmsc_set_mean_dtl  Mean Detail
    i_t_mean_head =             " rsdmsc_mean_head  Mean Header
    i_t_mean_dtl =              " rsdmsc_mean_dtl  Mean Detail
    .  "  RS_DME_CLK_LOOP_ON_INPUT_FINAL

ABAP code example for Function Module RS_DME_CLK_LOOP_ON_INPUT_FINAL





The ABAP code below is a full code listing to execute function module RS_DME_CLK_LOOP_ON_INPUT_FINAL 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:
ld_e_t_return  TYPE BAPIRET2_T ,
ld_e_change_count  TYPE RSDMEM_COUNTS ,
it_e_t_clust_dtl  TYPE STANDARD TABLE OF RSDMSC_CLUST_DTL,"TABLES PARAM
wa_e_t_clust_dtl  LIKE LINE OF it_e_t_clust_dtl ,
it_i_t_set_mean_dtl  TYPE STANDARD TABLE OF RSDMSC_SET_MEAN_DTL,"TABLES PARAM
wa_i_t_set_mean_dtl  LIKE LINE OF it_i_t_set_mean_dtl ,
it_i_t_mean_head  TYPE STANDARD TABLE OF RSDMSC_MEAN_HEAD,"TABLES PARAM
wa_i_t_mean_head  LIKE LINE OF it_i_t_mean_head ,
it_i_t_mean_dtl  TYPE STANDARD TABLE OF RSDMSC_MEAN_DTL,"TABLES PARAM
wa_i_t_mean_dtl  LIKE LINE OF it_i_t_mean_dtl .

DATA(ld_i_sets) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_clust_dtl to it_e_t_clust_dtl.

"populate fields of struture and append to itab
append wa_i_t_set_mean_dtl to it_i_t_set_mean_dtl.

"populate fields of struture and append to itab
append wa_i_t_mean_head to it_i_t_mean_head.

"populate fields of struture and append to itab
append wa_i_t_mean_dtl to it_i_t_mean_dtl. . CALL FUNCTION 'RS_DME_CLK_LOOP_ON_INPUT_FINAL' EXPORTING i_sets = ld_i_sets IMPORTING e_t_return = ld_e_t_return e_change_count = ld_e_change_count TABLES e_t_clust_dtl = it_e_t_clust_dtl i_t_set_mean_dtl = it_i_t_set_mean_dtl i_t_mean_head = it_i_t_mean_head i_t_mean_dtl = it_i_t_mean_dtl . " RS_DME_CLK_LOOP_ON_INPUT_FINAL
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_e_t_return  TYPE BAPIRET2_T ,
ld_i_sets  TYPE RSDMEM_COUNTS_SH ,
it_e_t_clust_dtl  TYPE STANDARD TABLE OF RSDMSC_CLUST_DTL ,
wa_e_t_clust_dtl  LIKE LINE OF it_e_t_clust_dtl,
ld_e_change_count  TYPE RSDMEM_COUNTS ,
it_i_t_set_mean_dtl  TYPE STANDARD TABLE OF RSDMSC_SET_MEAN_DTL ,
wa_i_t_set_mean_dtl  LIKE LINE OF it_i_t_set_mean_dtl,
it_i_t_mean_head  TYPE STANDARD TABLE OF RSDMSC_MEAN_HEAD ,
wa_i_t_mean_head  LIKE LINE OF it_i_t_mean_head,
it_i_t_mean_dtl  TYPE STANDARD TABLE OF RSDMSC_MEAN_DTL ,
wa_i_t_mean_dtl  LIKE LINE OF it_i_t_mean_dtl.

ld_i_sets = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_clust_dtl to it_e_t_clust_dtl.

"populate fields of struture and append to itab
append wa_i_t_set_mean_dtl to it_i_t_set_mean_dtl.

"populate fields of struture and append to itab
append wa_i_t_mean_head to it_i_t_mean_head.

"populate fields of struture and append to itab
append wa_i_t_mean_dtl to it_i_t_mean_dtl.

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_CLK_LOOP_ON_INPUT_FINAL or its description.