SAP Function Modules

FRE_ORD_IN_INTERFACE4 SAP Function module - Order Proposal Inbound Interface Function - F







FRE_ORD_IN_INTERFACE4 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FRE_ORD_IN_INTERFACE4 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FRE_ORDER_IN
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FRE_ORD_IN_INTERFACE4 - FRE ORD IN INTERFACE4





CALL FUNCTION 'FRE_ORD_IN_INTERFACE4' "Order Proposal Inbound Interface Function - F
* EXPORTING
*   is_control =                " fre_ord_in_ctrl  Control Parameters for Order Inbound Interface
  TABLES
    op_header_if =              " fre_op_hdr_if_in_52_sty  Header Structure for Communication with F&R Release 5.1
    op_item_if =                " fre_op_itm_if_in_52_sty  Position Structure for Communication with F&R Release 5.1
* CHANGING
*   ct_item_processed =         " fre_op_itm_key_tty  Order Proposal Item Key Data
  EXCEPTIONS
    ERROR = 1                   "               Error
    .  "  FRE_ORD_IN_INTERFACE4

ABAP code example for Function Module FRE_ORD_IN_INTERFACE4





The ABAP code below is a full code listing to execute function module FRE_ORD_IN_INTERFACE4 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_op_header_if  TYPE STANDARD TABLE OF FRE_OP_HDR_IF_IN_52_STY,"TABLES PARAM
wa_op_header_if  LIKE LINE OF it_op_header_if ,
it_op_item_if  TYPE STANDARD TABLE OF FRE_OP_ITM_IF_IN_52_STY,"TABLES PARAM
wa_op_item_if  LIKE LINE OF it_op_item_if .

DATA(ld_ct_item_processed) = 'Check type of data required'.
DATA(ld_is_control) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_op_header_if to it_op_header_if.

"populate fields of struture and append to itab
append wa_op_item_if to it_op_item_if. . CALL FUNCTION 'FRE_ORD_IN_INTERFACE4' * EXPORTING * is_control = ld_is_control TABLES op_header_if = it_op_header_if op_item_if = it_op_item_if * CHANGING * ct_item_processed = ld_ct_item_processed EXCEPTIONS ERROR = 1 . " FRE_ORD_IN_INTERFACE4
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_item_processed  TYPE FRE_OP_ITM_KEY_TTY ,
ld_is_control  TYPE FRE_ORD_IN_CTRL ,
it_op_header_if  TYPE STANDARD TABLE OF FRE_OP_HDR_IF_IN_52_STY ,
wa_op_header_if  LIKE LINE OF it_op_header_if,
it_op_item_if  TYPE STANDARD TABLE OF FRE_OP_ITM_IF_IN_52_STY ,
wa_op_item_if  LIKE LINE OF it_op_item_if.

ld_ct_item_processed = 'Check type of data required'.
ld_is_control = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_op_header_if to it_op_header_if.

"populate fields of struture and append to itab
append wa_op_item_if to it_op_item_if.

SAP Documentation for FM FRE_ORD_IN_INTERFACE4


This function module receives order proposal headers OP_HEADER_IF and order proposal items OP_ITEM_IF and processes them in two different ways ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FRE_ORD_IN_INTERFACE4 or its description.