SAP FVD_COLLATERALS_DIALOG_MAIN Function Module for Loan: Collateral - Dialog
FVD_COLLATERALS_DIALOG_MAIN is a standard fvd collaterals dialog main SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Loan: Collateral - Dialog 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 fvd collaterals dialog main FM, simply by entering the name FVD_COLLATERALS_DIALOG_MAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_COLLATERALS
Program Name: SAPLFVD_COLLATERALS
Main Program: SAPLFVD_COLLATERALS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_COLLATERALS_DIALOG_MAIN 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 'FVD_COLLATERALS_DIALOG_MAIN'"Loan: Collateral - Dialog.
EXPORTING
I_ACTION = "'I' = Insert, 'U' = Update, 'S' = Show
I_RSICHER = "Collateral reference number
* I_INT_RSICHER = "Interne Referenznummer der Sicherheit
I_SSICH = "Collateral Type
I_SSICHART = "Category Of Collateral Group (Internal)
* I_WAEHRUNG = "Currency Key
* I_FLG_COMMIT = 'X' "'X' = Commit wird vom Baustein ausgeführt
* I_WRK_VDARL = "Loans
IMPORTING
E_ACTION = "'I' = Insert, 'U' = Update, 'S' = Show
E_RSICHER = "Collateral reference number
E_INT_RSICHER = "Interne Referenznummer der Sicherheit
E_ZEICHEN1 = "File Number
E_ZEILE1 = "Collateral additional text/description
E_BETRAG = "Policy Amount
E_WAEHRUNG = "Currency Key
E_FLG_CHANGE_PARTNER = "'X' = Änderungen an einem Geschäftspartner erfolgt
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for FVD_COLLATERALS_DIALOG_MAIN
I_ACTION - 'I' = Insert, 'U' = Update, 'S' = Show
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_RSICHER - Collateral reference number
Data type: RSICHEROptional: No
Call by Reference: No ( called with pass by value option)
I_INT_RSICHER - Interne Referenznummer der Sicherheit
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SSICH - Collateral Type
Data type: SSICHOptional: No
Call by Reference: No ( called with pass by value option)
I_SSICHART - Category Of Collateral Group (Internal)
Data type: SSICHARTOptional: No
Call by Reference: No ( called with pass by value option)
I_WAEHRUNG - Currency Key
Data type: WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_COMMIT - 'X' = Commit wird vom Baustein ausgeführt
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WRK_VDARL - Loans
Data type: VDARLOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_COLLATERALS_DIALOG_MAIN
E_ACTION - 'I' = Insert, 'U' = Update, 'S' = Show
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_RSICHER - Collateral reference number
Data type: RSICHEROptional: No
Call by Reference: No ( called with pass by value option)
E_INT_RSICHER - Interne Referenznummer der Sicherheit
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
E_ZEICHEN1 - File Number
Data type: XAKTOptional: No
Call by Reference: No ( called with pass by value option)
E_ZEILE1 - Collateral additional text/description
Data type: XZUTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_BETRAG - Policy Amount
Data type: BVERTRAGOptional: No
Call by Reference: No ( called with pass by value option)
E_WAEHRUNG - Currency Key
Data type: WAERSOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_CHANGE_PARTNER - 'X' = Änderungen an einem Geschäftspartner erfolgt
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_COLLATERALS_DIALOG_MAIN 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_error | TYPE STRING, " | |||
| lv_e_action | TYPE C, " | |||
| lv_i_action | TYPE C, " | |||
| lv_e_rsicher | TYPE RSICHER, " | |||
| lv_i_rsicher | TYPE RSICHER, " | |||
| lv_e_int_rsicher | TYPE I, " | |||
| lv_i_int_rsicher | TYPE I, " | |||
| lv_i_ssich | TYPE SSICH, " | |||
| lv_e_zeichen1 | TYPE XAKT, " | |||
| lv_e_zeile1 | TYPE XZUTXT, " | |||
| lv_i_ssichart | TYPE SSICHART, " | |||
| lv_e_betrag | TYPE BVERTRAG, " | |||
| lv_i_waehrung | TYPE WAERS, " | |||
| lv_e_waehrung | TYPE WAERS, " | |||
| lv_i_flg_commit | TYPE C, " 'X' | |||
| lv_i_wrk_vdarl | TYPE VDARL, " | |||
| lv_e_flg_change_partner | TYPE C. " |
|   CALL FUNCTION 'FVD_COLLATERALS_DIALOG_MAIN' "Loan: Collateral - Dialog |
| EXPORTING | ||
| I_ACTION | = lv_i_action | |
| I_RSICHER | = lv_i_rsicher | |
| I_INT_RSICHER | = lv_i_int_rsicher | |
| I_SSICH | = lv_i_ssich | |
| I_SSICHART | = lv_i_ssichart | |
| I_WAEHRUNG | = lv_i_waehrung | |
| I_FLG_COMMIT | = lv_i_flg_commit | |
| I_WRK_VDARL | = lv_i_wrk_vdarl | |
| IMPORTING | ||
| E_ACTION | = lv_e_action | |
| E_RSICHER | = lv_e_rsicher | |
| E_INT_RSICHER | = lv_e_int_rsicher | |
| E_ZEICHEN1 | = lv_e_zeichen1 | |
| E_ZEILE1 | = lv_e_zeile1 | |
| E_BETRAG | = lv_e_betrag | |
| E_WAEHRUNG | = lv_e_waehrung | |
| E_FLG_CHANGE_PARTNER | = lv_e_flg_change_partner | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " FVD_COLLATERALS_DIALOG_MAIN | ||
ABAP code using 7.40 inline data declarations to call FM FVD_COLLATERALS_DIALOG_MAIN
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.| DATA(ld_i_flg_commit) | = 'X'. | |||
Search for further information about these or an SAP related objects