on 07-02-2011 2:12 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.