SAP FRE_MD_PROD_INITIAL Function Module for Collect and send product master date from R/3 to F&R
FRE_MD_PROD_INITIAL is a standard fre md prod 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 Collect and send product master date from R/3 to F&R 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 prod initial FM, simply by entering the name FRE_MD_PROD_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): Remote-Enabled
Update:

Function FRE_MD_PROD_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_PROD_INITIAL'"Collect and send product master date from R/3 to F&R.
EXPORTING
* IP_DIRECT_ACCESS = 'X' "access F&R direct
* IP_SYSTEM = "F&R resp. XI system destination
* IP_OWNSYSTEM = "own logical system
* IP_CALLING_PROCESS = "actual interface process: initial or delta load
* IP_REFID = "Timestamp transfer date/time
IMPORTING
EP_MSG_TEXT = "Char 80
TABLES
IT_ARTICLE = "List of article ids
EXCEPTIONS
NOTHING_TO_DO = 1 NO_ATTRIBUTES_SELECTED = 2 ENQUEUE_MODE_CHANGED = 3 UNDEFINED_ERROR = 4 COMMUNICATION_FAILURE = 5
IMPORTING Parameters details for FRE_MD_PROD_INITIAL
IP_DIRECT_ACCESS - access F&R direct
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_SYSTEM - F&R resp. XI system destination
Data type: FRE_SYSTEM_FREOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_OWNSYSTEM - own logical system
Data type: FRE_SYSTEM_R3Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_CALLING_PROCESS - actual interface process: initial or delta load
Data type: FRE_ACTUAL_PROCESSOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_REFID - Timestamp transfer date/time
Data type: FRE_TRDATOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FRE_MD_PROD_INITIAL
EP_MSG_TEXT - Char 80
Data type: CHAR80Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FRE_MD_PROD_INITIAL
IT_ARTICLE - List of article ids
Data type: FRE_MD_ST_MATNROptional: No
Call by Reference: Yes
EXCEPTIONS details
NOTHING_TO_DO - import table IT_ARTICLE 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
Copy and paste ABAP code example for FRE_MD_PROD_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: | ||||
| lt_it_article | TYPE STANDARD TABLE OF FRE_MD_ST_MATNR, " | |||
| lv_ep_msg_text | TYPE CHAR80, " | |||
| lv_nothing_to_do | TYPE CHAR80, " | |||
| lv_ip_direct_access | TYPE XFLAG, " 'X' | |||
| lv_ip_system | TYPE FRE_SYSTEM_FRE, " | |||
| lv_no_attributes_selected | TYPE FRE_SYSTEM_FRE, " | |||
| lv_ip_ownsystem | TYPE FRE_SYSTEM_R3, " | |||
| lv_enqueue_mode_changed | TYPE FRE_SYSTEM_R3, " | |||
| lv_undefined_error | TYPE FRE_SYSTEM_R3, " | |||
| lv_ip_calling_process | TYPE FRE_ACTUAL_PROCESS, " | |||
| lv_ip_refid | TYPE FRE_TRDAT, " | |||
| lv_communication_failure | TYPE FRE_TRDAT. " |
|   CALL FUNCTION 'FRE_MD_PROD_INITIAL' "Collect and send product master date from R/3 to F&R |
| EXPORTING | ||
| IP_DIRECT_ACCESS | = lv_ip_direct_access | |
| IP_SYSTEM | = lv_ip_system | |
| IP_OWNSYSTEM | = lv_ip_ownsystem | |
| IP_CALLING_PROCESS | = lv_ip_calling_process | |
| IP_REFID | = lv_ip_refid | |
| IMPORTING | ||
| EP_MSG_TEXT | = lv_ep_msg_text | |
| TABLES | ||
| IT_ARTICLE | = lt_it_article | |
| EXCEPTIONS | ||
| NOTHING_TO_DO = 1 | ||
| NO_ATTRIBUTES_SELECTED = 2 | ||
| ENQUEUE_MODE_CHANGED = 3 | ||
| UNDEFINED_ERROR = 4 | ||
| COMMUNICATION_FAILURE = 5 | ||
| . " FRE_MD_PROD_INITIAL | ||
ABAP code using 7.40 inline data declarations to call FM FRE_MD_PROD_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.| DATA(ld_ip_direct_access) | = 'X'. | |||
Search for further information about these or an SAP related objects