SAP Function Modules

FRE_MD_OBJECTS_DELTA_SEND SAP Function module - Delta Transfer location-product Objects to F&R







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

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


Pattern for FM FRE_MD_OBJECTS_DELTA_SEND - FRE MD OBJECTS DELTA SEND





CALL FUNCTION 'FRE_MD_OBJECTS_DELTA_SEND' "Delta Transfer location-product Objects to F&R
  EXPORTING
    i_s_work_report =           " fre_work_report_sty  Work pannel from Reports to Object modules (Outbound to F&R)
*   i_message_type =            " tbdme-mestyp  Message type
*   i_refid =                   " fre_trdat     Timestamp transfer date/time
*   ip_save_objects = 'X'       " xflag         save sent objects into file
*   ip_calling_process =        " fre_actual_process  actual interface process: initial or delta load
* TABLES
*   i_t_fre_matkey =            " fre_bif_matkey_iso_tty  F&R Product unit of measures data incl ISO fields
*   i_t_fre_mattxt =            " fre_bif_mattxt_iso_tty  F&R Product description data incl ISO fields
*   i_t_fre_marm =              " fre_bif_marm_iso_tty  F&R Product unit of measures data incl ISO fields
*   i_t_fre_matloc =            " fre_bif_matloc_iso_tty  F&R Location Product data incl ISO fields
*   i_t_fre_matloct =           " fre_bif_matloct_tty  F&R Data Interface Time dependent Location Product data
*   i_t_fre_layout =            " fre_bif_layout_tty  F&R Data Interface: Layout modules
*   i_t_tcpident =              " fre_cpident_tty  Change pointer ID
*   i_t_fre_matloc_new =        " fre_bif_matloc_iso_tty  F&R Location Product data incl ISO fields
* CHANGING
*   c_msg_text =                " char80        Char 80
  EXCEPTIONS
    COMMUNICATION_FAILURE = 1   "               communication failure
    .  "  FRE_MD_OBJECTS_DELTA_SEND

ABAP code example for Function Module FRE_MD_OBJECTS_DELTA_SEND





The ABAP code below is a full code listing to execute function module FRE_MD_OBJECTS_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_t_fre_matkey  TYPE STANDARD TABLE OF FRE_BIF_MATKEY_ISO_TTY,"TABLES PARAM
wa_i_t_fre_matkey  LIKE LINE OF it_i_t_fre_matkey ,
it_i_t_fre_mattxt  TYPE STANDARD TABLE OF FRE_BIF_MATTXT_ISO_TTY,"TABLES PARAM
wa_i_t_fre_mattxt  LIKE LINE OF it_i_t_fre_mattxt ,
it_i_t_fre_marm  TYPE STANDARD TABLE OF FRE_BIF_MARM_ISO_TTY,"TABLES PARAM
wa_i_t_fre_marm  LIKE LINE OF it_i_t_fre_marm ,
it_i_t_fre_matloc  TYPE STANDARD TABLE OF FRE_BIF_MATLOC_ISO_TTY,"TABLES PARAM
wa_i_t_fre_matloc  LIKE LINE OF it_i_t_fre_matloc ,
it_i_t_fre_matloct  TYPE STANDARD TABLE OF FRE_BIF_MATLOCT_TTY,"TABLES PARAM
wa_i_t_fre_matloct  LIKE LINE OF it_i_t_fre_matloct ,
it_i_t_fre_layout  TYPE STANDARD TABLE OF FRE_BIF_LAYOUT_TTY,"TABLES PARAM
wa_i_t_fre_layout  LIKE LINE OF it_i_t_fre_layout ,
it_i_t_tcpident  TYPE STANDARD TABLE OF FRE_CPIDENT_TTY,"TABLES PARAM
wa_i_t_tcpident  LIKE LINE OF it_i_t_tcpident ,
it_i_t_fre_matloc_new  TYPE STANDARD TABLE OF FRE_BIF_MATLOC_ISO_TTY,"TABLES PARAM
wa_i_t_fre_matloc_new  LIKE LINE OF it_i_t_fre_matloc_new .

DATA(ld_c_msg_text) = 'Check type of data required'.
DATA(ld_i_s_work_report) = 'Check type of data required'.

SELECT single MESTYP
FROM TBDME
INTO @DATA(ld_i_message_type).

DATA(ld_i_refid) = 'Check type of data required'.
DATA(ld_ip_save_objects) = 'Check type of data required'.
DATA(ld_ip_calling_process) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_fre_matkey to it_i_t_fre_matkey.

"populate fields of struture and append to itab
append wa_i_t_fre_mattxt to it_i_t_fre_mattxt.

"populate fields of struture and append to itab
append wa_i_t_fre_marm to it_i_t_fre_marm.

"populate fields of struture and append to itab
append wa_i_t_fre_matloc to it_i_t_fre_matloc.

"populate fields of struture and append to itab
append wa_i_t_fre_matloct to it_i_t_fre_matloct.

"populate fields of struture and append to itab
append wa_i_t_fre_layout to it_i_t_fre_layout.

"populate fields of struture and append to itab
append wa_i_t_tcpident to it_i_t_tcpident.

"populate fields of struture and append to itab
append wa_i_t_fre_matloc_new to it_i_t_fre_matloc_new. . CALL FUNCTION 'FRE_MD_OBJECTS_DELTA_SEND' EXPORTING i_s_work_report = ld_i_s_work_report * i_message_type = ld_i_message_type * i_refid = ld_i_refid * ip_save_objects = ld_ip_save_objects * ip_calling_process = ld_ip_calling_process * TABLES * i_t_fre_matkey = it_i_t_fre_matkey * i_t_fre_mattxt = it_i_t_fre_mattxt * i_t_fre_marm = it_i_t_fre_marm * i_t_fre_matloc = it_i_t_fre_matloc * i_t_fre_matloct = it_i_t_fre_matloct * i_t_fre_layout = it_i_t_fre_layout * i_t_tcpident = it_i_t_tcpident * i_t_fre_matloc_new = it_i_t_fre_matloc_new * CHANGING * c_msg_text = ld_c_msg_text EXCEPTIONS COMMUNICATION_FAILURE = 1 . " FRE_MD_OBJECTS_DELTA_SEND
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_c_msg_text  TYPE CHAR80 ,
ld_i_s_work_report  TYPE FRE_WORK_REPORT_STY ,
it_i_t_fre_matkey  TYPE STANDARD TABLE OF FRE_BIF_MATKEY_ISO_TTY ,
wa_i_t_fre_matkey  LIKE LINE OF it_i_t_fre_matkey,
ld_i_message_type  TYPE TBDME-MESTYP ,
it_i_t_fre_mattxt  TYPE STANDARD TABLE OF FRE_BIF_MATTXT_ISO_TTY ,
wa_i_t_fre_mattxt  LIKE LINE OF it_i_t_fre_mattxt,
ld_i_refid  TYPE FRE_TRDAT ,
it_i_t_fre_marm  TYPE STANDARD TABLE OF FRE_BIF_MARM_ISO_TTY ,
wa_i_t_fre_marm  LIKE LINE OF it_i_t_fre_marm,
ld_ip_save_objects  TYPE XFLAG ,
it_i_t_fre_matloc  TYPE STANDARD TABLE OF FRE_BIF_MATLOC_ISO_TTY ,
wa_i_t_fre_matloc  LIKE LINE OF it_i_t_fre_matloc,
ld_ip_calling_process  TYPE FRE_ACTUAL_PROCESS ,
it_i_t_fre_matloct  TYPE STANDARD TABLE OF FRE_BIF_MATLOCT_TTY ,
wa_i_t_fre_matloct  LIKE LINE OF it_i_t_fre_matloct,
it_i_t_fre_layout  TYPE STANDARD TABLE OF FRE_BIF_LAYOUT_TTY ,
wa_i_t_fre_layout  LIKE LINE OF it_i_t_fre_layout,
it_i_t_tcpident  TYPE STANDARD TABLE OF FRE_CPIDENT_TTY ,
wa_i_t_tcpident  LIKE LINE OF it_i_t_tcpident,
it_i_t_fre_matloc_new  TYPE STANDARD TABLE OF FRE_BIF_MATLOC_ISO_TTY ,
wa_i_t_fre_matloc_new  LIKE LINE OF it_i_t_fre_matloc_new.

ld_c_msg_text = 'Check type of data required'.
ld_i_s_work_report = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_fre_matkey to it_i_t_fre_matkey.

SELECT single MESTYP
FROM TBDME
INTO ld_i_message_type.


"populate fields of struture and append to itab
append wa_i_t_fre_mattxt to it_i_t_fre_mattxt.
ld_i_refid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_fre_marm to it_i_t_fre_marm.
ld_ip_save_objects = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_fre_matloc to it_i_t_fre_matloc.
ld_ip_calling_process = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_fre_matloct to it_i_t_fre_matloct.

"populate fields of struture and append to itab
append wa_i_t_fre_layout to it_i_t_fre_layout.

"populate fields of struture and append to itab
append wa_i_t_tcpident to it_i_t_tcpident.

"populate fields of struture and append to itab
append wa_i_t_fre_matloc_new to it_i_t_fre_matloc_new.

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