SAP FRE_INIT_SEND_FOR_SITE Function Module for Collection and Sending of all Objects for Site from R/3 to F&R: Init Load









FRE_INIT_SEND_FOR_SITE is a standard fre init send for site SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Collection and Sending of all Objects for Site from R/3 to F&R: Init 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 init send for site FM, simply by entering the name FRE_INIT_SEND_FOR_SITE 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_INIT_SEND_FOR_SITE 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_INIT_SEND_FOR_SITE'"Collection and Sending of all Objects for Site from R/3 to F&R: Init Load
EXPORTING
* IT_ART_SITES_REF = "interface table with werks and matnr
I_LAYMOD = "Send Layout Modules to F&R
I_ORDER = "Initial Transm. of open Orders Data to F&R
I_HIST = "Transfer of historical, completed PO items
I_PAST = "Days in the Past for Selection of completed, historical POs
I_CONTR = "Initial Transm. of Contracts Data to F&R
I_SALORD = "Initial Transmission of Sales Order Data to F&R
I_SWITCH = "Initial Dispatch of Switchover Information
I_ASSIGN = "Initial Dispatch of Substitution Assignments
I_REFID = "Identifier
I_PITS = "Timestamp transfer date/time
* IRT_WERKS = "Range Table for Data Element WERKS
I_PARAL = "Indicator: Use Parallel Processing
I_SVRGRP = "Logon/Server Group Name
I_TASKS = "Maximum number of parallel tasks
I_PKGSIZE = "Number of Records per Package
I_DIRECT = "Direct access to F&R (without XI)
I_SYDEST = "System of F&R
I_SYSTEM_R3 = "System of R3
I_VKP_SD = "Start date from which the sales prices are fixed
I_VKP_ED = "end date until which sales price shall be determined
I_VZ_DIR = "New Input Values
* IRT_DISMM = "Range Table for MRP Type
I_DIF = "Send DIF occurrences directly
I_DIF2 = "Transfer DIF Occurrences for Number of Supplied Sites to F&R
I_SDATE = "Start of Consideration Period for Number of Supplied Plants
I_VKP = "Transfer Sales Price Data
IS_WORK_REPORT = "Work pannel from Reports to Object modules (Outbound to F&R)
IS_FRE_SEND_OPTION = "Maintain Basic Settings for Data Transfer
* IRT_MATNR = "Range Table for Data Element MATNR
I_FILTER = "High level filtering over customized sites
I_BETRGR = "Initial Transmission of Plant Grouping Data to F&R
I_LOCPR = "Initial Transm. of Loc/Prod/LocProd/TranspLanes Data to F&R
I_STOCK = "Transfer stock information
I_CONS = "Transfer consumption data

CHANGING
* CT_ART_SITES_REF = "interface table with werks and matnr
* CT_MATNR = "Material Selection

EXCEPTIONS
ERROR_IN_INPUT_DATA = 1
.



IMPORTING Parameters details for FRE_INIT_SEND_FOR_SITE

IT_ART_SITES_REF - interface table with werks and matnr

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

I_LAYMOD - Send Layout Modules to F&R

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

I_ORDER - Initial Transm. of open Orders Data to F&R

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

I_HIST - Transfer of historical, completed PO items

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

I_PAST - Days in the Past for Selection of completed, historical POs

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

I_CONTR - Initial Transm. of Contracts Data to F&R

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

I_SALORD - Initial Transmission of Sales Order Data to F&R

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

I_SWITCH - Initial Dispatch of Switchover Information

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

I_ASSIGN - Initial Dispatch of Substitution Assignments

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

I_REFID - Identifier

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

I_PITS - Timestamp transfer date/time

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

IRT_WERKS - Range Table for Data Element WERKS

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

I_PARAL - Indicator: Use Parallel Processing

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

I_SVRGRP - Logon/Server Group Name

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

I_TASKS - Maximum number of parallel tasks

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

I_PKGSIZE - Number of Records per Package

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

I_DIRECT - Direct access to F&R (without XI)

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

I_SYDEST - System of F&R

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

I_SYSTEM_R3 - System of R3

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

I_VKP_SD - Start date from which the sales prices are fixed

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

I_VKP_ED - end date until which sales price shall be determined

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

I_VZ_DIR - New Input Values

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

IRT_DISMM - Range Table for MRP Type

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

I_DIF - Send DIF occurrences directly

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

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

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

I_SDATE - Start of Consideration Period for Number of Supplied Plants

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

I_VKP - Transfer Sales Price Data

Data type: FRE_VKP_TRANSFER
Optional: No
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: No
Call by Reference: Yes

IS_FRE_SEND_OPTION - Maintain Basic Settings for Data Transfer

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

IRT_MATNR - Range Table for Data Element MATNR

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

I_FILTER - High level filtering over customized sites

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

I_BETRGR - Initial Transmission of Plant Grouping Data to F&R

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

I_LOCPR - Initial Transm. of Loc/Prod/LocProd/TranspLanes Data to F&R

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

I_STOCK - Transfer stock information

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

I_CONS - Transfer consumption data

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

CHANGING Parameters details for FRE_INIT_SEND_FOR_SITE

CT_ART_SITES_REF - interface table with werks and matnr

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

CT_MATNR - Material Selection

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

EXCEPTIONS details

ERROR_IN_INPUT_DATA - No data provided, nothing for selection.

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FRE_INIT_SEND_FOR_SITE 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_ct_art_sites_ref  TYPE FRE_MD_MARC_DISMM_TTY, "   
lv_it_art_sites_ref  TYPE FRE_MD_MARC_DISMM_TTY, "   
lv_error_in_input_data  TYPE FRE_MD_MARC_DISMM_TTY, "   
lv_i_laymod  TYPE FRE_LAYMOD_S, "   
lv_i_order  TYPE FRE_ORDERS_I, "   
lv_i_hist  TYPE FRE_TRANSF_HISTOR_PO, "   
lv_i_past  TYPE FRE_PO_SELECT_PAST, "   
lv_i_contr  TYPE FRE_CO_I, "   
lv_i_salord  TYPE FRE_SO_I, "   
lv_i_switch  TYPE FRE_SU2_I, "   
lv_i_assign  TYPE FRE_SU1_I, "   
lv_i_refid  TYPE FRE_BIF_ID, "   
lv_i_pits  TYPE FRE_TRDAT, "   
lv_ct_matnr  TYPE FRE_MD_MATNR_UNIQUE_TTY, "   
lv_irt_werks  TYPE RANGE_T_WERKS, "   
lv_i_paral  TYPE FRE_PARALLEL, "   
lv_i_svrgrp  TYPE RZLLI_APCL, "   
lv_i_tasks  TYPE DDMAXTASKS, "   
lv_i_pkgsize  TYPE FRE_PACKAGE_SIZE, "   
lv_i_direct  TYPE FRE_DIRECT_ACCESS_XFELD, "   
lv_i_sydest  TYPE FRE_SYSTEM_FRE, "   
lv_i_system_r3  TYPE FRE_SYSTEM_R3, "   
lv_i_vkp_sd  TYPE FRE_DATAB, "   
lv_i_vkp_ed  TYPE FRE_DATBI, "   
lv_i_vz_dir  TYPE XFLAG, "   
lv_irt_dismm  TYPE FRE_RANGE_T_DISMM, "   
lv_i_dif  TYPE FRE_DIF_DIRECT, "   
lv_i_dif2  TYPE FRE_DIF_ACT_NO_SITES, "   
lv_i_sdate  TYPE FRE_DIF_SDATE, "   
lv_i_vkp  TYPE FRE_VKP_TRANSFER, "   
lv_is_work_report  TYPE FRE_WORK_REPORT_STY, "   
lv_is_fre_send_option  TYPE FRE_SEND_OPTION, "   
lv_irt_matnr  TYPE RANGE_T_MATNR, "   
lv_i_filter  TYPE FRE_WERKS_FILTER, "   
lv_i_betrgr  TYPE FRE_PLGR_I, "   
lv_i_locpr  TYPE FRE_LOCPR_I, "   
lv_i_stock  TYPE FRE_TS_TRSTO, "   
lv_i_cons  TYPE FRE_TS_TRCON. "   

  CALL FUNCTION 'FRE_INIT_SEND_FOR_SITE'  "Collection and Sending of all Objects for Site from R/3 to F&R: Init Load
    EXPORTING
         IT_ART_SITES_REF = lv_it_art_sites_ref
         I_LAYMOD = lv_i_laymod
         I_ORDER = lv_i_order
         I_HIST = lv_i_hist
         I_PAST = lv_i_past
         I_CONTR = lv_i_contr
         I_SALORD = lv_i_salord
         I_SWITCH = lv_i_switch
         I_ASSIGN = lv_i_assign
         I_REFID = lv_i_refid
         I_PITS = lv_i_pits
         IRT_WERKS = lv_irt_werks
         I_PARAL = lv_i_paral
         I_SVRGRP = lv_i_svrgrp
         I_TASKS = lv_i_tasks
         I_PKGSIZE = lv_i_pkgsize
         I_DIRECT = lv_i_direct
         I_SYDEST = lv_i_sydest
         I_SYSTEM_R3 = lv_i_system_r3
         I_VKP_SD = lv_i_vkp_sd
         I_VKP_ED = lv_i_vkp_ed
         I_VZ_DIR = lv_i_vz_dir
         IRT_DISMM = lv_irt_dismm
         I_DIF = lv_i_dif
         I_DIF2 = lv_i_dif2
         I_SDATE = lv_i_sdate
         I_VKP = lv_i_vkp
         IS_WORK_REPORT = lv_is_work_report
         IS_FRE_SEND_OPTION = lv_is_fre_send_option
         IRT_MATNR = lv_irt_matnr
         I_FILTER = lv_i_filter
         I_BETRGR = lv_i_betrgr
         I_LOCPR = lv_i_locpr
         I_STOCK = lv_i_stock
         I_CONS = lv_i_cons
    CHANGING
         CT_ART_SITES_REF = lv_ct_art_sites_ref
         CT_MATNR = lv_ct_matnr
    EXCEPTIONS
        ERROR_IN_INPUT_DATA = 1
. " FRE_INIT_SEND_FOR_SITE




ABAP code using 7.40 inline data declarations to call FM FRE_INIT_SEND_FOR_SITE

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!