Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

4 REPLIES 4

0 Kudos

Not answered

Former Member
0 Kudos

Hi Sivakumar,

Have you find a solution to your problem?

If it's the case could you explain it?

Regards

0 Kudos

Hello Naomi Meta Tshibanda,

Unfortunately i have not found a solution for this problem . So i went for FNVM BDC.

Later on the requirement changed to transaction FN8X transaction . If you want i can share you the code to replicate FN8X transaction .

Thanks,

Siva

0 Kudos

Hi Siva,

I also went for BDC, so it's okay.

Thank you,

Naomi