SAP Function Modules

EMUL_READ_EX_ORDERS SAP Function module - Read Order Data Before Euro Contract Currency Conversion







EMUL_READ_EX_ORDERS 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 EMUL_READ_EX_ORDERS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FTLE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EMUL_READ_EX_ORDERS - EMUL READ EX ORDERS





CALL FUNCTION 'EMUL_READ_EX_ORDERS' "Read Order Data Before Euro Contract Currency Conversion
  IMPORTING
    count_selected_orders =     " sy-dbcnt      Anzahl selektierter Orders
  TABLES
    ivdarl_eu =                 " vdarl_eu      Darlehensdaten (für Selektion
    ovdorder_eu =               " vdorder_eu    Gelesene Orderdaten
    .  "  EMUL_READ_EX_ORDERS

ABAP code example for Function Module EMUL_READ_EX_ORDERS





The ABAP code below is a full code listing to execute function module EMUL_READ_EX_ORDERS 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:
ld_count_selected_orders  TYPE SY-DBCNT ,
it_ivdarl_eu  TYPE STANDARD TABLE OF VDARL_EU,"TABLES PARAM
wa_ivdarl_eu  LIKE LINE OF it_ivdarl_eu ,
it_ovdorder_eu  TYPE STANDARD TABLE OF VDORDER_EU,"TABLES PARAM
wa_ovdorder_eu  LIKE LINE OF it_ovdorder_eu .


"populate fields of struture and append to itab
append wa_ivdarl_eu to it_ivdarl_eu.

"populate fields of struture and append to itab
append wa_ovdorder_eu to it_ovdorder_eu. . CALL FUNCTION 'EMUL_READ_EX_ORDERS' IMPORTING count_selected_orders = ld_count_selected_orders TABLES ivdarl_eu = it_ivdarl_eu ovdorder_eu = it_ovdorder_eu . " EMUL_READ_EX_ORDERS
IF SY-SUBRC EQ 0. "All OK 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_count_selected_orders  TYPE SY-DBCNT ,
it_ivdarl_eu  TYPE STANDARD TABLE OF VDARL_EU ,
wa_ivdarl_eu  LIKE LINE OF it_ivdarl_eu,
it_ovdorder_eu  TYPE STANDARD TABLE OF VDORDER_EU ,
wa_ovdorder_eu  LIKE LINE OF it_ovdorder_eu.


"populate fields of struture and append to itab
append wa_ivdarl_eu to it_ivdarl_eu.

"populate fields of struture and append to itab
append wa_ovdorder_eu to it_ovdorder_eu.

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 EMUL_READ_EX_ORDERS or its description.