cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving Unable to open equipment error message. HELP on why this is...

0 Kudos

equip = Me.conn.GetSAPObject("Equipment", equipNumb)

Me.Eq_Num = equip.Equipment

getGenDet = Me.conn.DimAs(equip, "GetDetail1", "DataGeneralExp")

retVals = Me.conn.DimAs(equip, "GetDetail1", "Return")

equip.GetDetail1(DataGeneralExp:=getGenDet, Return:=retVals)

MsgBox(retVals.value("MESSAGE"))

MsgBox(retVals.value("FIELD"))

MsgBox(getGenDet.value("DESCRIPT"))

Code above goes though ok but returned message shows error and required values return blank.

Connection to persistant equipment using GETSAPObject works fine. I can then query the equipment number using the . method and display it using msgbox.

I now want to retrieve the get details data values. the above code returned blanks. When I query the returned errors the message is Unable to read equipemnt 10011823. I have confirmed that I can open this within the client directly and can read the equipment number. Unfortunately this Getdetail1 function now seems to generate an access error.

I have checked in the BOR and it is open. This also happens with GetStatus. I have got GETStatus working with Functional locations but seem to get this error on equipments.

Any help would be appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Further just got GetDetail to work which the BOR says is obsolete.

But GetDetail1 causes the error in Previous post.

Maybe this may explain something if someone knows why