cancel
Showing results for 
Search instead for 
Did you mean: 

Method CMD_EI_API MAINTAIN_BAPI fails on missing KNVK-NAME1

Former Member
0 Kudos

Hi experts. I'm trying to create a new contact for a customer using CMD_EI_API method MAINTAIN_BAPI and I'm getting a message saying "KNVK-NAME1: Plausibility check failed". I've set up the structure and tables reference with type cmds_ei_extern. The mapping within the method finds my values and maps correctly to the internal address structure (using ADDRESS_TYPE_1). I've also tried using ADDRESS_TYPE_2 and ADDRESS_TYPE_3 with the same results. The error occurs when checking the new KNVK record in method STRUC_KNVK_PLAUSIBILITY_CHECK and I suspect that I'm missing some required data that is preventing the record from be created correctly. Any ideas.

...thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

At first, for the contact you should maintain ADDRESS_TYPE_3 structure.

Lastname is mandatory.

This should solves your trouble

As a general help for filling that complex structure, you could run method GET_DATA of class CMD_EI_API_EXTRACT for an existing customer.

Regards

Alain

Former Member
0 Kudos

Hi,

The problem with this field arises because the structure of

CONTACT is not filled ADDRESS_TYPE_1 structure. Are filled

ADDRESS_TYPE_2 and ADDRESS_TYPE_3 structures. In the first place the

address data and the second placed personal data and the

sex contact, the above as required data.

Regards,

Johnny