SAP Function Modules

IUUC_GET_DELTA_RECORDS_46C SAP Function module - IUUC: Get delta records from original table







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

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


Pattern for FM IUUC_GET_DELTA_RECORDS_46C - IUUC GET DELTA RECORDS 46C





CALL FUNCTION 'IUUC_GET_DELTA_RECORDS_46C' "IUUC: Get delta records from original table
  EXPORTING
    i_orig_tabname =            " tabname       Table name
    i_check_deletion =          " boolean       boolean variable (X=true, -=false, space=unknown)
    i_cluster_tab =             " tabname       Table name
  IMPORTING
    e_records =                 " int4          Natural number
    e_missing_records =         " int4          Natural number
    e_remaining_deletion =      " int4          Natural number
  TABLES
    et_data =                   " iuuc_rfc_payload_46c_tab  IUUC RFC payload table
    ct_delta_keys_i =           " iuuc_rfc_payload_46c_tab  IUUC RFC payload table
    ct_delta_keys_u =           " iuuc_rfc_payload_46c_tab  IUUC RFC payload table
    ct_delta_keys_d =           " iuuc_rfc_payload_46c_tab  IUUC RFC payload table
  EXCEPTIONS
    SELECTION_FAILED = 1        "               Selection of delta records failed
    .  "  IUUC_GET_DELTA_RECORDS_46C

ABAP code example for Function Module IUUC_GET_DELTA_RECORDS_46C





The ABAP code below is a full code listing to execute function module IUUC_GET_DELTA_RECORDS_46C 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_records  TYPE INT4 ,
ld_e_missing_records  TYPE INT4 ,
ld_e_remaining_deletion  TYPE INT4 ,
it_et_data  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB,"TABLES PARAM
wa_et_data  LIKE LINE OF it_et_data ,
it_ct_delta_keys_i  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB,"TABLES PARAM
wa_ct_delta_keys_i  LIKE LINE OF it_ct_delta_keys_i ,
it_ct_delta_keys_u  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB,"TABLES PARAM
wa_ct_delta_keys_u  LIKE LINE OF it_ct_delta_keys_u ,
it_ct_delta_keys_d  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB,"TABLES PARAM
wa_ct_delta_keys_d  LIKE LINE OF it_ct_delta_keys_d .

DATA(ld_i_orig_tabname) = 'Check type of data required'.
DATA(ld_i_check_deletion) = 'Check type of data required'.
DATA(ld_i_cluster_tab) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.

"populate fields of struture and append to itab
append wa_ct_delta_keys_i to it_ct_delta_keys_i.

"populate fields of struture and append to itab
append wa_ct_delta_keys_u to it_ct_delta_keys_u.

"populate fields of struture and append to itab
append wa_ct_delta_keys_d to it_ct_delta_keys_d. . CALL FUNCTION 'IUUC_GET_DELTA_RECORDS_46C' EXPORTING i_orig_tabname = ld_i_orig_tabname i_check_deletion = ld_i_check_deletion i_cluster_tab = ld_i_cluster_tab IMPORTING e_records = ld_e_records e_missing_records = ld_e_missing_records e_remaining_deletion = ld_e_remaining_deletion TABLES et_data = it_et_data ct_delta_keys_i = it_ct_delta_keys_i ct_delta_keys_u = it_ct_delta_keys_u ct_delta_keys_d = it_ct_delta_keys_d EXCEPTIONS SELECTION_FAILED = 1 . " IUUC_GET_DELTA_RECORDS_46C
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_records  TYPE INT4 ,
ld_i_orig_tabname  TYPE TABNAME ,
it_et_data  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB ,
wa_et_data  LIKE LINE OF it_et_data,
ld_e_missing_records  TYPE INT4 ,
ld_i_check_deletion  TYPE BOOLEAN ,
it_ct_delta_keys_i  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB ,
wa_ct_delta_keys_i  LIKE LINE OF it_ct_delta_keys_i,
ld_e_remaining_deletion  TYPE INT4 ,
ld_i_cluster_tab  TYPE TABNAME ,
it_ct_delta_keys_u  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB ,
wa_ct_delta_keys_u  LIKE LINE OF it_ct_delta_keys_u,
it_ct_delta_keys_d  TYPE STANDARD TABLE OF IUUC_RFC_PAYLOAD_46C_TAB ,
wa_ct_delta_keys_d  LIKE LINE OF it_ct_delta_keys_d.

ld_i_orig_tabname = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.
ld_i_check_deletion = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ct_delta_keys_i to it_ct_delta_keys_i.
ld_i_cluster_tab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ct_delta_keys_u to it_ct_delta_keys_u.

"populate fields of struture and append to itab
append wa_ct_delta_keys_d to it_ct_delta_keys_d.

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