SAP Function Modules

FVD_RFC_COLLATERALS_CREATE SAP Function module - Loan: Create Collaterals







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

Associated Function Group: FVD_RFC_COLLATERALS
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FVD_RFC_COLLATERALS_CREATE - FVD RFC COLLATERALS CREATE





CALL FUNCTION 'FVD_RFC_COLLATERALS_CREATE' "Loan: Create Collaterals
  EXPORTING
    collateraltype =            " bapicoll_policy-collat  Collateral Type
*   policy =                    " bapicoll_policy  Contracts/Credit (Life Ins., Build.Savings Etc) Basic Data
*   loan =                      " bapicoll_loan  Verpfändetes Darlehen gemäß BAV/DV4
*   stock =                     " bapicoll_stock  Collateral in Securities in Accordance with BAV/PRF5
*   userfields =                " bapiloan_userfields  Sort Values for Object
*   testrun = SPACE             " bapiloan_common-testrun  Switch to Simulation Mode for Write BAPIs
*   refresh = SPACE             " bapiloan_common-testrun  Refresh Global Settings In Write BAPIS
*   i_flg_avoid_inner_join = SPACE  " flag      General Flag
  IMPORTING
    collateralid =              " rsicher       Collateral Reference Number
    error =                     " bapiloan_common-error  Error Indicator in BAPIs
  TABLES
*   expirydata =                " bapicoll_expirydata  Ablaufleistung der Lebensversicherung
*   partner =                   " bapirel_bpobj  Assignment of Partner to Contract
*   arrangement =               " bapicoll_arrangement  Special arrangements
    return =                    " bapiret2      Confirmation of Results
    .  "  FVD_RFC_COLLATERALS_CREATE

ABAP code example for Function Module FVD_RFC_COLLATERALS_CREATE





The ABAP code below is a full code listing to execute function module FVD_RFC_COLLATERALS_CREATE 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_collateralid  TYPE RSICHER ,
ld_error  TYPE BAPILOAN_COMMON-ERROR ,
it_expirydata  TYPE STANDARD TABLE OF BAPICOLL_EXPIRYDATA,"TABLES PARAM
wa_expirydata  LIKE LINE OF it_expirydata ,
it_partner  TYPE STANDARD TABLE OF BAPIREL_BPOBJ,"TABLES PARAM
wa_partner  LIKE LINE OF it_partner ,
it_arrangement  TYPE STANDARD TABLE OF BAPICOLL_ARRANGEMENT,"TABLES PARAM
wa_arrangement  LIKE LINE OF it_arrangement ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_collateraltype) = some text here
DATA(ld_policy) = 'Check type of data required'.
DATA(ld_loan) = 'Check type of data required'.
DATA(ld_stock) = 'Check type of data required'.
DATA(ld_userfields) = 'Check type of data required'.

DATA(ld_testrun) = some text here

DATA(ld_refresh) = some text here
DATA(ld_i_flg_avoid_inner_join) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_expirydata to it_expirydata.

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_arrangement to it_arrangement.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'FVD_RFC_COLLATERALS_CREATE' EXPORTING collateraltype = ld_collateraltype * policy = ld_policy * loan = ld_loan * stock = ld_stock * userfields = ld_userfields * testrun = ld_testrun * refresh = ld_refresh * i_flg_avoid_inner_join = ld_i_flg_avoid_inner_join IMPORTING collateralid = ld_collateralid error = ld_error TABLES * expirydata = it_expirydata * partner = it_partner * arrangement = it_arrangement return = it_return . " FVD_RFC_COLLATERALS_CREATE
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_collateralid  TYPE RSICHER ,
ld_collateraltype  TYPE BAPICOLL_POLICY-COLLAT ,
it_expirydata  TYPE STANDARD TABLE OF BAPICOLL_EXPIRYDATA ,
wa_expirydata  LIKE LINE OF it_expirydata,
ld_error  TYPE BAPILOAN_COMMON-ERROR ,
ld_policy  TYPE BAPICOLL_POLICY ,
it_partner  TYPE STANDARD TABLE OF BAPIREL_BPOBJ ,
wa_partner  LIKE LINE OF it_partner,
ld_loan  TYPE BAPICOLL_LOAN ,
it_arrangement  TYPE STANDARD TABLE OF BAPICOLL_ARRANGEMENT ,
wa_arrangement  LIKE LINE OF it_arrangement,
ld_stock  TYPE BAPICOLL_STOCK ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_userfields  TYPE BAPILOAN_USERFIELDS ,
ld_testrun  TYPE BAPILOAN_COMMON-TESTRUN ,
ld_refresh  TYPE BAPILOAN_COMMON-TESTRUN ,
ld_i_flg_avoid_inner_join  TYPE FLAG .


ld_collateraltype = some text here

"populate fields of struture and append to itab
append wa_expirydata to it_expirydata.
ld_policy = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_partner to it_partner.
ld_loan = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_arrangement to it_arrangement.
ld_stock = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.
ld_userfields = 'Check type of data required'.

ld_testrun = some text here

ld_refresh = some text here
ld_i_flg_avoid_inner_join = 'Check type of data required'.

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