Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem adding CustomerEquipmentCards

Hi all,

I'm connecting with two companys, the active in SBO and other in wich I want to copy a customer equipments card.

The conections are ok and tarjeta and tarjeta2 have the correct dates but whene i execute he add method nothing happens.

Have i call another method? i post the simple code. I dont know why dont run correctly.

Dim tarjeta, tarjeta2 As SAPbobsCOM.CustomerEquipmentCards

tarjeta = pcompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCustomerEquipmentCards)

tarjeta2 = pcompany2.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCustomerEquipmentCards)

If tarjeta.GetByKey(14) = True Then

tarjeta2 = tarjeta

tarjeta2.Add()

Else SBO_Application.MessageBoxpcompany2.GetLastErrorDescription())

End If

Regards,

Alfredo Temprano.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question