Skip to Content

Add Personal Address record to Contact in Account thru SAP Cloud Application Studio

Feb 28 at 02:35 PM


avatar image

After successfully creating an account (customer) in C4C, User later will create a contact for that account. For that, user will provide contact details like first name, last name , email, etc., and Press SAVE to create a contact. Once user presses the “SAVE “ button, the following 2 activities should be created at a time.

1.Create a new contact for that account, and

2.Automatically add personal address record to that contact as a Main (tick checkbox) during creating of contact, that address details should pull from personal address of the Account.

Here, I can pull the address data from the Account in PDI, but I don't find any path/association or any, available for the contact in SDK to add that address record to personal address of the contact thru SDK during creating of the contact from account. Please help me to add personal address to the CONTACT from PDI.

Regards, chandra

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Lewis Peters Mar 05 at 10:15 AM


The various address fields of the account are in Customer.AddressSnapshot.PostalAddressSuitableForLogonLanguage. The contact is the same, as they're both examples of business partners. You should have no trouble copying from one to the other.


10 |10000 characters needed characters left characters exceeded
Chandra Gajula Mar 08 at 06:41 AM

Thanks Lewis.

Here, I am unable to pull the address data from account to contact because of both the applications refers same business object (Business Partner).

I extended standard Business Partner BO, and added Before_save event in the ROOT. I could see the in the debugging, there are 2 times this event will call while creating a contact from account (account->contact tab->New). First time I could see the account related data, and second time I could see contact related data. Here BO is same for both, hence while second time call, first time (account) data will be overwriten, and I could not see the account data (even no internal ID) during second time (contact) call of this event.

Is there any suggestion to get account details while creating a contact (second time call)?

Please request you to read again, if not clear. or let me know I will share the snap.



10 |10000 characters needed characters left characters exceeded