Skip to Content
0
Former Member
May 11, 2012 at 03:21 PM

Dump when trying to update customer contact with class CMD_EI_API

376 Views

Hello,

I have a program that uses method CMD_EI_API=>MAINTAIN to update customer's data (vd02) and it works fine.

I tried to initialize import parameter:

is_master_data-customers-central_data-contact-contacts-address_type_3

fields:

BAPIAD3VL FIRSTNAME

BAPIAD3VL LANGUCPISO

BAPIAD3VL LANGU_CR_P

BAPIAD3VL LASTNAME

BAPIAD3VL NAMCOUNTRY

BAPIAD3VL TITLE_P

in order to manage the contact tab.

But it seems that the list of field is not complete.

I have a dump in case of updating several customers at the same time.

Function module CVI_FLUSH_BP_CUST_ASSIGNMENTS:

delete:
cvi_cust_ct_link from table it_ct_assignments_del.
insert:
cvi_cust_link from table it_assignments_new,
cvi_cust_ct_link from table it_ct_assignments_new.


error SAPSQL_ARRAY_INSERT_DUPREC

Any idea ?