SAP FRE_SOS_CHK_READ_DATA_OM Function Module for Read transportation lane data - Old model - FRE_CHECK_SUPPLY_NET









FRE_SOS_CHK_READ_DATA_OM is a standard fre sos chk read data om SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read transportation lane data - Old model - FRE_CHECK_SUPPLY_NET 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 sos chk read data om FM, simply by entering the name FRE_SOS_CHK_READ_DATA_OM into the relevant SAP transaction such as SE37 or SE38.

Function Group: FRE_SUPPORT_TOOLS
Program Name: SAPLFRE_SUPPORT_TOOLS
Main Program: SAPLFRE_SUPPORT_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FRE_SOS_CHK_READ_DATA_OM 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_SOS_CHK_READ_DATA_OM'"Read transportation lane data - Old model - FRE_CHECK_SUPPLY_NET
EXPORTING
* IF_FLAG_INT = 'X' "Check Internal Lanes
* IF_FLAG_EXT = 'X' "Check External Lanes
* IF_FLAG_PRICE = ' ' "Check Purchase Prices
* IF_FLAG_TD = ' ' "Check Time Dependent Data
* IF_ZONLO_FRE = SY-ZONLO "Time Zone of Current User
* IS_FRE_SEND_OPTION = "Basic Settings for Data Transfer
* IT_BADIS = "BAdI Definitions
IT_ART_WERKS = "Article and Site for reading data

CHANGING
CT_TRPROD = "Fre Transportation Lane for Products
CT_TPSRC = "fre External Procurement data incl ISO fields
CT_CSCALE = "Fre Price Information for external proc incl ISO fields
CT_TRPROD2 = "F&R Data Interface Transportation Lane for Subranges
CT_TRPROD2TD = "F&R Data Interface Transportation Lane for Subranges TD
.



IMPORTING Parameters details for FRE_SOS_CHK_READ_DATA_OM

IF_FLAG_INT - Check Internal Lanes

Data type: FRE_CHK_INT_LANES
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_FLAG_EXT - Check External Lanes

Data type: FRE_CHK_EXT_LANES
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_FLAG_PRICE - Check Purchase Prices

Data type: FRE_CHK_PURCH_PRICES
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_FLAG_TD - Check Time Dependent Data

Data type: FRE_CHK_CONSIDER_TD_DATA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_ZONLO_FRE - Time Zone of Current User

Data type: SY-ZONLO
Default: SY-ZONLO
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FRE_SEND_OPTION - Basic Settings for Data Transfer

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

IT_BADIS - BAdI Definitions

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

IT_ART_WERKS - Article and Site for reading data

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

CHANGING Parameters details for FRE_SOS_CHK_READ_DATA_OM

CT_TRPROD - Fre Transportation Lane for Products

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

CT_TPSRC - fre External Procurement data incl ISO fields

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

CT_CSCALE - Fre Price Information for external proc incl ISO fields

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

CT_TRPROD2 - F&R Data Interface Transportation Lane for Subranges

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

CT_TRPROD2TD - F&R Data Interface Transportation Lane for Subranges TD

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

Copy and paste ABAP code example for FRE_SOS_CHK_READ_DATA_OM 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_trprod  TYPE FRE_MD_TRPROD_TTY_50, "   
lv_if_flag_int  TYPE FRE_CHK_INT_LANES, "   'X'
lv_ct_tpsrc  TYPE FRE_MD_TPSRC_TTY_50, "   
lv_if_flag_ext  TYPE FRE_CHK_EXT_LANES, "   'X'
lv_ct_cscale  TYPE FRE_MD_CSCALE_TTY_50, "   
lv_if_flag_price  TYPE FRE_CHK_PURCH_PRICES, "   SPACE
lv_ct_trprod2  TYPE FRE_MD_TRPROD2_TTY_50, "   
lv_if_flag_td  TYPE FRE_CHK_CONSIDER_TD_DATA, "   SPACE
lv_ct_trprod2td  TYPE FRE_MD_TRP2TD_TTY, "   
lv_if_zonlo_fre  TYPE SY-ZONLO, "   SY-ZONLO
lv_is_fre_send_option  TYPE FRE_SEND_OPTION, "   
lv_it_badis  TYPE EXIT_TABLE_TYPE, "   
lv_it_art_werks  TYPE FRE_MATNR_WERKS_TTY. "   

  CALL FUNCTION 'FRE_SOS_CHK_READ_DATA_OM'  "Read transportation lane data - Old model - FRE_CHECK_SUPPLY_NET
    EXPORTING
         IF_FLAG_INT = lv_if_flag_int
         IF_FLAG_EXT = lv_if_flag_ext
         IF_FLAG_PRICE = lv_if_flag_price
         IF_FLAG_TD = lv_if_flag_td
         IF_ZONLO_FRE = lv_if_zonlo_fre
         IS_FRE_SEND_OPTION = lv_is_fre_send_option
         IT_BADIS = lv_it_badis
         IT_ART_WERKS = lv_it_art_werks
    CHANGING
         CT_TRPROD = lv_ct_trprod
         CT_TPSRC = lv_ct_tpsrc
         CT_CSCALE = lv_ct_cscale
         CT_TRPROD2 = lv_ct_trprod2
         CT_TRPROD2TD = lv_ct_trprod2td
. " FRE_SOS_CHK_READ_DATA_OM




ABAP code using 7.40 inline data declarations to call FM FRE_SOS_CHK_READ_DATA_OM

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_if_flag_int) = 'X'.
 
 
DATA(ld_if_flag_ext) = 'X'.
 
 
DATA(ld_if_flag_price) = ' '.
 
 
DATA(ld_if_flag_td) = ' '.
 
 
"SELECT single ZONLO FROM SY INTO @DATA(ld_if_zonlo_fre).
DATA(ld_if_zonlo_fre) = SY-ZONLO.
 
 
 
 


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!