SAP FRE_MD_SOS_LANE_INITIAL Function Module for Initial Transfer of Lanes Data to FRE
FRE_MD_SOS_LANE_INITIAL is a standard fre md sos lane 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 Initial Transfer of Lanes Data to FRE 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 sos lane initial FM, simply by entering the name FRE_MD_SOS_LANE_INITIAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRE_MD_SOS_OUT
Program Name: SAPLFRE_MD_SOS_OUT
Main Program: SAPLFRE_ORDER_OUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FRE_MD_SOS_LANE_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_SOS_LANE_INITIAL'"Initial Transfer of Lanes Data to FRE.
EXPORTING
* IP_SYSTEM = "System of F&R
* IP_GEN_DEL = ' ' "Save on recovery file: transfer of generic deletion Records for Lanes
* IP_FOR_LANE_TD_ONLY = ' ' "only lanes for time-dependent lane data requested
* IP_KEEP_COPIED_LANES = ' ' "transfer copied lanes even if no TD-values are available
* IP_DIRECT_ACCESS = 'X' "New Input Values
* IP_OWNSYSTEM = "System of R3
IT_ART_SITE = "interface table with werks and matnr
IS_SEND_OPTION = "Maintain Basic Settings for Data Transfer
* IP_PACKAGE_ID = "UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
* IP_SOURCE_LIST_ONLY = ' ' "only lanes for source list entries requested
* IP_FULL_WERKS = ' ' "Save on recovery file: delete the complete lanes for a store or DC
* IP_RE_INIT = ' ' "Save on recovery file: calling process is fre_reinit_load
EXCEPTIONS
NO_OBJECTS_FOUND = 1 SEND_FAILURE = 2
IMPORTING Parameters details for FRE_MD_SOS_LANE_INITIAL
IP_SYSTEM - System of F&R
Data type: FRE_SYSTEM_FREOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_GEN_DEL - Save on recovery file: transfer of generic deletion Records for Lanes
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_FOR_LANE_TD_ONLY - only lanes for time-dependent lane data requested
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_KEEP_COPIED_LANES - transfer copied lanes even if no TD-values are available
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_DIRECT_ACCESS - New Input Values
Data type: XFLAGDefault: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
IP_OWNSYSTEM - System of R3
Data type: FRE_SYSTEM_R3Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_ART_SITE - interface table with werks and matnr
Data type: FRE_MATNR_WERKS_TTYOptional: No
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_PACKAGE_ID - UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
Data type: TZNTSTMPLOptional: Yes
Call by Reference: No ( called with pass by value option)
IP_SOURCE_LIST_ONLY - only lanes for source list entries requested
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_FULL_WERKS - Save on recovery file: delete the complete lanes for a store or DC
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_RE_INIT - Save on recovery file: calling process is fre_reinit_load
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_OBJECTS_FOUND - No supply network objects for article-site-combinations found
Data type:Optional: No
Call by Reference: Yes
SEND_FAILURE - error during transfer
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRE_MD_SOS_LANE_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_system | TYPE FRE_SYSTEM_FRE, " | |||
| lv_no_objects_found | TYPE FRE_SYSTEM_FRE, " | |||
| lv_ip_gen_del | TYPE XFLAG, " SPACE | |||
| lv_ip_for_lane_td_only | TYPE XFLAG, " SPACE | |||
| lv_ip_keep_copied_lanes | TYPE XFLAG, " SPACE | |||
| lv_send_failure | TYPE XFLAG, " | |||
| lv_ip_direct_access | TYPE XFLAG, " 'X' | |||
| lv_ip_ownsystem | TYPE FRE_SYSTEM_R3, " | |||
| lv_it_art_site | TYPE FRE_MATNR_WERKS_TTY, " | |||
| lv_is_send_option | TYPE FRE_SEND_OPTION, " | |||
| lv_ip_package_id | TYPE TZNTSTMPL, " | |||
| lv_ip_source_list_only | TYPE XFLAG, " SPACE | |||
| lv_ip_full_werks | TYPE XFLAG, " SPACE | |||
| lv_ip_re_init | TYPE XFLAG. " SPACE |
|   CALL FUNCTION 'FRE_MD_SOS_LANE_INITIAL' "Initial Transfer of Lanes Data to FRE |
| EXPORTING | ||
| IP_SYSTEM | = lv_ip_system | |
| IP_GEN_DEL | = lv_ip_gen_del | |
| IP_FOR_LANE_TD_ONLY | = lv_ip_for_lane_td_only | |
| IP_KEEP_COPIED_LANES | = lv_ip_keep_copied_lanes | |
| IP_DIRECT_ACCESS | = lv_ip_direct_access | |
| IP_OWNSYSTEM | = lv_ip_ownsystem | |
| IT_ART_SITE | = lv_it_art_site | |
| IS_SEND_OPTION | = lv_is_send_option | |
| IP_PACKAGE_ID | = lv_ip_package_id | |
| IP_SOURCE_LIST_ONLY | = lv_ip_source_list_only | |
| IP_FULL_WERKS | = lv_ip_full_werks | |
| IP_RE_INIT | = lv_ip_re_init | |
| EXCEPTIONS | ||
| NO_OBJECTS_FOUND = 1 | ||
| SEND_FAILURE = 2 | ||
| . " FRE_MD_SOS_LANE_INITIAL | ||
ABAP code using 7.40 inline data declarations to call FM FRE_MD_SOS_LANE_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_gen_del) | = ' '. | |||
| DATA(ld_ip_for_lane_td_only) | = ' '. | |||
| DATA(ld_ip_keep_copied_lanes) | = ' '. | |||
| DATA(ld_ip_direct_access) | = 'X'. | |||
| DATA(ld_ip_source_list_only) | = ' '. | |||
| DATA(ld_ip_full_werks) | = ' '. | |||
| DATA(ld_ip_re_init) | = ' '. | |||
Search for further information about these or an SAP related objects