gkaindia.com

Home > > Function Module to assign contact person to account

Function Module to assign contact person to account

Advertisement
Hello,
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.
Kind regards
Manfred
Advertisement
Hi Manfred,
The simplest call to that BAPI can be done like this:
CALL FUNCTION 'BAPI_BUPR_CONTP_CREATE'
  EXPORTING
    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.
Kind regards,
Garcia
Read the other 7 answers