SAP FRE_INIT_SEND_PKG Function Module for Collect and Send all Objects for ArtSite package from R/3 to F&R Init Load









FRE_INIT_SEND_PKG is a standard fre init send pkg 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 all Objects for ArtSite package 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 pkg FM, simply by entering the name FRE_INIT_SEND_PKG 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_INIT_SEND_PKG 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_PKG'"Collect and Send all Objects for ArtSite package from R/3 to F&R Init Load
EXPORTING
IRT_WERKS = "Range Table for Data Element WERKS
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_PITS = "Timestamp transfer date/time
I_REFID = "Identifier
I_PKGSIZE = "Number of Records per Package
IT_ART_SITES = "Article and Site for relevance check
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
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
I_BETRGR = "Initial Transmission of Plant Grouping Data to F&R
IS_WORK_REPORT = "Work pannel from Reports to Object modules (Outbound to F&R)
IS_FRE_SEND_OPTION = "Maintain Basic Settings for Data Transfer
I_LOCPR = "Initial Transm. of Loc/Prod/LocProd/TranspLanes Data to F&R
I_PROCESSING_REF = "New Input Values
I_SEND_SITE = "New Input Values
I_STOCK = "Transfer stock information
I_CONS = "Transfer consumption data
I_LAYMOD = "Send Layout Modules to F&R

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



IMPORTING Parameters details for FRE_INIT_SEND_PKG

IRT_WERKS - Range Table for Data Element WERKS

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

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

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

I_HIST - Transfer of historical, completed PO items

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

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

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

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

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

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

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

I_SWITCH - Initial Dispatch of Switchover Information

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

I_ASSIGN - Initial Dispatch of Substitution Assignments

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

I_PITS - Timestamp transfer date/time

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

I_REFID - Identifier

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

I_PKGSIZE - Number of Records per Package

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

IT_ART_SITES - Article and Site for relevance check

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

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

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

I_SYDEST - System of F&R

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

I_SYSTEM_R3 - System of R3

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

I_VKP_SD - Start date from which the sales prices are fixed

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

I_VKP_ED - end date until which sales price shall be determined

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

I_VZ_DIR - New Input Values

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

I_DIF - Send DIF occurrences directly

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

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: No ( called with pass by value option)

I_SDATE - Start of Consideration Period for Number of Supplied Plants

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

I_VKP - Transfer Sales Price Data

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

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

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

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: No ( called with pass by value option)

IS_FRE_SEND_OPTION - Maintain Basic Settings for Data Transfer

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

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

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

I_PROCESSING_REF - New Input Values

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

I_SEND_SITE - New Input Values

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

I_STOCK - Transfer stock information

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

I_CONS - Transfer consumption data

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

I_LAYMOD - Send Layout Modules to F&R

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

EXPORTING Parameters details for FRE_INIT_SEND_PKG

ET_MSG - FRE CON R/3 User Interface Message Structure

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

Copy and paste ABAP code example for FRE_INIT_SEND_PKG 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_irt_werks  TYPE RANGE_T_WERKS, "   
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_pits  TYPE FRE_TRDAT, "   
lv_i_refid  TYPE FRE_BIF_ID, "   
lv_i_pkgsize  TYPE FRE_PACKAGE_SIZE, "   
lv_it_art_sites  TYPE FRE_MD_MARC_DISMM_TTY, "   
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_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_i_betrgr  TYPE FRE_PLGR_I, "   
lv_is_work_report  TYPE FRE_WORK_REPORT_STY, "   
lv_is_fre_send_option  TYPE FRE_SEND_OPTION, "   
lv_i_locpr  TYPE FRE_LOCPR_I, "   
lv_i_processing_ref  TYPE XFLAG, "   
lv_i_send_site  TYPE XFLAG, "   
lv_i_stock  TYPE FRE_TS_TRSTO, "   
lv_i_cons  TYPE FRE_TS_TRCON, "   
lv_i_laymod  TYPE FRE_LAYMOD_S. "   

  CALL FUNCTION 'FRE_INIT_SEND_PKG'  "Collect and Send all Objects for ArtSite package from R/3 to F&R Init Load
    EXPORTING
         IRT_WERKS = lv_irt_werks
         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_PITS = lv_i_pits
         I_REFID = lv_i_refid
         I_PKGSIZE = lv_i_pkgsize
         IT_ART_SITES = lv_it_art_sites
         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
         I_DIF = lv_i_dif
         I_DIF2 = lv_i_dif2
         I_SDATE = lv_i_sdate
         I_VKP = lv_i_vkp
         I_BETRGR = lv_i_betrgr
         IS_WORK_REPORT = lv_is_work_report
         IS_FRE_SEND_OPTION = lv_is_fre_send_option
         I_LOCPR = lv_i_locpr
         I_PROCESSING_REF = lv_i_processing_ref
         I_SEND_SITE = lv_i_send_site
         I_STOCK = lv_i_stock
         I_CONS = lv_i_cons
         I_LAYMOD = lv_i_laymod
    IMPORTING
         ET_MSG = lv_et_msg
. " FRE_INIT_SEND_PKG




ABAP code using 7.40 inline data declarations to call FM FRE_INIT_SEND_PKG

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!