SAP Function Modules

COMP_CURRENCY_GETTABLES SAP Function module - Get Currency Tables ( Component )







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

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


Pattern for FM COMP_CURRENCY_GETTABLES - COMP CURRENCY GETTABLES





CALL FUNCTION 'COMP_CURRENCY_GETTABLES' "Get Currency Tables ( Component )
* EXPORTING
*   logical_system =            " bbp_backend_dest-log_sys  Logical system
  TABLES
    i_t_langu =                 " rslangusel
    e_t_tcurf =                 " rstcurf
    e_t_tcurs =                 " rstcurs
    e_t_tcurt =                 " rstcurt
    e_t_tcurv =                 " rstcurv
    e_t_tcurw =                 " rstcurw
    e_t_tcurx =                 " rstcurx
    e_t_tcurc =                 " rstcurc
    return =                    " bapireturn
    control_record =            " bbp_control_record
    .  "  COMP_CURRENCY_GETTABLES

ABAP code example for Function Module COMP_CURRENCY_GETTABLES





The ABAP code below is a full code listing to execute function module COMP_CURRENCY_GETTABLES 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_i_t_langu  TYPE STANDARD TABLE OF RSLANGUSEL,"TABLES PARAM
wa_i_t_langu  LIKE LINE OF it_i_t_langu ,
it_e_t_tcurf  TYPE STANDARD TABLE OF RSTCURF,"TABLES PARAM
wa_e_t_tcurf  LIKE LINE OF it_e_t_tcurf ,
it_e_t_tcurs  TYPE STANDARD TABLE OF RSTCURS,"TABLES PARAM
wa_e_t_tcurs  LIKE LINE OF it_e_t_tcurs ,
it_e_t_tcurt  TYPE STANDARD TABLE OF RSTCURT,"TABLES PARAM
wa_e_t_tcurt  LIKE LINE OF it_e_t_tcurt ,
it_e_t_tcurv  TYPE STANDARD TABLE OF RSTCURV,"TABLES PARAM
wa_e_t_tcurv  LIKE LINE OF it_e_t_tcurv ,
it_e_t_tcurw  TYPE STANDARD TABLE OF RSTCURW,"TABLES PARAM
wa_e_t_tcurw  LIKE LINE OF it_e_t_tcurw ,
it_e_t_tcurx  TYPE STANDARD TABLE OF RSTCURX,"TABLES PARAM
wa_e_t_tcurx  LIKE LINE OF it_e_t_tcurx ,
it_e_t_tcurc  TYPE STANDARD TABLE OF RSTCURC,"TABLES PARAM
wa_e_t_tcurc  LIKE LINE OF it_e_t_tcurc ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD,"TABLES PARAM
wa_control_record  LIKE LINE OF it_control_record .


SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO @DATA(ld_logical_system).


"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.

"populate fields of struture and append to itab
append wa_e_t_tcurf to it_e_t_tcurf.

"populate fields of struture and append to itab
append wa_e_t_tcurs to it_e_t_tcurs.

"populate fields of struture and append to itab
append wa_e_t_tcurt to it_e_t_tcurt.

"populate fields of struture and append to itab
append wa_e_t_tcurv to it_e_t_tcurv.

"populate fields of struture and append to itab
append wa_e_t_tcurw to it_e_t_tcurw.

"populate fields of struture and append to itab
append wa_e_t_tcurx to it_e_t_tcurx.

"populate fields of struture and append to itab
append wa_e_t_tcurc to it_e_t_tcurc.

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

"populate fields of struture and append to itab
append wa_control_record to it_control_record. . CALL FUNCTION 'COMP_CURRENCY_GETTABLES' * EXPORTING * logical_system = ld_logical_system TABLES i_t_langu = it_i_t_langu e_t_tcurf = it_e_t_tcurf e_t_tcurs = it_e_t_tcurs e_t_tcurt = it_e_t_tcurt e_t_tcurv = it_e_t_tcurv e_t_tcurw = it_e_t_tcurw e_t_tcurx = it_e_t_tcurx e_t_tcurc = it_e_t_tcurc return = it_return control_record = it_control_record . " COMP_CURRENCY_GETTABLES
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_logical_system  TYPE BBP_BACKEND_DEST-LOG_SYS ,
it_i_t_langu  TYPE STANDARD TABLE OF RSLANGUSEL ,
wa_i_t_langu  LIKE LINE OF it_i_t_langu,
it_e_t_tcurf  TYPE STANDARD TABLE OF RSTCURF ,
wa_e_t_tcurf  LIKE LINE OF it_e_t_tcurf,
it_e_t_tcurs  TYPE STANDARD TABLE OF RSTCURS ,
wa_e_t_tcurs  LIKE LINE OF it_e_t_tcurs,
it_e_t_tcurt  TYPE STANDARD TABLE OF RSTCURT ,
wa_e_t_tcurt  LIKE LINE OF it_e_t_tcurt,
it_e_t_tcurv  TYPE STANDARD TABLE OF RSTCURV ,
wa_e_t_tcurv  LIKE LINE OF it_e_t_tcurv,
it_e_t_tcurw  TYPE STANDARD TABLE OF RSTCURW ,
wa_e_t_tcurw  LIKE LINE OF it_e_t_tcurw,
it_e_t_tcurx  TYPE STANDARD TABLE OF RSTCURX ,
wa_e_t_tcurx  LIKE LINE OF it_e_t_tcurx,
it_e_t_tcurc  TYPE STANDARD TABLE OF RSTCURC ,
wa_e_t_tcurc  LIKE LINE OF it_e_t_tcurc,
it_return  TYPE STANDARD TABLE OF BAPIRETURN ,
wa_return  LIKE LINE OF it_return,
it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD ,
wa_control_record  LIKE LINE OF it_control_record.


SELECT single LOG_SYS
FROM BBP_BACKEND_DEST
INTO ld_logical_system.


"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.

"populate fields of struture and append to itab
append wa_e_t_tcurf to it_e_t_tcurf.

"populate fields of struture and append to itab
append wa_e_t_tcurs to it_e_t_tcurs.

"populate fields of struture and append to itab
append wa_e_t_tcurt to it_e_t_tcurt.

"populate fields of struture and append to itab
append wa_e_t_tcurv to it_e_t_tcurv.

"populate fields of struture and append to itab
append wa_e_t_tcurw to it_e_t_tcurw.

"populate fields of struture and append to itab
append wa_e_t_tcurx to it_e_t_tcurx.

"populate fields of struture and append to itab
append wa_e_t_tcurc to it_e_t_tcurc.

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

"populate fields of struture and append to itab
append wa_control_record to it_control_record.

SAP Documentation for FM COMP_CURRENCY_GETTABLES


This function module is executed on the component and calls the META function module to get the Currency Tables data from the core system. ...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 COMP_CURRENCY_GETTABLES or its description.