SAP FRE_MD_SEND_DATA_INITIAL Function Module for Send. of location und product md from R/3 to F&R: Initial Load
FRE_MD_SEND_DATA_INITIAL is a standard fre md send data initial SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Send. of location und product md from R/3 to F&R: Initial Load processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fre md send data initial FM, simply by entering the name FRE_MD_SEND_DATA_INITIAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRE_MASTER_OUT
Program Name: SAPLFRE_MASTER_OUT
Main Program: SAPLFRE_MASTER_OUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRE_MD_SEND_DATA_INITIAL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FRE_MD_SEND_DATA_INITIAL'"Send. of location und product md from R/3 to F&R: Initial Load.
EXPORTING
IS_WORK_REPORT = "Work pannel from Reports to Object modules (Outbound to F&R)
* IP_REFID = "Timestamp transfer date/time
* IP_NOT_READ_LIST_COND = " = 'X': Do not read listing conditions
IMPORTING
EP_MSG_TEXT = "Char 80
PET_WERKS_NOT_CONTAIN = "Key of T001W
TABLES
* IT_MATLOC_REF = "interface table with werks and matnr
* IT_MATLOC = "interface table with werks and matnr
* IT_MATLOC_DEL = "interface table with werks and matnr
* IT_MAT_NEW = "Structure: Material selection
* IT_LISTED_ART_SITE = "Listing conditions for material/Un - transfer of result
* IT_MATLOC_UPD = "interface table with werks and matnr
EXCEPTIONS
NOTHING_TO_DO = 1 NO_ATTRIBUTES_SELECTED = 2 ENQUEUE_MODE_CHANGED = 3 UNDEFINED_ERROR = 4 COMMUNICATION_FAILURE = 5 SYSTEM_FAILURE = 6
IMPORTING Parameters details for FRE_MD_SEND_DATA_INITIAL
IS_WORK_REPORT - Work pannel from Reports to Object modules (Outbound to F&R)
Data type: FRE_WORK_REPORT_STYOptional: No
Call by Reference: Yes
IP_REFID - Timestamp transfer date/time
Data type: FRE_TRDATOptional: Yes
Call by Reference: Yes
IP_NOT_READ_LIST_COND - = 'X': Do not read listing conditions
Data type: CHAR1Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FRE_MD_SEND_DATA_INITIAL
EP_MSG_TEXT - Char 80
Data type: CHAR80Optional: No
Call by Reference: Yes
PET_WERKS_NOT_CONTAIN - Key of T001W
Data type: FRE_T001WKEY_TTYOptional: No
Call by Reference: Yes
TABLES Parameters details for FRE_MD_SEND_DATA_INITIAL
IT_MATLOC_REF - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: Yes
IT_MATLOC - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: Yes
IT_MATLOC_DEL - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: Yes
IT_MAT_NEW - Structure: Material selection
Data type: FRE_MD_ST_MATNROptional: Yes
Call by Reference: Yes
IT_LISTED_ART_SITE - Listing conditions for material/Un - transfer of result
Data type: WINT_LISTGOptional: Yes
Call by Reference: Yes
IT_MATLOC_UPD - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOTHING_TO_DO - import tparameter is initial
Data type:Optional: No
Call by Reference: Yes
NO_ATTRIBUTES_SELECTED - no attributes to articles were selected
Data type:Optional: No
Call by Reference: Yes
ENQUEUE_MODE_CHANGED - error of function module MARA_ARRAY_READ
Data type:Optional: No
Call by Reference: Yes
UNDEFINED_ERROR - undefined error occured
Data type:Optional: No
Call by Reference: Yes
COMMUNICATION_FAILURE - error during sending process
Data type:Optional: No
Call by Reference: Yes
SYSTEM_FAILURE - error during sending process
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRE_MD_SEND_DATA_INITIAL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_ep_msg_text | TYPE CHAR80, " | |||
| lt_it_matloc_ref | TYPE STANDARD TABLE OF FRE_MATNR_WERKS_TTY, " | |||
| lv_nothing_to_do | TYPE FRE_MATNR_WERKS_TTY, " | |||
| lv_is_work_report | TYPE FRE_WORK_REPORT_STY, " | |||
| lv_ip_refid | TYPE FRE_TRDAT, " | |||
| lt_it_matloc | TYPE STANDARD TABLE OF FRE_MATNR_WERKS_TTY, " | |||
| lv_pet_werks_not_contain | TYPE FRE_T001WKEY_TTY, " | |||
| lv_no_attributes_selected | TYPE FRE_T001WKEY_TTY, " | |||
| lt_it_matloc_del | TYPE STANDARD TABLE OF FRE_MATNR_WERKS_TTY, " | |||
| lv_enqueue_mode_changed | TYPE FRE_MATNR_WERKS_TTY, " | |||
| lv_ip_not_read_list_cond | TYPE CHAR1, " | |||
| lt_it_mat_new | TYPE STANDARD TABLE OF FRE_MD_ST_MATNR, " | |||
| lv_undefined_error | TYPE FRE_MD_ST_MATNR, " | |||
| lt_it_listed_art_site | TYPE STANDARD TABLE OF WINT_LISTG, " | |||
| lv_communication_failure | TYPE WINT_LISTG, " | |||
| lt_it_matloc_upd | TYPE STANDARD TABLE OF FRE_MATNR_WERKS_TTY, " | |||
| lv_system_failure | TYPE FRE_MATNR_WERKS_TTY. " |
|   CALL FUNCTION 'FRE_MD_SEND_DATA_INITIAL' "Send. of location und product md from R/3 to F&R: Initial Load |
| EXPORTING | ||
| IS_WORK_REPORT | = lv_is_work_report | |
| IP_REFID | = lv_ip_refid | |
| IP_NOT_READ_LIST_COND | = lv_ip_not_read_list_cond | |
| IMPORTING | ||
| EP_MSG_TEXT | = lv_ep_msg_text | |
| PET_WERKS_NOT_CONTAIN | = lv_pet_werks_not_contain | |
| TABLES | ||
| IT_MATLOC_REF | = lt_it_matloc_ref | |
| IT_MATLOC | = lt_it_matloc | |
| IT_MATLOC_DEL | = lt_it_matloc_del | |
| IT_MAT_NEW | = lt_it_mat_new | |
| IT_LISTED_ART_SITE | = lt_it_listed_art_site | |
| IT_MATLOC_UPD | = lt_it_matloc_upd | |
| EXCEPTIONS | ||
| NOTHING_TO_DO = 1 | ||
| NO_ATTRIBUTES_SELECTED = 2 | ||
| ENQUEUE_MODE_CHANGED = 3 | ||
| UNDEFINED_ERROR = 4 | ||
| COMMUNICATION_FAILURE = 5 | ||
| SYSTEM_FAILURE = 6 | ||
| . " FRE_MD_SEND_DATA_INITIAL | ||
ABAP code using 7.40 inline data declarations to call FM FRE_MD_SEND_DATA_INITIAL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects