使用 getBPLIST() 方法獲取 SAP Business One 中所有訂單列表


我建議使用 DI API 的記錄集 -

SAPbobsCOM.Recordset rs =
((SAPbobsCOM.Company)oCompany.GetDICompany()).GetBusinessObject(BoObjectTypes.BoRecordset);
rs.DoQuery("SELECT DocEntry, DocNum, DocDate, TaxDate, CardCode, CardName, DocTotal
   FROM OPOR ORDER BY DocDate ASC");

while (!rs.EoF) {
   int DocEntry = rs.Fields.Item("DocEntry").Value;
   //OR
   DocEntry = rs.Fields.Item(0).Value;
   rs.MoveNext();
}

更新於:14-2 月-2020

457 次瀏覽

開啟你的事業

完成課程即可獲得認證

開始
廣告
© . All rights reserved.