SAP Function Modules

FWEV_VALUATION_SEC SAP Function module







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

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


Pattern for FM FWEV_VALUATION_SEC - FWEV VALUATION SEC





CALL FUNCTION 'FWEV_VALUATION_SEC' "
  EXPORTING
    it_reval =                  " trpm_it_reval_corp
    it_bewgrp =                 " trpm_it_bewgrp
    i_kursart =                 " atras-skursart
*   i_stichtag = SY-DATUM       " sy-datum
*   i_kursber = SPACE           " tzbz-rkursber
*   i_srevprc = SPACE           " tzrpr-srevprc
*   i_flag_kosten_voll = SPACE  " c
*   i_flag_wertaufholung = SPACE  " c
*   it_sprot =                  " trpm_it_protokoll
*   i_kursdatum_genau = SPACE   " c
*   i_kursart_genau = SPACE     " c
*   i_devkursdatum_genau = SPACE  " c
*   i_ign_inconsistency = SPACE  " c
  IMPORTING
    e_result =                  " trpm_it_position_val
    e_sprot =                   " trpm_it_protokoll
    .  "  FWEV_VALUATION_SEC

ABAP code example for Function Module FWEV_VALUATION_SEC





The ABAP code below is a full code listing to execute function module FWEV_VALUATION_SEC 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_result  TYPE TRPM_IT_POSITION_VAL ,
ld_e_sprot  TYPE TRPM_IT_PROTOKOLL .

DATA(ld_it_reval) = 'Check type of data required'.
DATA(ld_it_bewgrp) = 'Check type of data required'.

SELECT single SKURSART
FROM ATRAS
INTO @DATA(ld_i_kursart).

DATA(ld_i_stichtag) = '20210129'.

SELECT single RKURSBER
FROM TZBZ
INTO @DATA(ld_i_kursber).


SELECT single SREVPRC
FROM TZRPR
INTO @DATA(ld_i_srevprc).

DATA(ld_i_flag_kosten_voll) = '20210129'.
DATA(ld_i_flag_wertaufholung) = '20210129'.
DATA(ld_it_sprot) = '20210129'.
DATA(ld_i_kursdatum_genau) = '20210129'.
DATA(ld_i_kursart_genau) = '20210129'.
DATA(ld_i_devkursdatum_genau) = '20210129'.
DATA(ld_i_ign_inconsistency) = '20210129'. . CALL FUNCTION 'FWEV_VALUATION_SEC' EXPORTING it_reval = ld_it_reval it_bewgrp = ld_it_bewgrp i_kursart = ld_i_kursart * i_stichtag = ld_i_stichtag * i_kursber = ld_i_kursber * i_srevprc = ld_i_srevprc * i_flag_kosten_voll = ld_i_flag_kosten_voll * i_flag_wertaufholung = ld_i_flag_wertaufholung * it_sprot = ld_it_sprot * i_kursdatum_genau = ld_i_kursdatum_genau * i_kursart_genau = ld_i_kursart_genau * i_devkursdatum_genau = ld_i_devkursdatum_genau * i_ign_inconsistency = ld_i_ign_inconsistency IMPORTING e_result = ld_e_result e_sprot = ld_e_sprot . " FWEV_VALUATION_SEC
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_result  TYPE TRPM_IT_POSITION_VAL ,
ld_it_reval  TYPE TRPM_IT_REVAL_CORP ,
ld_e_sprot  TYPE TRPM_IT_PROTOKOLL ,
ld_it_bewgrp  TYPE TRPM_IT_BEWGRP ,
ld_i_kursart  TYPE ATRAS-SKURSART ,
ld_i_stichtag  TYPE SY-DATUM ,
ld_i_kursber  TYPE TZBZ-RKURSBER ,
ld_i_srevprc  TYPE TZRPR-SREVPRC ,
ld_i_flag_kosten_voll  TYPE C ,
ld_i_flag_wertaufholung  TYPE C ,
ld_it_sprot  TYPE TRPM_IT_PROTOKOLL ,
ld_i_kursdatum_genau  TYPE C ,
ld_i_kursart_genau  TYPE C ,
ld_i_devkursdatum_genau  TYPE C ,
ld_i_ign_inconsistency  TYPE C .

ld_it_reval = '20210129'.
ld_it_bewgrp = '20210129'.

SELECT single SKURSART
FROM ATRAS
INTO ld_i_kursart.

ld_i_stichtag = '20210129'.

SELECT single RKURSBER
FROM TZBZ
INTO ld_i_kursber.


SELECT single SREVPRC
FROM TZRPR
INTO ld_i_srevprc.

ld_i_flag_kosten_voll = '20210129'.
ld_i_flag_wertaufholung = '20210129'.
ld_it_sprot = '20210129'.
ld_i_kursdatum_genau = '20210129'.
ld_i_kursart_genau = '20210129'.
ld_i_devkursdatum_genau = '20210129'.
ld_i_ign_inconsistency = '20210129'.

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