csharp TQUERY SAP
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp TQUERY SAP相关的知识,希望对你有一定的参考价值。
TTransaction _Transaccion = TRutinas.CreaTransaccion();
TQuery _Query = new TQuery(_Transaccion.Conexion);
SAPbobsCOM.Recordset recset = new SAPbobsCOM.Recordset();
recset = (SAPbobsCOM.Recordset)TConstantes.SBOLDObjeto.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
_Query.Selected(new TField("A", "Emp_Id"));
_Query.Selected(new TField("A", "Suc_Id"));
_Query.Selected(new TField("A", "Orden_Id"));
_Query.Selected(new TField("A", "Aduana_Id"));
_Query.Selected(new TField("A", "Bodega_Id"));
_Query.Selected(new TField("A", "Incoterm_Id"));
_Query.Selected(new TField("A", "Moneda_Id"));
_Query.From(new TFrom("Seg_Usuario", "U"));
_Query.Where(new TField("A", "Emp_Id"), OperadoresFiltros.Igual, new TValue(Param.Empresa));
_Query.Where(new TField("A", "Suc_Id"), OperadoresFiltros.Igual, new TValue(Param.Sucursal));
recset.DoQuery(_Query.SQL);
以上是关于csharp TQUERY SAP的主要内容,如果未能解决你的问题,请参考以下文章
csharp TQuery isNull
csharp asignar fecha SAP
csharp SAP连接类
csharp llenar grid zh SAP B1
csharp Agreagar elementos是tabla SAP B1
csharp Filtrar combo del sistema en SAP(no probado)