on 04-11-2004 11:17 AM
hi,
i will inserted a new record in the table I_OCPR
with the DI-API 6.5
Call vBP.ContactEmployees.Add
Call vBP.ContactEmployees.SetCurrentLine(0)
(example in the helpfile)
but the program is not running
runtime error 438
object have not the methode
what is wrong ?
best regards
ingo
Hi Ingo,
Line no. "0" of the ContactEmployees collection is automatically selected:
Dim vBP As SAPbobsCOM.BusinessPartners
Dim vCE As SAPbobsCOM.ContactEmployees
vBP = oCompany.GetBusinessObject
(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
If (vBP.GetByKey("C00001")) Then
vCE = vBP.ContactEmployees
'=> Error !!!
vCE.SetCurrentLine(0)
'OK, if there are (at least) 2 ContactEmployees...
vCE.SetCurrentLine(1)
vCE.SetCurrentLine(0)
End If
Best regards,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.