SAP FRE_ORD_DIRECT_SEND Function Module for Transmission of Order Data to F&R
FRE_ORD_DIRECT_SEND is a standard fre ord direct send SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transmission of Order Data to F&R 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 ord direct send FM, simply by entering the name FRE_ORD_DIRECT_SEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRE_ORDER_OUT
Program Name: SAPLFRE_ORDER_OUT
Main Program: SAPLFRE_ORDER_OUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRE_ORD_DIRECT_SEND 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_ORD_DIRECT_SEND'"Transmission of Order Data to F&R.
EXPORTING
CALL_PROG = "Calling Program
* IP_SEND_CONTRACTS = 'X' "Checkbox
* IS_SEND_OPTION = "Maintain Basic Settings for Data Transfer
* INITIAL_LOAD = "Checkbox
* SERVERGROUP = "Logon/Server Group Name
* IP_PARALLEL = 'X' "Checkbox
* IP_TASKS = "Maximum number of parallel tasks
* IP_PACKAGESIZE = "Number of Records per Package
* IP_HIST_PO = "Transfer of historical, completed PO items
* IP_PO_PAST = "Days in the Past for Selection of completed, historical POs
* IP_SEND_ORDERS = 'X' "Checkbox
TABLES
* FRE_ART_SITE = "Article and Site for relevance check
* IT_ARTICLE = "Table Type: Material selection
IMPORTING Parameters details for FRE_ORD_DIRECT_SEND
CALL_PROG - Calling Program
Data type: FRE_CALL_PROGOptional: No
Call by Reference: No ( called with pass by value option)
IP_SEND_CONTRACTS - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IS_SEND_OPTION - Maintain Basic Settings for Data Transfer
Data type: FRE_SEND_OPTIONOptional: Yes
Call by Reference: Yes
INITIAL_LOAD - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
SERVERGROUP - Logon/Server Group Name
Data type: RZLLI_APCLOptional: Yes
Call by Reference: Yes
IP_PARALLEL - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IP_TASKS - Maximum number of parallel tasks
Data type: DDMAXTASKSOptional: Yes
Call by Reference: Yes
IP_PACKAGESIZE - Number of Records per Package
Data type: FRE_PACKAGESIZEOptional: Yes
Call by Reference: Yes
IP_HIST_PO - Transfer of historical, completed PO items
Data type: FRE_TRANSF_HISTOR_POOptional: Yes
Call by Reference: Yes
IP_PO_PAST - Days in the Past for Selection of completed, historical POs
Data type: FRE_PO_SELECT_PASTOptional: Yes
Call by Reference: Yes
IP_SEND_ORDERS - Checkbox
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for FRE_ORD_DIRECT_SEND
FRE_ART_SITE - Article and Site for relevance check
Data type: FRE_MATNR_WERKSOptional: Yes
Call by Reference: Yes
IT_ARTICLE - Table Type: Material selection
Data type: FRE_MD_ST_MATNR_TTYOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FRE_ORD_DIRECT_SEND 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_call_prog | TYPE FRE_CALL_PROG, " | |||
| lt_fre_art_site | TYPE STANDARD TABLE OF FRE_MATNR_WERKS, " | |||
| lv_ip_send_contracts | TYPE XFELD, " 'X' | |||
| lv_is_send_option | TYPE FRE_SEND_OPTION, " | |||
| lt_it_article | TYPE STANDARD TABLE OF FRE_MD_ST_MATNR_TTY, " | |||
| lv_initial_load | TYPE XFELD, " | |||
| lv_servergroup | TYPE RZLLI_APCL, " | |||
| lv_ip_parallel | TYPE XFELD, " 'X' | |||
| lv_ip_tasks | TYPE DDMAXTASKS, " | |||
| lv_ip_packagesize | TYPE FRE_PACKAGESIZE, " | |||
| lv_ip_hist_po | TYPE FRE_TRANSF_HISTOR_PO, " | |||
| lv_ip_po_past | TYPE FRE_PO_SELECT_PAST, " | |||
| lv_ip_send_orders | TYPE XFELD. " 'X' |
|   CALL FUNCTION 'FRE_ORD_DIRECT_SEND' "Transmission of Order Data to F&R |
| EXPORTING | ||
| CALL_PROG | = lv_call_prog | |
| IP_SEND_CONTRACTS | = lv_ip_send_contracts | |
| IS_SEND_OPTION | = lv_is_send_option | |
| INITIAL_LOAD | = lv_initial_load | |
| SERVERGROUP | = lv_servergroup | |
| IP_PARALLEL | = lv_ip_parallel | |
| IP_TASKS | = lv_ip_tasks | |
| IP_PACKAGESIZE | = lv_ip_packagesize | |
| IP_HIST_PO | = lv_ip_hist_po | |
| IP_PO_PAST | = lv_ip_po_past | |
| IP_SEND_ORDERS | = lv_ip_send_orders | |
| TABLES | ||
| FRE_ART_SITE | = lt_fre_art_site | |
| IT_ARTICLE | = lt_it_article | |
| . " FRE_ORD_DIRECT_SEND | ||
ABAP code using 7.40 inline data declarations to call FM FRE_ORD_DIRECT_SEND
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_send_contracts) | = 'X'. | |||
| DATA(ld_ip_parallel) | = 'X'. | |||
| DATA(ld_ip_send_orders) | = 'X'. | |||
Search for further information about these or an SAP related objects