Skip to Content
0
Oct 11, 2010 at 07:47 AM

FNVM Need to read/insert/update conditions to Loan Contract

290 Views

Hello All,

I have a requirement to read/insert/update conditions in Loan contract FNVM . I tried to use class

CL_FVD_LOAN_CONDITION_SERVICES

for reading conditions based on company code and loan number .

Also i need to insert/update conditions to that contract number .But i am getting a FATAL error in the following

subroutine

PERFORM check_fatal_error USING    i_ref_log->log_handle
                            CHANGING l_flg_error.

in FM

FVD_LOCAC_OL_INITIALIZE .

The source code whic i used to read condition records for loan contract is as follows.

DATA: log TYPE REF TO cl_fvd_log,
      loan TYPE REF TO cl_fvd_loan_condition_services.

START-OF-SELECTION.
***
  CREATE OBJECT log
*  EXPORTING
*    im_object =
*    im_subobject =
*    im_extnumber =
*    im_log_handle =
      .

 CREATE OBJECT loan
    EXPORTING
      im_application_log = log.
  DATA  ex_tab_condition_data TYPE STANDARD TABLE OF rcondition_services_data.
  DATA ex_tab_vvzzkopo TYPE trty_vvzzkopo.
  data ex_error TYPE TB_FW_ERROR.
  CALL METHOD loan->read
    EXPORTING
      im_company_code       = '3600'
      im_contract_no        = '0000040000002'
*    im_lock               =
*    im_condition_type     =
      im_application_log    = log
  IMPORTING
    ex_tab_condition_data =  ex_tab_condition_data
    ex_tab_vvzzkopo       = ex_tab_vvzzkopo
    ex_error              = ex_error
*    ex_lock_failed        =
      .

Kindly guide me on this.

Thanks & Regards,

S.Sivakumar