SAP FRE_MD_SOS_BUILD_LANES Function Module for Build lanes data for transfer using new lanes model
FRE_MD_SOS_BUILD_LANES is a standard fre md sos build lanes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Build lanes data for transfer using new lanes model 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 build lanes FM, simply by entering the name FRE_MD_SOS_BUILD_LANES 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): Normal Function Module
Update:

Function FRE_MD_SOS_BUILD_LANES 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_BUILD_LANES'"Build lanes data for transfer using new lanes model.
EXPORTING
* IP_OWN_SYSTEM = "System of R3
* IP_NO_PRICES = ' ' "New Input Values
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
IMPORTING
ET_MSG = "FRE CON R/3 User Interface Message Structure
CHANGING
* IT_SOS_DATA_UPD = "Transportation lanes procurement data records in R/3
* IT_SOS_DATA_INS = "Transportation lanes procurement data records in R/3
* IT_SOS_KEY_DEL = "Transportation lanes procurement data records
ET_TRPROD2 = "F&R Data Interface Transportation Lane for Subranges
ET_TRP2TD = "F&R Data Interface Transportation Lane for Subranges TD
ET_LANE = "Lanes Data for Comminication with FRE
ET_LANE_TD = "Time Dependent Lanes Data for Comminication with FRE
ET_PCOST = "Fre Price Information for external proc incl ISO fields
EXCEPTIONS
ERRORS_PRICING = 1 ERRORS_DT_CONVERSION = 2 ERRORS_OCCURED = 3
IMPORTING Parameters details for FRE_MD_SOS_BUILD_LANES
IP_OWN_SYSTEM - System of R3
Data type: FRE_SYSTEM_R3Optional: Yes
Call by Reference: Yes
IP_NO_PRICES - New Input Values
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
IS_SEND_OPTION - Maintain Basic Settings for Data Transfer
Data type: FRE_SEND_OPTIONOptional: No
Call by Reference: Yes
IP_PACKAGE_ID - UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
Data type: TZNTSTMPLOptional: Yes
Call by Reference: Yes
IP_SOURCE_LIST_ONLY - only lanes for source list entries requested
Data type: XFLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FRE_MD_SOS_BUILD_LANES
ET_MSG - FRE CON R/3 User Interface Message Structure
Data type: FRE_UI_MSG_TTYOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRE_MD_SOS_BUILD_LANES
IT_SOS_DATA_UPD - Transportation lanes procurement data records in R/3
Data type: FRE_MD_SOS_DATA_TTYOptional: Yes
Call by Reference: Yes
IT_SOS_DATA_INS - Transportation lanes procurement data records in R/3
Data type: FRE_MD_SOS_DATA_TTYOptional: Yes
Call by Reference: Yes
IT_SOS_KEY_DEL - Transportation lanes procurement data records
Data type: FRE_MD_SOS_KEY_TTYOptional: Yes
Call by Reference: Yes
ET_TRPROD2 - F&R Data Interface Transportation Lane for Subranges
Data type: FRE_MD_TRPROD2_TTYOptional: No
Call by Reference: Yes
ET_TRP2TD - F&R Data Interface Transportation Lane for Subranges TD
Data type: FRE_MD_TRP2TD_TTYOptional: No
Call by Reference: Yes
ET_LANE - Lanes Data for Comminication with FRE
Data type: FRE_MD_LANE_TTYOptional: No
Call by Reference: Yes
ET_LANE_TD - Time Dependent Lanes Data for Comminication with FRE
Data type: FRE_MD_LANE_TD_TTYOptional: No
Call by Reference: Yes
ET_PCOST - Fre Price Information for external proc incl ISO fields
Data type: FRE_MD_PCOST_TTYOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERRORS_PRICING - Error during price determination
Data type:Optional: No
Call by Reference: Yes
ERRORS_DT_CONVERSION - Error during date / time conversion
Data type:Optional: No
Call by Reference: Yes
ERRORS_OCCURED - Error during creation of lane data
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRE_MD_SOS_BUILD_LANES 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_ip_own_system | TYPE FRE_SYSTEM_R3, " | |||
| lv_errors_pricing | TYPE FRE_SYSTEM_R3, " | |||
| lv_it_sos_data_upd | TYPE FRE_MD_SOS_DATA_TTY, " | |||
| lv_ip_no_prices | TYPE XFLAG, " SPACE | |||
| lv_it_sos_data_ins | TYPE FRE_MD_SOS_DATA_TTY, " | |||
| lv_errors_dt_conversion | TYPE FRE_MD_SOS_DATA_TTY, " | |||
| lv_errors_occured | TYPE FRE_MD_SOS_DATA_TTY, " | |||
| lv_is_send_option | TYPE FRE_SEND_OPTION, " | |||
| lv_it_sos_key_del | TYPE FRE_MD_SOS_KEY_TTY, " | |||
| lv_et_trprod2 | TYPE FRE_MD_TRPROD2_TTY, " | |||
| lv_ip_package_id | TYPE TZNTSTMPL, " | |||
| lv_et_trp2td | TYPE FRE_MD_TRP2TD_TTY, " | |||
| lv_ip_source_list_only | TYPE XFLAG, " SPACE | |||
| lv_et_lane | TYPE FRE_MD_LANE_TTY, " | |||
| lv_et_lane_td | TYPE FRE_MD_LANE_TD_TTY, " | |||
| lv_et_pcost | TYPE FRE_MD_PCOST_TTY. " |
|   CALL FUNCTION 'FRE_MD_SOS_BUILD_LANES' "Build lanes data for transfer using new lanes model |
| EXPORTING | ||
| IP_OWN_SYSTEM | = lv_ip_own_system | |
| IP_NO_PRICES | = lv_ip_no_prices | |
| IS_SEND_OPTION | = lv_is_send_option | |
| IP_PACKAGE_ID | = lv_ip_package_id | |
| IP_SOURCE_LIST_ONLY | = lv_ip_source_list_only | |
| IMPORTING | ||
| ET_MSG | = lv_et_msg | |
| CHANGING | ||
| IT_SOS_DATA_UPD | = lv_it_sos_data_upd | |
| IT_SOS_DATA_INS | = lv_it_sos_data_ins | |
| IT_SOS_KEY_DEL | = lv_it_sos_key_del | |
| ET_TRPROD2 | = lv_et_trprod2 | |
| ET_TRP2TD | = lv_et_trp2td | |
| ET_LANE | = lv_et_lane | |
| ET_LANE_TD | = lv_et_lane_td | |
| ET_PCOST | = lv_et_pcost | |
| EXCEPTIONS | ||
| ERRORS_PRICING = 1 | ||
| ERRORS_DT_CONVERSION = 2 | ||
| ERRORS_OCCURED = 3 | ||
| . " FRE_MD_SOS_BUILD_LANES | ||
ABAP code using 7.40 inline data declarations to call FM FRE_MD_SOS_BUILD_LANES
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_no_prices) | = ' '. | |||
| DATA(ld_ip_source_list_only) | = ' '. | |||
Search for further information about these or an SAP related objects