SAP FVW6_GET_REDEMPTION Function Module for Get Actual Redemption for Security, Set and Date
FVW6_GET_REDEMPTION is a standard fvw6 get redemption SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Actual Redemption for Security, Set and Date 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 fvw6 get redemption FM, simply by entering the name FVW6_GET_REDEMPTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW6
Program Name: SAPLFVW6
Main Program: SAPLFVW6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVW6_GET_REDEMPTION 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 'FVW6_GET_REDEMPTION'"Get Actual Redemption for Security, Set and Date.
EXPORTING
IM_SECURITY_NUMBER = "ID number of reference security of an executable right
IM_VALUE_DATE = "Key date for exercising rights
IM_SECURITY_SET_NAME = "Name of the Redemption Set
IMPORTING
EX_REDEMPTION = "Data for Redemption in Table Control
EXCEPTIONS
ACTIVE_SET_NOT_ON_SECURITY = 1 NO_VALID_DUE_DATE_FOUND = 2 NO_VALID_PERIOD_FOUND = 3 EXC_NO_VALID_SCHEDULE_FOUND = 4
IMPORTING Parameters details for FVW6_GET_REDEMPTION
IM_SECURITY_NUMBER - ID number of reference security of an executable right
Data type: TER_RANLOptional: No
Call by Reference: Yes
IM_VALUE_DATE - Key date for exercising rights
Data type: TER_SDATUMOptional: No
Call by Reference: Yes
IM_SECURITY_SET_NAME - Name of the Redemption Set
Data type: RDPT_SET_NAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FVW6_GET_REDEMPTION
EX_REDEMPTION - Data for Redemption in Table Control
Data type: RDPT_IO_REDEMPTIONOptional: No
Call by Reference: Yes
EXCEPTIONS details
ACTIVE_SET_NOT_ON_SECURITY - Norm. caused by blank active set on security
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_DUE_DATE_FOUND - No repayment in schedule after execution date
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_PERIOD_FOUND - No valid period found (publication to repayment date)
Data type:Optional: No
Call by Reference: Yes
EXC_NO_VALID_SCHEDULE_FOUND - Kein gültiger Tilgungsplan gefunden
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVW6_GET_REDEMPTION 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_ex_redemption | TYPE RDPT_IO_REDEMPTION, " | |||
| lv_im_security_number | TYPE TER_RANL, " | |||
| lv_active_set_not_on_security | TYPE TER_RANL, " | |||
| lv_im_value_date | TYPE TER_SDATUM, " | |||
| lv_no_valid_due_date_found | TYPE TER_SDATUM, " | |||
| lv_im_security_set_name | TYPE RDPT_SET_NAME, " | |||
| lv_no_valid_period_found | TYPE RDPT_SET_NAME, " | |||
| lv_exc_no_valid_schedule_found | TYPE RDPT_SET_NAME. " |
|   CALL FUNCTION 'FVW6_GET_REDEMPTION' "Get Actual Redemption for Security, Set and Date |
| EXPORTING | ||
| IM_SECURITY_NUMBER | = lv_im_security_number | |
| IM_VALUE_DATE | = lv_im_value_date | |
| IM_SECURITY_SET_NAME | = lv_im_security_set_name | |
| IMPORTING | ||
| EX_REDEMPTION | = lv_ex_redemption | |
| EXCEPTIONS | ||
| ACTIVE_SET_NOT_ON_SECURITY = 1 | ||
| NO_VALID_DUE_DATE_FOUND = 2 | ||
| NO_VALID_PERIOD_FOUND = 3 | ||
| EXC_NO_VALID_SCHEDULE_FOUND = 4 | ||
| . " FVW6_GET_REDEMPTION | ||
ABAP code using 7.40 inline data declarations to call FM FVW6_GET_REDEMPTION
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.Search for further information about these or an SAP related objects