cancel
Showing results for 
Search instead for 
Did you mean: 

KNVV table not getting updated for Custom fields in BP transaction in S/4 HANA

0 Kudos

Hello All,

We have a requirement to 3 custom fields to Customer Sales Area(KNVV) in BP transaction. We are using BDT to do this.

We are using the event ‘XCHNG’ (which is triggered to check whether Data Has Been Changed) and the event ‘DSAVE’ (which is triggered to Save Data in Database (from Local Memory)). But we are not able to see the data stored in KNVV for these 3 fields.

We are using below code in DSAVE

lv_cust = cvi_bdt_adapter=>get_current_customer( ).

lcl_so_sa ?= fsbp_segment_factory=>get_instance(
i_partner = lv_business_partner
i_name = if_cvi_const_xo_objects_cust=>so_sales
).

lv_sales_area = cvi_bdt_adapter=>get_current_sales_area( ).

cvi_bdt_adapter=>get_current_bp_sales_data(
EXPORTING
i_table_name = table_name_knvv
IMPORTING
e_data_table = lt_knvv[]
).

cvi_bdt_adapter=>data_collect(
i_table_name = 'KNVV'
i_subname = 'ZVKNVV'
i_data = lt_knvv "i_data
).

We are getting the updated values in lt_KNVV table but they are not getting saved in KNVV.

We tried to use FM - CVIC_BUPA_KNVV_COLLECT but not getting the desired result.

Can you please let us know where we are doing wrong in this case?

Accepted Solutions (0)

Answers (0)