SAP FRE_SUPPLY_MAP_DELRECS Function Module for Create and map deletion Records Supply Network









FRE_SUPPLY_MAP_DELRECS is a standard fre supply map delrecs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create and map deletion Records Supply Network 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 supply map delrecs FM, simply by entering the name FRE_SUPPLY_MAP_DELRECS 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_MD_SOS_OUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FRE_SUPPLY_MAP_DELRECS 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_SUPPLY_MAP_DELRECS'"Create and map deletion Records Supply Network
EXPORTING
IS_SEND_OPTION = "Maintain Basic Settings for Data Transfer
IT_ART_SITE = "interface table with werks and matnr
* IP_DEL_GEN_REC_SITE = '' "Checkbox
* IP_RE_INIT = "Checkbox
* IP_FULL_WERKS = "Checkbox
* IP_PACKAGE_ID = "UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
* IP_GEN_DEL = "Save on recovery file: Avoid transfer of generic deletion Records for Lanes
* IP_SOURCE_LIST_ONLY = ' ' "only lanes for source list entries requested

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

EXCEPTIONS
FATAL_ERROR = 1
.



IMPORTING Parameters details for FRE_SUPPLY_MAP_DELRECS

IS_SEND_OPTION - Maintain Basic Settings for Data Transfer

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

IT_ART_SITE - interface table with werks and matnr

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

IP_DEL_GEN_REC_SITE - Checkbox

Data type: XFELD
Default: ''
Optional: Yes
Call by Reference: Yes

IP_RE_INIT - Checkbox

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

IP_FULL_WERKS - Checkbox

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

IP_PACKAGE_ID - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)

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

IP_GEN_DEL - Save on recovery file: Avoid transfer of generic deletion Records for Lanes

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

IP_SOURCE_LIST_ONLY - only lanes for source list entries requested

Data type: XFLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FRE_SUPPLY_MAP_DELRECS

ET_MSG - FRE CON R/3 User Interface Message Structure

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

EXCEPTIONS details

FATAL_ERROR - Error during Transmission to F&R and when writing Files!

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FRE_SUPPLY_MAP_DELRECS 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_fatal_error  TYPE FRE_UI_MSG_TTY, "   
lv_is_send_option  TYPE FRE_SEND_OPTION, "   
lv_it_art_site  TYPE FRE_MATNR_WERKS_TTY, "   
lv_ip_del_gen_rec_site  TYPE XFELD, "   ''
lv_ip_re_init  TYPE XFELD, "   
lv_ip_full_werks  TYPE XFELD, "   
lv_ip_package_id  TYPE FRE_TST_LONG, "   
lv_ip_gen_del  TYPE XFLAG, "   
lv_ip_source_list_only  TYPE XFLAG. "   SPACE

  CALL FUNCTION 'FRE_SUPPLY_MAP_DELRECS'  "Create and map deletion Records Supply Network
    EXPORTING
         IS_SEND_OPTION = lv_is_send_option
         IT_ART_SITE = lv_it_art_site
         IP_DEL_GEN_REC_SITE = lv_ip_del_gen_rec_site
         IP_RE_INIT = lv_ip_re_init
         IP_FULL_WERKS = lv_ip_full_werks
         IP_PACKAGE_ID = lv_ip_package_id
         IP_GEN_DEL = lv_ip_gen_del
         IP_SOURCE_LIST_ONLY = lv_ip_source_list_only
    IMPORTING
         ET_MSG = lv_et_msg
    EXCEPTIONS
        FATAL_ERROR = 1
. " FRE_SUPPLY_MAP_DELRECS




ABAP code using 7.40 inline data declarations to call FM FRE_SUPPLY_MAP_DELRECS

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_del_gen_rec_site) = ''.
 
 
 
 
 
DATA(ld_ip_source_list_only) = ' '.
 


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!