SAP FRE_MD_INIT_LOAD Function Module for Send. master data from ERP to F&R: Initial & delta Load









FRE_MD_INIT_LOAD is a standard fre md init load 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. master data from ERP to F&R: Initial & delta 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 init load FM, simply by entering the name FRE_MD_INIT_LOAD 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_INIT_LOAD 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_INIT_LOAD'"Send. master data from ERP to F&R: Initial & delta Load
EXPORTING
* IS_FRE_SEND_OPTION = "Maintain Basic Settings for Data Transfer
* IP_SDATE = "Start Date
* IP_REFID = "Timestamp transfer date/time
* IP_PACKAGE_ID = "UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
* IT_ART_SITE_NEW = "interface table with werks and matnr
* IT_ART_SITE_REF_NEW = "interface table with werks and matnr
* IT_ART_SITE_UPD = "interface table with werks and matnr
* IT_ART_SITE_UPD_DB = "interface table with werks and matnr
* IT_ART_SITE_LISTING_UPD = "interface table with werks and matnr
* IT_ART_SITE_DEL = "interface table with werks and matnr
* IT_ART_UPD = "Table Type: Material selection
* IS_WORK_REPORT = "Work pannel from Reports to Object modules (Outbound to F&R)
* IP_VKP_SEND = "Transfer Sales Price Data
* IP_VKP_SD = "Date
* IP_VKP_ED = "Date
* IP_VZ_PRICE_DIRECT = "New Input Values
* IP_CALLING_PROCESS = "Current Process: Inital, Delta Load, Customer or Ref. Module
* IP_REF_ART_PROCESS = "New Input Values
* IP_DIF = "Send DIF occurrences directly
* IP_DIF2 = "Transfer DIF Occurrences for Number of Supplied Sites to F&R

IMPORTING
ET_MSG = "FRE CON R/3 User Interface Message Structure

EXCEPTIONS
RFC_ERROR = 1 DB_UPDATE_ERROR = 2
.



IMPORTING Parameters details for FRE_MD_INIT_LOAD

IS_FRE_SEND_OPTION - Maintain Basic Settings for Data Transfer

Data type: FRE_SEND_OPTION
Optional: Yes
Call by Reference: Yes

IP_SDATE - Start Date

Data type: SDATE
Optional: Yes
Call by Reference: Yes

IP_REFID - Timestamp transfer date/time

Data type: FRE_TRDAT
Optional: Yes
Call by Reference: Yes

IP_PACKAGE_ID - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)

Data type: FRE_TST_LONG
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_NEW - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_REF_NEW - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_UPD - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_UPD_DB - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_LISTING_UPD - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_SITE_DEL - interface table with werks and matnr

Data type: FRE_MATNR_WERKS_TTY
Optional: Yes
Call by Reference: Yes

IT_ART_UPD - Table Type: Material selection

Data type: FRE_MD_ST_MATNR_TTY
Optional: Yes
Call by Reference: Yes

IS_WORK_REPORT - Work pannel from Reports to Object modules (Outbound to F&R)

Data type: FRE_WORK_REPORT_STY
Optional: Yes
Call by Reference: Yes

IP_VKP_SEND - Transfer Sales Price Data

Data type: FRE_VKP_TRANSFER
Optional: Yes
Call by Reference: Yes

IP_VKP_SD - Date

Data type: DATUM
Optional: Yes
Call by Reference: Yes

IP_VKP_ED - Date

Data type: DATUM
Optional: Yes
Call by Reference: Yes

IP_VZ_PRICE_DIRECT - New Input Values

Data type: XFLAG
Optional: Yes
Call by Reference: Yes

IP_CALLING_PROCESS - Current Process: Inital, Delta Load, Customer or Ref. Module

Data type: FRE_ACTUAL_PROCESS
Optional: Yes
Call by Reference: Yes

IP_REF_ART_PROCESS - New Input Values

Data type: XFLAG
Optional: Yes
Call by Reference: Yes

IP_DIF - Send DIF occurrences directly

Data type: FRE_DIF_DIRECT
Optional: Yes
Call by Reference: Yes

IP_DIF2 - Transfer DIF Occurrences for Number of Supplied Sites to F&R

Data type: FRE_DIF_ACT_NO_SITES
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FRE_MD_INIT_LOAD

ET_MSG - FRE CON R/3 User Interface Message Structure

Data type: FRE_UI_MSG_TTY
Optional: No
Call by Reference: Yes

EXCEPTIONS details

RFC_ERROR - error during sending process

Data type:
Optional: No
Call by Reference: Yes

DB_UPDATE_ERROR - Error during DB update

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FRE_MD_INIT_LOAD 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_et_msg  TYPE FRE_UI_MSG_TTY, "   
lv_rfc_error  TYPE FRE_UI_MSG_TTY, "   
lv_is_fre_send_option  TYPE FRE_SEND_OPTION, "   
lv_ip_sdate  TYPE SDATE, "   
lv_ip_refid  TYPE FRE_TRDAT, "   
lv_ip_package_id  TYPE FRE_TST_LONG, "   
lv_it_art_site_new  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_site_ref_new  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_site_upd  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_site_upd_db  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_site_listing_upd  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_site_del  TYPE FRE_MATNR_WERKS_TTY, "   
lv_it_art_upd  TYPE FRE_MD_ST_MATNR_TTY, "   
lv_is_work_report  TYPE FRE_WORK_REPORT_STY, "   
lv_db_update_error  TYPE FRE_WORK_REPORT_STY, "   
lv_ip_vkp_send  TYPE FRE_VKP_TRANSFER, "   
lv_ip_vkp_sd  TYPE DATUM, "   
lv_ip_vkp_ed  TYPE DATUM, "   
lv_ip_vz_price_direct  TYPE XFLAG, "   
lv_ip_calling_process  TYPE FRE_ACTUAL_PROCESS, "   
lv_ip_ref_art_process  TYPE XFLAG, "   
lv_ip_dif  TYPE FRE_DIF_DIRECT, "   
lv_ip_dif2  TYPE FRE_DIF_ACT_NO_SITES. "   

  CALL FUNCTION 'FRE_MD_INIT_LOAD'  "Send. master data from ERP to F&R: Initial & delta Load
    EXPORTING
         IS_FRE_SEND_OPTION = lv_is_fre_send_option
         IP_SDATE = lv_ip_sdate
         IP_REFID = lv_ip_refid
         IP_PACKAGE_ID = lv_ip_package_id
         IT_ART_SITE_NEW = lv_it_art_site_new
         IT_ART_SITE_REF_NEW = lv_it_art_site_ref_new
         IT_ART_SITE_UPD = lv_it_art_site_upd
         IT_ART_SITE_UPD_DB = lv_it_art_site_upd_db
         IT_ART_SITE_LISTING_UPD = lv_it_art_site_listing_upd
         IT_ART_SITE_DEL = lv_it_art_site_del
         IT_ART_UPD = lv_it_art_upd
         IS_WORK_REPORT = lv_is_work_report
         IP_VKP_SEND = lv_ip_vkp_send
         IP_VKP_SD = lv_ip_vkp_sd
         IP_VKP_ED = lv_ip_vkp_ed
         IP_VZ_PRICE_DIRECT = lv_ip_vz_price_direct
         IP_CALLING_PROCESS = lv_ip_calling_process
         IP_REF_ART_PROCESS = lv_ip_ref_art_process
         IP_DIF = lv_ip_dif
         IP_DIF2 = lv_ip_dif2
    IMPORTING
         ET_MSG = lv_et_msg
    EXCEPTIONS
        RFC_ERROR = 1
        DB_UPDATE_ERROR = 2
. " FRE_MD_INIT_LOAD




ABAP code using 7.40 inline data declarations to call FM FRE_MD_INIT_LOAD

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!