SAP B1 Qurey-收货-当我键入时什么都没有

2020-09-03 16:45发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嘿, 一切正常,告诉我我尝试将...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嘿,

一切正常,告诉我我尝试将位置扩展到" AND TT0.DocStatus ='O'"

谢谢大家的SAP社区

选择TT0.CardCode为'GP_Nummer',TT0.CardName为'GP_Name',计数(TT0.DocNum)为'Anzahl Bestellung',计数(TT0.Pünktlich)为'Anzahlpünktlich',计数(TT0.unPünktlich) 作为'Anzahlunpünktlich',CAST(CAST(count(TT0.Pünktlich)如数值(19,6))/CAST(count(TT0.DocNum)如数值(19,6))* 100如数值(19,2) )作为'pünktlicheLieferliestung'从(选择T3.DocDate,T3.DocNum,T0.CardName,T0.CardCode,T3.DocStatus,DATEDIFF(DAYOFYEAR,T1.ShipDate,T3.DocDate)作为'Differenz',案例WHEN DATEDIFF( DAYOFYEAR,T1.ShipDate,T3.DocDate)<= 0然后'Ja'-当DATEDIFF(DAYOFYEAR,T0.DocDueDate,T3.DocDate)> 0 THEN'Nein'END AS'Pünktlich',案例-WHEN DATEDIFF( DAYOFYEAR,T0.DocDueDate,T3.DocDate)<= 0然后DATEDIFF(DAYOFYEAR,T1.ShipDate,T3.DocDate)> 0 THEN'Nein'作为'unPünktlich'从OPOR T0内联接POR1 T1在T0 .DocEntry = T1.DocEntry内部联接PDN1 T2上T1.DocEntry = T2.BaseEntry和T1.LineNum = T2.BaseLine内部联接OPDN T3上T2.DocEntry = T3.DocEntry分组依据 T3.DocNum,T0.CardCode,T0.CardName,T1.ShipDate,T3.DocDate,T3.DocStatus)TT0,其中TT0.DocDate> ='2010'和TT0.DocDate <='2019'AND TT0.DocStatus ='O 'GROUP BY TT0.CardCode,TT0.CardName