SAP Function Modules

FI_EXCHRATES_SELECT_AND_SEND SAP Function module







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

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


Pattern for FM FI_EXCHRATES_SELECT_AND_SEND - FI EXCHRATES SELECT AND SEND





CALL FUNCTION 'FI_EXCHRATES_SELECT_AND_SEND' "
  EXPORTING
    date =                      " bapi1093_2-trans_date  Currency translation date
    date_type =                 " bapi1093_2-date_type
*   upd_allow =                 " bapi1093_2-upd_allow
*   chg_fixed =                 " bapi1093_2-chg_fixed
*   dev_allow =                 " bapi1093_2-dev_allow  Permitted Difference in %
*   disp_only =                 " boole-boole
  TABLES
    from_curr_range =           " bapi1093_3
    to_currncy_range =          " bapi1093_4
*   rate_type_range =           " bapi1093_7
*   return =                    " bapireturn
*   logsys_range =              " ctrs_targt
    .  "  FI_EXCHRATES_SELECT_AND_SEND

ABAP code example for Function Module FI_EXCHRATES_SELECT_AND_SEND





The ABAP code below is a full code listing to execute function module FI_EXCHRATES_SELECT_AND_SEND 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_from_curr_range  TYPE STANDARD TABLE OF BAPI1093_3,"TABLES PARAM
wa_from_curr_range  LIKE LINE OF it_from_curr_range ,
it_to_currncy_range  TYPE STANDARD TABLE OF BAPI1093_4,"TABLES PARAM
wa_to_currncy_range  LIKE LINE OF it_to_currncy_range ,
it_rate_type_range  TYPE STANDARD TABLE OF BAPI1093_7,"TABLES PARAM
wa_rate_type_range  LIKE LINE OF it_rate_type_range ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_logsys_range  TYPE STANDARD TABLE OF CTRS_TARGT,"TABLES PARAM
wa_logsys_range  LIKE LINE OF it_logsys_range .


DATA(ld_date) = 20210129

DATA(ld_date_type) = some text here

DATA(ld_upd_allow) = some text here

DATA(ld_chg_fixed) = some text here

DATA(ld_dev_allow) = Check type of data required

DATA(ld_disp_only) = some text here

"populate fields of struture and append to itab
append wa_from_curr_range to it_from_curr_range.

"populate fields of struture and append to itab
append wa_to_currncy_range to it_to_currncy_range.

"populate fields of struture and append to itab
append wa_rate_type_range to it_rate_type_range.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_logsys_range to it_logsys_range. . CALL FUNCTION 'FI_EXCHRATES_SELECT_AND_SEND' EXPORTING date = ld_date date_type = ld_date_type * upd_allow = ld_upd_allow * chg_fixed = ld_chg_fixed * dev_allow = ld_dev_allow * disp_only = ld_disp_only TABLES from_curr_range = it_from_curr_range to_currncy_range = it_to_currncy_range * rate_type_range = it_rate_type_range * return = it_return * logsys_range = it_logsys_range . " FI_EXCHRATES_SELECT_AND_SEND
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_date  TYPE BAPI1093_2-TRANS_DATE ,
it_from_curr_range  TYPE STANDARD TABLE OF BAPI1093_3 ,
wa_from_curr_range  LIKE LINE OF it_from_curr_range,
ld_date_type  TYPE BAPI1093_2-DATE_TYPE ,
it_to_currncy_range  TYPE STANDARD TABLE OF BAPI1093_4 ,
wa_to_currncy_range  LIKE LINE OF it_to_currncy_range,
ld_upd_allow  TYPE BAPI1093_2-UPD_ALLOW ,
it_rate_type_range  TYPE STANDARD TABLE OF BAPI1093_7 ,
wa_rate_type_range  LIKE LINE OF it_rate_type_range,
ld_chg_fixed  TYPE BAPI1093_2-CHG_FIXED ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN ,
wa_return  LIKE LINE OF it_return,
ld_dev_allow  TYPE BAPI1093_2-DEV_ALLOW ,
it_logsys_range  TYPE STANDARD TABLE OF CTRS_TARGT ,
wa_logsys_range  LIKE LINE OF it_logsys_range,
ld_disp_only  TYPE BOOLE-BOOLE .


ld_date = 20210129

"populate fields of struture and append to itab
append wa_from_curr_range to it_from_curr_range.

ld_date_type = some text here

"populate fields of struture and append to itab
append wa_to_currncy_range to it_to_currncy_range.

ld_upd_allow = some text here

"populate fields of struture and append to itab
append wa_rate_type_range to it_rate_type_range.

ld_chg_fixed = some text here

"populate fields of struture and append to itab
append wa_return to it_return.

ld_dev_allow = Check type of data required

"populate fields of struture and append to itab
append wa_logsys_range to it_logsys_range.

ld_disp_only = some text here

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