Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Picklist creation error - No Matching Records Found

$
0
0

Hi all,


Struggling with this issue also at the moment.

8.82 pl 9

 

I have seen the other threads on here regarding this issue but havent been able to resolve.

 

I have simplified Excel macro code for troubleshooting.

Just trying to add a pick list with 1 line.

Error is: No matching records found (ODBC -2028)

When i comment out lines code, I can add a picklist, header only, no lines.

I have verified that docentry and line is present, correct and not picked.


Code is as follows:


Set oPickLists = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists)

oPickLists.PickDate = Date

oPickLists.Lines.BaseObjectType = SAPbobsCOM.BoObjectTypes.oOrders

oPickLists.Lines.ReleasedQuantity = 1

oPickLists.Lines.OrderEntry = 39785

oPickLists.Lines.OrderRowID = 0

 

lRetCode = oPickLists.Add

if lRetCode <> 0 Then

     MsgBox(oCompany.GetLastErrorDescription)

Else

     MsgBox("OK")

End if

 

 

It could be a bug though in this patch.

I see note 1825690 refers to same error, but creation of picklist from XML. 
Possibly the same issue??

 

I tested the same code on my local machine in a demo database in v9.0 pl 11 and it worked fine.

 

Any help appreciated.

 

Thanks,

John


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>