SAP FVD_RFC_COLLATERALS_CREATE Function Module for Loan: Create Collaterals









FVD_RFC_COLLATERALS_CREATE is a standard fvd rfc collaterals create 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: Create Collaterals 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 rfc collaterals create FM, simply by entering the name FVD_RFC_COLLATERALS_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVD_RFC_COLLATERALS
Program Name: SAPLFVD_RFC_COLLATERALS
Main Program: SAPLFVD_RFC_COLLATERALS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FVD_RFC_COLLATERALS_CREATE 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_RFC_COLLATERALS_CREATE'"Loan: Create Collaterals
EXPORTING
COLLATERALTYPE = "Collateral Type
* POLICY = "Contracts/Credit (Life Ins., Build.Savings Etc) Basic Data
* LOAN = "Verpfändetes Darlehen gemäß BAV/DV4
* STOCK = "Collateral in Securities in Accordance with BAV/PRF5
* USERFIELDS = "Sort Values for Object
* TESTRUN = ' ' "Switch to Simulation Mode for Write BAPIs
* REFRESH = ' ' "Refresh Global Settings In Write BAPIS
* I_FLG_AVOID_INNER_JOIN = ' ' "General Flag

IMPORTING
COLLATERALID = "Collateral Reference Number
ERROR = "Error Indicator in BAPIs

TABLES
* EXPIRYDATA = "Ablaufleistung der Lebensversicherung
* PARTNER = "Assignment of Partner to Contract
* ARRANGEMENT = "Special arrangements
RETURN = "Confirmation of Results
.



IMPORTING Parameters details for FVD_RFC_COLLATERALS_CREATE

COLLATERALTYPE - Collateral Type

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

POLICY - Contracts/Credit (Life Ins., Build.Savings Etc) Basic Data

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

LOAN - Verpfändetes Darlehen gemäß BAV/DV4

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

STOCK - Collateral in Securities in Accordance with BAV/PRF5

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

USERFIELDS - Sort Values for Object

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

TESTRUN - Switch to Simulation Mode for Write BAPIs

Data type: BAPILOAN_COMMON-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

REFRESH - Refresh Global Settings In Write BAPIS

Data type: BAPILOAN_COMMON-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_AVOID_INNER_JOIN - General Flag

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FVD_RFC_COLLATERALS_CREATE

COLLATERALID - Collateral Reference Number

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

ERROR - Error Indicator in BAPIs

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

TABLES Parameters details for FVD_RFC_COLLATERALS_CREATE

EXPIRYDATA - Ablaufleistung der Lebensversicherung

Data type: BAPICOLL_EXPIRYDATA
Optional: Yes
Call by Reference: Yes

PARTNER - Assignment of Partner to Contract

Data type: BAPIREL_BPOBJ
Optional: Yes
Call by Reference: Yes

ARRANGEMENT - Special arrangements

Data type: BAPICOLL_ARRANGEMENT
Optional: Yes
Call by Reference: Yes

RETURN - Confirmation of Results

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FVD_RFC_COLLATERALS_CREATE 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:
lt_expirydata  TYPE STANDARD TABLE OF BAPICOLL_EXPIRYDATA, "   
lv_collateralid  TYPE RSICHER, "   
lv_collateraltype  TYPE BAPICOLL_POLICY-COLLAT, "   
lv_error  TYPE BAPILOAN_COMMON-ERROR, "   
lv_policy  TYPE BAPICOLL_POLICY, "   
lt_partner  TYPE STANDARD TABLE OF BAPIREL_BPOBJ, "   
lv_loan  TYPE BAPICOLL_LOAN, "   
lt_arrangement  TYPE STANDARD TABLE OF BAPICOLL_ARRANGEMENT, "   
lv_stock  TYPE BAPICOLL_STOCK, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_userfields  TYPE BAPILOAN_USERFIELDS, "   
lv_testrun  TYPE BAPILOAN_COMMON-TESTRUN, "   SPACE
lv_refresh  TYPE BAPILOAN_COMMON-TESTRUN, "   SPACE
lv_i_flg_avoid_inner_join  TYPE FLAG. "   SPACE

  CALL FUNCTION 'FVD_RFC_COLLATERALS_CREATE'  "Loan: Create Collaterals
    EXPORTING
         COLLATERALTYPE = lv_collateraltype
         POLICY = lv_policy
         LOAN = lv_loan
         STOCK = lv_stock
         USERFIELDS = lv_userfields
         TESTRUN = lv_testrun
         REFRESH = lv_refresh
         I_FLG_AVOID_INNER_JOIN = lv_i_flg_avoid_inner_join
    IMPORTING
         COLLATERALID = lv_collateralid
         ERROR = lv_error
    TABLES
         EXPIRYDATA = lt_expirydata
         PARTNER = lt_partner
         ARRANGEMENT = lt_arrangement
         RETURN = lt_return
. " FVD_RFC_COLLATERALS_CREATE




ABAP code using 7.40 inline data declarations to call FM FVD_RFC_COLLATERALS_CREATE

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 COLLAT FROM BAPICOLL_POLICY INTO @DATA(ld_collateraltype).
 
"SELECT single ERROR FROM BAPILOAN_COMMON INTO @DATA(ld_error).
 
 
 
 
 
 
 
 
"SELECT single TESTRUN FROM BAPILOAN_COMMON INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
"SELECT single TESTRUN FROM BAPILOAN_COMMON INTO @DATA(ld_refresh).
DATA(ld_refresh) = ' '.
 
DATA(ld_i_flg_avoid_inner_join) = ' '.
 


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!