• sbo采购暂估报表

    sap b1采购暂估报表,去时点报表,可以查询当前的未清金额

    0
    232
    1KB
    2018-09-12
    50
  • SBO发出商品报表

    select '正常发货' as [类型],t0.createdby 单号, T2.[CANCELED] 单据状态 ,t0.doclinenum 行号, t0.docdate 日期,t0.cardcode 客户编号,t0.cardname 客户名称, t0.itemcode 料号 ,t0.dscription 品名,t0.Currency 币种,t0.rate 汇率,t0.OutQty-t0.InQty 数量,t0.CalcPrice 成本单价,t0.cogsval 成本总额,t0.CostAct 发出科目, t1.OpenQty [未清数量],t1.OpenQty*t0.CalcPrice [未清金额],t1.basetype 上级单据类型,t1.baseentry 上级单号 from oinm t0 left join DLN1 t1 on t0.DocLineNum=t1.LineNum and t0.CreatedBy=t1.DocEntry left join odln t2 on T2.[DocEntry] = T1.[DocEntry] where t0.CostAct not in ('540101' , '540102' ) and t0.transtype='15' and T0.docdate >='[%1]' and T0.docdate<='[%2]' union all select '退货' as [类型],t0.createdby 单号, T2.[CANCELED],t0.doclinenum 行号 , t0.docdate 日期,t0.cardcode 客户编号,t0.cardname 客户名称, t0.itemcode 料号 ,t0.dscription 品名,t0.Currency 币种,t0.rate 汇率,t0.OutQty-t0.InQty 数量,t0.CalcPrice 成本单价,t0.cogsval 成本总额,t0.CostAct 发出科目, t1.OpenQty [未清数量],t1.OpenQty*t0.CalcPrice [未清金额],t1.basetype,t1.baseentry from oinm t0 left join RDN1 t1 on t0.DocLineNum=t1.LineNum and t0.CreatedBy=t1.DocEntry left join oRDN t2 on T2.[DocEntry] = T1.[DocEntry] where t0.CostAct not in ('540101' , '540102' ) and t0.transtype='16' and T0.docdate >='[%1]' and T0.docdate<='[%2]'

    0
    273
    1KB
    2018-09-12
    50
关注 私信
上传资源赚积分or赚钱