Skip to Content
0

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

May 07 at 01:12 PM

100

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers