SAP Function Modules

FC_EURO_ITEM_TW_CNV_CHECK SAP Function module







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

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


Pattern for FM FC_EURO_ITEM_TW_CNV_CHECK - FC EURO ITEM TW CNV CHECK





CALL FUNCTION 'FC_EURO_ITEM_TW_CNV_CHECK' "
* EXPORTING
*   e_dimen =                   " ecmct-rdimen
*   e_bunit =                   " ecmct-rbunit
*   e_ryear =                   " ecmct-ryear
*   e_rldnr =                   " ecmct-rldnr
*   e_ritclg =                  " ecmct-ritclg
*   e_ritem =                   " ecmct-ritem
*   e_rvers =                   " ecmct-rvers
*   e_plevl =                   " ecmct-plevl
*   e_docty =                   " ecmct-docty
*   e_hw_cukey =                " tcurc-waers
*   e_kw_cukey =                " tcurc-waers
  IMPORTING
    i_flg_convert =             "
  EXCEPTIONS
    EXC_FAILURE = 1             "
    .  "  FC_EURO_ITEM_TW_CNV_CHECK

ABAP code example for Function Module FC_EURO_ITEM_TW_CNV_CHECK





The ABAP code below is a full code listing to execute function module FC_EURO_ITEM_TW_CNV_CHECK 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_i_flg_convert  TYPE STRING .


SELECT single RDIMEN
FROM ECMCT
INTO @DATA(ld_e_dimen).


SELECT single RBUNIT
FROM ECMCT
INTO @DATA(ld_e_bunit).


SELECT single RYEAR
FROM ECMCT
INTO @DATA(ld_e_ryear).


SELECT single RLDNR
FROM ECMCT
INTO @DATA(ld_e_rldnr).


SELECT single RITCLG
FROM ECMCT
INTO @DATA(ld_e_ritclg).


SELECT single RITEM
FROM ECMCT
INTO @DATA(ld_e_ritem).


SELECT single RVERS
FROM ECMCT
INTO @DATA(ld_e_rvers).


SELECT single PLEVL
FROM ECMCT
INTO @DATA(ld_e_plevl).


SELECT single DOCTY
FROM ECMCT
INTO @DATA(ld_e_docty).


SELECT single WAERS
FROM TCURC
INTO @DATA(ld_e_hw_cukey).


SELECT single WAERS
FROM TCURC
INTO @DATA(ld_e_kw_cukey).
. CALL FUNCTION 'FC_EURO_ITEM_TW_CNV_CHECK' * EXPORTING * e_dimen = ld_e_dimen * e_bunit = ld_e_bunit * e_ryear = ld_e_ryear * e_rldnr = ld_e_rldnr * e_ritclg = ld_e_ritclg * e_ritem = ld_e_ritem * e_rvers = ld_e_rvers * e_plevl = ld_e_plevl * e_docty = ld_e_docty * e_hw_cukey = ld_e_hw_cukey * e_kw_cukey = ld_e_kw_cukey IMPORTING i_flg_convert = ld_i_flg_convert EXCEPTIONS EXC_FAILURE = 1 . " FC_EURO_ITEM_TW_CNV_CHECK
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_i_flg_convert  TYPE STRING ,
ld_e_dimen  TYPE ECMCT-RDIMEN ,
ld_e_bunit  TYPE ECMCT-RBUNIT ,
ld_e_ryear  TYPE ECMCT-RYEAR ,
ld_e_rldnr  TYPE ECMCT-RLDNR ,
ld_e_ritclg  TYPE ECMCT-RITCLG ,
ld_e_ritem  TYPE ECMCT-RITEM ,
ld_e_rvers  TYPE ECMCT-RVERS ,
ld_e_plevl  TYPE ECMCT-PLEVL ,
ld_e_docty  TYPE ECMCT-DOCTY ,
ld_e_hw_cukey  TYPE TCURC-WAERS ,
ld_e_kw_cukey  TYPE TCURC-WAERS .


SELECT single RDIMEN
FROM ECMCT
INTO ld_e_dimen.


SELECT single RBUNIT
FROM ECMCT
INTO ld_e_bunit.


SELECT single RYEAR
FROM ECMCT
INTO ld_e_ryear.


SELECT single RLDNR
FROM ECMCT
INTO ld_e_rldnr.


SELECT single RITCLG
FROM ECMCT
INTO ld_e_ritclg.


SELECT single RITEM
FROM ECMCT
INTO ld_e_ritem.


SELECT single RVERS
FROM ECMCT
INTO ld_e_rvers.


SELECT single PLEVL
FROM ECMCT
INTO ld_e_plevl.


SELECT single DOCTY
FROM ECMCT
INTO ld_e_docty.


SELECT single WAERS
FROM TCURC
INTO ld_e_hw_cukey.


SELECT single WAERS
FROM TCURC
INTO ld_e_kw_cukey.

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