cancel
Showing results for 
Search instead for 
Did you mean: 

BP CONTACT

Former Member
0 Kudos

Hi,

How can I update the Contact information for EXISTING Business Partner through SDK.

Please Help me..

Thanks in Advance

Jeevan

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavank_gajjar
Active Contributor
0 Kudos

Jeevan

Can you elaborate more on your requirement?

what exactly you want to be do?

Regards,

Bhavank

Former Member
0 Kudos

Hi

Thanks Bhavank . We have created BP masters already. But Now I need to update their Contact person information through SDK. How can I do this... please help me on this

Thanks in advace

Jeevan

former_member209699
Contributor
0 Kudos

Hi,

Try with this..

oBP = objMain.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)

oBP.GetByKey(BPCODE)

oBP.ContactPerson = "ABCD"

oBP.Update()

regards:

Sandy

Former Member
0 Kudos

Hi,

Thanks sandy. I tried that also. but it is replacing the existing contact person information. It means some times one BP has one contact person information. But I am tring to add one more record. But its not happening... Instead of adding one more contact its replacing the existing record. This is my code

OBP.CardCode = Convert.ToString(Trim(ConGrid.DataTable.GetValue(1, K)))

OBP.ContactPerson = Convert.ToString(Trim(ConGrid.DataTable.GetValue(2, K)))

OBP.ContactEmployees.Name = Convert.ToString(Trim(ConGrid.DataTable.GetValue(2, K)))

OBP.ContactEmployees.Position = Convert.ToString(Trim(ConGrid.DataTable.GetValue(3, K)))

OBP.ContactEmployees.Add()

RetCod = OBP.Update

Thanks in advance

Jeevan.