I have a problem when creating sales orders with a contact as a partner.
Filling the internal table of Partners, I assign CP (Contact) and Contact number which is comming from table KNVK.
When calling the bapi, the sales order is created with the contact but not the Contact assigned by me. At the end, the contact is taken, by the bapi, from the sold-to. In case of the sold-to doesn't have any contact created, no contact partner is created.
Of course, the contact number assigned via program and the contact number of sold-to are differents.
I don't know why SAP decides to take the contact from sold-to instead of taking the data provied by the program.
Please, i need you help.
Thanks in advance