SAP FRE_MD_ART_SITE_INITIAL Function Module for Collect and send location product master data from R/3 to F&R
FRE_MD_ART_SITE_INITIAL is a standard fre md art site 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 location product master data 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 art site initial FM, simply by entering the name FRE_MD_ART_SITE_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_ART_SITE_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_ART_SITE_INITIAL'"Collect and send location product master data from R/3 to F&R.
EXPORTING
* IP_VKP_SD = SY-DATUM "Start date of sales price interval determination
IS_SEND_OPTION = "Maintain Basic Settings for Data Transfer
* IP_REF_ART_PROCESS = "Process content of table FRE_REF_ART_SITE
* 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
* IP_VKP_SEND = 'X' "Transfer Sales Price Data
* IP_LISTING_SEND = 'X' "New Input Values
* IP_VKP_ED = '99991231' "End date of sales price interval determination
* IP_OWNSYSTEM = "own logical system
* IP_VZ_PRICE_DIRECT = 'X' "DC sales price determ. like for store or over distribution channel
* IP_CALLING_PROCESS = "actual interface process: initial or delta load
* IP_DIF = "Send DIF occurrences directly
* IP_DIF2 = "
* IP_SDATE = "Start date for analysis horizon
* IP_PACKAGE_ID = "UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
IMPORTING
EP_MSG_TEXT = "Char 80
EXCEPTIONS
COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2 RESSOURCE_FAILURE = 3
IMPORTING Parameters details for FRE_MD_ART_SITE_INITIAL
IP_VKP_SD - Start date of sales price interval determination
Data type: DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_SEND_OPTION - Maintain Basic Settings for Data Transfer
Data type: FRE_SEND_OPTIONOptional: No
Call by Reference: No ( called with pass by value option)
IP_REF_ART_PROCESS - Process content of table FRE_REF_ART_SITE
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_NEW - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_REF_NEW - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_UPD - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_UPD_DB - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_LISTING_UPD - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE_DEL - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_VKP_SEND - Transfer Sales Price Data
Data type: FRE_VKP_TRANSFERDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_LISTING_SEND - New Input Values
Data type: XFLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_VKP_ED - End date of sales price interval determination
Data type: DATUMDefault: '99991231'
Optional: 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_VZ_PRICE_DIRECT - DC sales price determ. like for store or over distribution channel
Data type: XFLAGDefault: 'X'
Optional: 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_DIF - Send DIF occurrences directly
Data type: FRE_DIF_DIRECTOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_DIF2 -
Data type: FRE_DIF_ACT_NO_SITESOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_SDATE - Start date for analysis horizon
Data type: SDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_PACKAGE_ID - UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
Data type: FRE_TST_LONGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FRE_MD_ART_SITE_INITIAL
EP_MSG_TEXT - Char 80
Data type: CHAR80Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMMUNICATION_FAILURE - Communication failure
Data type:Optional: No
Call by Reference: Yes
SYSTEM_FAILURE - System failure
Data type:Optional: No
Call by Reference: Yes
RESSOURCE_FAILURE - Ressource failure
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRE_MD_ART_SITE_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_ip_vkp_sd | TYPE DATUM, " SY-DATUM | |||
lv_ep_msg_text | TYPE CHAR80, " | |||
lv_communication_failure | TYPE CHAR80, " | |||
lv_is_send_option | TYPE FRE_SEND_OPTION, " | |||
lv_ip_ref_art_process | TYPE XFELD, " | |||
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_ip_vkp_send | TYPE FRE_VKP_TRANSFER, " 'X' | |||
lv_ip_listing_send | TYPE XFLAG, " 'X' | |||
lv_ip_vkp_ed | TYPE DATUM, " '99991231' | |||
lv_system_failure | TYPE DATUM, " | |||
lv_ip_ownsystem | TYPE FRE_SYSTEM_R3, " | |||
lv_ressource_failure | TYPE FRE_SYSTEM_R3, " | |||
lv_ip_vz_price_direct | TYPE XFLAG, " 'X' | |||
lv_ip_calling_process | TYPE FRE_ACTUAL_PROCESS, " | |||
lv_ip_dif | TYPE FRE_DIF_DIRECT, " | |||
lv_ip_dif2 | TYPE FRE_DIF_ACT_NO_SITES, " | |||
lv_ip_sdate | TYPE SDATE, " | |||
lv_ip_package_id | TYPE FRE_TST_LONG. " |
  CALL FUNCTION 'FRE_MD_ART_SITE_INITIAL' "Collect and send location product master data from R/3 to F&R |
EXPORTING | ||
IP_VKP_SD | = lv_ip_vkp_sd | |
IS_SEND_OPTION | = lv_is_send_option | |
IP_REF_ART_PROCESS | = lv_ip_ref_art_process | |
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 | |
IP_VKP_SEND | = lv_ip_vkp_send | |
IP_LISTING_SEND | = lv_ip_listing_send | |
IP_VKP_ED | = lv_ip_vkp_ed | |
IP_OWNSYSTEM | = lv_ip_ownsystem | |
IP_VZ_PRICE_DIRECT | = lv_ip_vz_price_direct | |
IP_CALLING_PROCESS | = lv_ip_calling_process | |
IP_DIF | = lv_ip_dif | |
IP_DIF2 | = lv_ip_dif2 | |
IP_SDATE | = lv_ip_sdate | |
IP_PACKAGE_ID | = lv_ip_package_id | |
IMPORTING | ||
EP_MSG_TEXT | = lv_ep_msg_text | |
EXCEPTIONS | ||
COMMUNICATION_FAILURE = 1 | ||
SYSTEM_FAILURE = 2 | ||
RESSOURCE_FAILURE = 3 | ||
. " FRE_MD_ART_SITE_INITIAL |
ABAP code using 7.40 inline data declarations to call FM FRE_MD_ART_SITE_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_vkp_sd) | = SY-DATUM. | |||
DATA(ld_ip_vkp_send) | = 'X'. | |||
DATA(ld_ip_listing_send) | = 'X'. | |||
DATA(ld_ip_vkp_ed) | = '99991231'. | |||
DATA(ld_ip_vz_price_direct) | = 'X'. | |||
Search for further information about these or an SAP related objects