SAP Function Modules

GLE_MCA_GENL_GET_FORCU_DOCS SAP Function module - Get foreign currency documents







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

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


Pattern for FM GLE_MCA_GENL_GET_FORCU_DOCS - GLE MCA GENL GET FORCU DOCS





CALL FUNCTION 'GLE_MCA_GENL_GET_FORCU_DOCS' "Get foreign currency documents
  EXPORTING
    i_glflex_active =           " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
*   i_prccat =                  " gle_mca_dte_tprc_cat  Process Type
*   i_runid =                   " gle_mca_dte_runid  Run ID
    i_tab_sel_par =             " rsparams_tt   rsparams Table
*   i_log_handle =              " balloghndl    Application Log: Log Handle
*   i_fcurr =                   " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
*   i_blocksize = 500           " int4          Max. no. of entries in 'for all entries in ...'-tables
*   i_calc_rdiff = SPACE        " boole_d       Calculate exchange rate differences
*   i_ex_pdiff =                " gle_mca_dte_ratevar  Quantity Variance (Percentage)
*   i_amount_diff =             " gle_mca_dte_dmbtr  Amount Functional Currency
*   i_rate_type =               " kurst_curr    Exchange Rate Type
*   i_show_all = SPACE          " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
  IMPORTING
    e_tab_forcu_item =          " gle_mca_tab_fx_trn  GLE MCA Table Type for Postline
    e_tab_return =              " bapiret2_t    Return parameter table
    e_errors =                  " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
    .  "  GLE_MCA_GENL_GET_FORCU_DOCS

ABAP code example for Function Module GLE_MCA_GENL_GET_FORCU_DOCS





The ABAP code below is a full code listing to execute function module GLE_MCA_GENL_GET_FORCU_DOCS 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_e_tab_forcu_item  TYPE GLE_MCA_TAB_FX_TRN ,
ld_e_tab_return  TYPE BAPIRET2_T ,
ld_e_errors  TYPE BOOLE_D .

DATA(ld_i_glflex_active) = 'Check type of data required'.
DATA(ld_i_prccat) = 'Check type of data required'.
DATA(ld_i_runid) = 'Check type of data required'.
DATA(ld_i_tab_sel_par) = 'Check type of data required'.
DATA(ld_i_log_handle) = 'Check type of data required'.
DATA(ld_i_fcurr) = 'Check type of data required'.
DATA(ld_i_blocksize) = 'Check type of data required'.
DATA(ld_i_calc_rdiff) = 'Check type of data required'.
DATA(ld_i_ex_pdiff) = 'Check type of data required'.
DATA(ld_i_amount_diff) = 'Check type of data required'.
DATA(ld_i_rate_type) = 'Check type of data required'.
DATA(ld_i_show_all) = 'Check type of data required'. . CALL FUNCTION 'GLE_MCA_GENL_GET_FORCU_DOCS' EXPORTING i_glflex_active = ld_i_glflex_active * i_prccat = ld_i_prccat * i_runid = ld_i_runid i_tab_sel_par = ld_i_tab_sel_par * i_log_handle = ld_i_log_handle * i_fcurr = ld_i_fcurr * i_blocksize = ld_i_blocksize * i_calc_rdiff = ld_i_calc_rdiff * i_ex_pdiff = ld_i_ex_pdiff * i_amount_diff = ld_i_amount_diff * i_rate_type = ld_i_rate_type * i_show_all = ld_i_show_all IMPORTING e_tab_forcu_item = ld_e_tab_forcu_item e_tab_return = ld_e_tab_return e_errors = ld_e_errors . " GLE_MCA_GENL_GET_FORCU_DOCS
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_e_tab_forcu_item  TYPE GLE_MCA_TAB_FX_TRN ,
ld_i_glflex_active  TYPE BOOLE_D ,
ld_e_tab_return  TYPE BAPIRET2_T ,
ld_i_prccat  TYPE GLE_MCA_DTE_TPRC_CAT ,
ld_e_errors  TYPE BOOLE_D ,
ld_i_runid  TYPE GLE_MCA_DTE_RUNID ,
ld_i_tab_sel_par  TYPE RSPARAMS_TT ,
ld_i_log_handle  TYPE BALLOGHNDL ,
ld_i_fcurr  TYPE BOOLE_D ,
ld_i_blocksize  TYPE INT4 ,
ld_i_calc_rdiff  TYPE BOOLE_D ,
ld_i_ex_pdiff  TYPE GLE_MCA_DTE_RATEVAR ,
ld_i_amount_diff  TYPE GLE_MCA_DTE_DMBTR ,
ld_i_rate_type  TYPE KURST_CURR ,
ld_i_show_all  TYPE BOOLE_D .

ld_i_glflex_active = 'Check type of data required'.
ld_i_prccat = 'Check type of data required'.
ld_i_runid = 'Check type of data required'.
ld_i_tab_sel_par = 'Check type of data required'.
ld_i_log_handle = 'Check type of data required'.
ld_i_fcurr = 'Check type of data required'.
ld_i_blocksize = 'Check type of data required'.
ld_i_calc_rdiff = 'Check type of data required'.
ld_i_ex_pdiff = 'Check type of data required'.
ld_i_amount_diff = 'Check type of data required'.
ld_i_rate_type = 'Check type of data required'.
ld_i_show_all = 'Check type of data required'.

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