SAP Function Modules

MEREP_T01_DELTA_SEND SAP Function module - Send Delta Data







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

Associated Function Group: MEREP_RUNTIME
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MEREP_T01_DELTA_SEND - MEREP T01 DELTA SEND





CALL FUNCTION 'MEREP_T01_DELTA_SEND' "Send Delta Data
  EXPORTING
    syncbo =                    " merep_scenario  SyncBO ID
    mbl_id =                    " merep_mbl_id  Mobile ID
    handler_worklist =          " merep_505     Inbox/Outbox Worklist
    rdb_h_lines =               " i
    package_rows =              " i
    timestamp =                 " merep_timestamp  UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
  TABLES
    i_mbl_rdb =                 " merep_10700   Mobile Sync Key Control Table
    ie_rdb_h_skey_upd =         " merep_h_skey  Sync Key for Header from Replication DB
    i_rdb_h_cdel =              " merep_common_str  Replica DB for Timed 2-Way Sync
    ie_cascade_data =           " merep_cascade_data  Cascade Data
    ie_conflict_rtn =           " merep_504     Inbox/Outbox Data
    e_download_data =           " merep_504     Inbox/Outbox Data
  CHANGING
    sync_generic =              " merep_sync_generic  Synchronizer Generic Parameters
    .  "  MEREP_T01_DELTA_SEND

ABAP code example for Function Module MEREP_T01_DELTA_SEND





The ABAP code below is a full code listing to execute function module MEREP_T01_DELTA_SEND 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_i_mbl_rdb  TYPE STANDARD TABLE OF MEREP_10700,"TABLES PARAM
wa_i_mbl_rdb  LIKE LINE OF it_i_mbl_rdb ,
it_ie_rdb_h_skey_upd  TYPE STANDARD TABLE OF MEREP_H_SKEY,"TABLES PARAM
wa_ie_rdb_h_skey_upd  LIKE LINE OF it_ie_rdb_h_skey_upd ,
it_i_rdb_h_cdel  TYPE STANDARD TABLE OF MEREP_COMMON_STR,"TABLES PARAM
wa_i_rdb_h_cdel  LIKE LINE OF it_i_rdb_h_cdel ,
it_ie_cascade_data  TYPE STANDARD TABLE OF MEREP_CASCADE_DATA,"TABLES PARAM
wa_ie_cascade_data  LIKE LINE OF it_ie_cascade_data ,
it_ie_conflict_rtn  TYPE STANDARD TABLE OF MEREP_504,"TABLES PARAM
wa_ie_conflict_rtn  LIKE LINE OF it_ie_conflict_rtn ,
it_e_download_data  TYPE STANDARD TABLE OF MEREP_504,"TABLES PARAM
wa_e_download_data  LIKE LINE OF it_e_download_data .

DATA(ld_sync_generic) = 'some text here'.
DATA(ld_syncbo) = 'some text here'.
DATA(ld_mbl_id) = 'some text here'.
DATA(ld_handler_worklist) = 'some text here'.
DATA(ld_rdb_h_lines) = 'some text here'.
DATA(ld_package_rows) = 'some text here'.
DATA(ld_timestamp) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_mbl_rdb to it_i_mbl_rdb.

"populate fields of struture and append to itab
append wa_ie_rdb_h_skey_upd to it_ie_rdb_h_skey_upd.

"populate fields of struture and append to itab
append wa_i_rdb_h_cdel to it_i_rdb_h_cdel.

"populate fields of struture and append to itab
append wa_ie_cascade_data to it_ie_cascade_data.

"populate fields of struture and append to itab
append wa_ie_conflict_rtn to it_ie_conflict_rtn.

"populate fields of struture and append to itab
append wa_e_download_data to it_e_download_data. . CALL FUNCTION 'MEREP_T01_DELTA_SEND' EXPORTING syncbo = ld_syncbo mbl_id = ld_mbl_id handler_worklist = ld_handler_worklist rdb_h_lines = ld_rdb_h_lines package_rows = ld_package_rows timestamp = ld_timestamp TABLES i_mbl_rdb = it_i_mbl_rdb ie_rdb_h_skey_upd = it_ie_rdb_h_skey_upd i_rdb_h_cdel = it_i_rdb_h_cdel ie_cascade_data = it_ie_cascade_data ie_conflict_rtn = it_ie_conflict_rtn e_download_data = it_e_download_data CHANGING sync_generic = ld_sync_generic . " MEREP_T01_DELTA_SEND
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_sync_generic  TYPE MEREP_SYNC_GENERIC ,
ld_syncbo  TYPE MEREP_SCENARIO ,
it_i_mbl_rdb  TYPE STANDARD TABLE OF MEREP_10700 ,
wa_i_mbl_rdb  LIKE LINE OF it_i_mbl_rdb,
ld_mbl_id  TYPE MEREP_MBL_ID ,
it_ie_rdb_h_skey_upd  TYPE STANDARD TABLE OF MEREP_H_SKEY ,
wa_ie_rdb_h_skey_upd  LIKE LINE OF it_ie_rdb_h_skey_upd,
ld_handler_worklist  TYPE MEREP_505 ,
it_i_rdb_h_cdel  TYPE STANDARD TABLE OF MEREP_COMMON_STR ,
wa_i_rdb_h_cdel  LIKE LINE OF it_i_rdb_h_cdel,
ld_rdb_h_lines  TYPE I ,
it_ie_cascade_data  TYPE STANDARD TABLE OF MEREP_CASCADE_DATA ,
wa_ie_cascade_data  LIKE LINE OF it_ie_cascade_data,
ld_package_rows  TYPE I ,
it_ie_conflict_rtn  TYPE STANDARD TABLE OF MEREP_504 ,
wa_ie_conflict_rtn  LIKE LINE OF it_ie_conflict_rtn,
ld_timestamp  TYPE MEREP_TIMESTAMP ,
it_e_download_data  TYPE STANDARD TABLE OF MEREP_504 ,
wa_e_download_data  LIKE LINE OF it_e_download_data.

ld_sync_generic = 'some text here'.
ld_syncbo = 'some text here'.

"populate fields of struture and append to itab
append wa_i_mbl_rdb to it_i_mbl_rdb.
ld_mbl_id = 'some text here'.

"populate fields of struture and append to itab
append wa_ie_rdb_h_skey_upd to it_ie_rdb_h_skey_upd.
ld_handler_worklist = 'some text here'.

"populate fields of struture and append to itab
append wa_i_rdb_h_cdel to it_i_rdb_h_cdel.
ld_rdb_h_lines = 'some text here'.

"populate fields of struture and append to itab
append wa_ie_cascade_data to it_ie_cascade_data.
ld_package_rows = 'some text here'.

"populate fields of struture and append to itab
append wa_ie_conflict_rtn to it_ie_conflict_rtn.
ld_timestamp = 'some text here'.

"populate fields of struture and append to itab
append wa_e_download_data to it_e_download_data.

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