Function Module to assign contact person to account
is there a standard function module which can be used to create the relationship between existing contact persons to an existing account?
Thank you very much.
The simplest call to that BAPI can be done like this:
CALL FUNCTION 'BAPI_BUPR_CONTP_CREATE'
businesspartner = <partner_number>
contactperson = <contact_person_number>.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
This will connect a business partner with an existing contact person.
You only need to field the other fields if you want to add more details to that relationship, like default relationship setting, telephone number or email, but that only depends of you purposes.