cancel
Showing results for 
Search instead for 
Did you mean: 

Internal error -2012 when update OHEM

former_member933888
Active Participant
0 Kudos
128

Dear Experts,

I received this message when trying to update OHEM table (middle name field).

Internal error -2012

Anyone know how to solve this?

Thanks in advance.

nd.Q

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Andy,

     Can you post your codes?

Regards,

former_member933888
Active Participant
0 Kudos

Hi Bryan,

Something like this. simple one.

  

Dim oOHEM As SAPbobsCOM.EmployeesInfo

oOHEM = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oEmployeesInfo)

        oOHEM.GetByKey(12)

        oOHEM.MiddleName = "my middle name"

oOHEM.Update()

nd.Q

former_member933888
Active Participant
0 Kudos

Database is 8.82 PL9

DIAPI 8.8

Johan_Hakkesteegt
Active Contributor
0 Kudos

Hi Andy,

How are you updating OHEM ?

Regards,

Johan