SAP FVWE_PREPARE_FOR_CALC_YIELD Function Module for Selection and Modification of Payments Needed to Calculate Yield









FVWE_PREPARE_FOR_CALC_YIELD is a standard fvwe prepare for calc yield SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection and Modification of Payments Needed to Calculate Yield processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fvwe prepare for calc yield FM, simply by entering the name FVWE_PREPARE_FOR_CALC_YIELD into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVWE
Program Name: SAPLFVWE
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FVWE_PREPARE_FOR_CALC_YIELD pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FVWE_PREPARE_FOR_CALC_YIELD'"Selection and Modification of Payments Needed to Calculate Yield
EXPORTING
I_DENDE = "End of the Period of Examination
I_DSTART = "Start des Betrachtungszeitraums

TABLES
BUKRS_BESTAND = "Bestand je Kennummer im Buchungskreis
BUKRS_DAT = "Information zu Buchungskreis, Depots und WPs
IO_VWBEVI = "Bewegungssätze für betrachtetes Portfolio
WP_DAT = "Informationen zu den betroffenen Wertpapieren

EXCEPTIONS
ERROR_CASH_FLOW_CONSTRUCT = 1 ERROR_MASTER_DATA = 2 NO_MORE_RECORDS_IN_IO_VWBEVI = 3
.



IMPORTING Parameters details for FVWE_PREPARE_FOR_CALC_YIELD

I_DENDE - End of the Period of Examination

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

I_DSTART - Start des Betrachtungszeitraums

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FVWE_PREPARE_FOR_CALC_YIELD

BUKRS_BESTAND - Bestand je Kennummer im Buchungskreis

Data type: REVALD
Optional: No
Call by Reference: No ( called with pass by value option)

BUKRS_DAT - Information zu Buchungskreis, Depots und WPs

Data type: RBUKRSDAT
Optional: No
Call by Reference: No ( called with pass by value option)

IO_VWBEVI - Bewegungssätze für betrachtetes Portfolio

Data type: VWBEVI
Optional: No
Call by Reference: No ( called with pass by value option)

WP_DAT - Informationen zu den betroffenen Wertpapieren

Data type: RWPDAT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_CASH_FLOW_CONSTRUCT - Fehler beim Aufruf des FB CASH_FLOW_CONSTRUCT

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_MASTER_DATA - Fehler in Stammdaten

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_MORE_RECORDS_IN_IO_VWBEVI - Keine Bewegungen mehr in IO_VWBEVI

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FVWE_PREPARE_FOR_CALC_YIELD Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_dende  TYPE SY-DATUM, "   
lt_bukrs_bestand  TYPE STANDARD TABLE OF REVALD, "   
lv_error_cash_flow_construct  TYPE REVALD, "   
lv_i_dstart  TYPE SY-DATUM, "   
lt_bukrs_dat  TYPE STANDARD TABLE OF RBUKRSDAT, "   
lv_error_master_data  TYPE RBUKRSDAT, "   
lt_io_vwbevi  TYPE STANDARD TABLE OF VWBEVI, "   
lv_no_more_records_in_io_vwbevi  TYPE VWBEVI, "   
lt_wp_dat  TYPE STANDARD TABLE OF RWPDAT. "   

  CALL FUNCTION 'FVWE_PREPARE_FOR_CALC_YIELD'  "Selection and Modification of Payments Needed to Calculate Yield
    EXPORTING
         I_DENDE = lv_i_dende
         I_DSTART = lv_i_dstart
    TABLES
         BUKRS_BESTAND = lt_bukrs_bestand
         BUKRS_DAT = lt_bukrs_dat
         IO_VWBEVI = lt_io_vwbevi
         WP_DAT = lt_wp_dat
    EXCEPTIONS
        ERROR_CASH_FLOW_CONSTRUCT = 1
        ERROR_MASTER_DATA = 2
        NO_MORE_RECORDS_IN_IO_VWBEVI = 3
. " FVWE_PREPARE_FOR_CALC_YIELD




ABAP code using 7.40 inline data declarations to call FM FVWE_PREPARE_FOR_CALC_YIELD

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single DATUM FROM SY INTO @DATA(ld_i_dende).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_dstart).
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!