点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) Buenas amigos ...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) Buenas amigos ...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
Buenas amigos
在意向书中的意向书,
从个人到个人的瓜达拉乌干达人的独奏,cuadran algunos vendedores的独奏,他致力于不同的管理,estuve mirando algo sobre el过程 asíno lo logro。
Alguno de ustedes ha logrado cuadrar unsénéecon elanálisisde ventas de sap? 我是puede dar algunas pistas吗?
Estaréeternamente agradecido。
使用[MYBD]
GO
将ANSI_NULLS设置为开
GO
将QUOTED_IDENTIFIER设置为开
GO
创建过程[dbo]。[VENTAS_POR_VENDEDOR]
@VENDEDOR AS NVARCHAR(20),
@FECHAINI日期,
@FECHAFIN日期
AS
设置为NOCOUNT;
SELECT DISTINCT
T1.SlpCode Cod_Empleado,
T1.SlpName Empleado_Ventas,
T0.CardCode Cod_Cliente,
T0.CardName客户端,
(从OINV T2中选择ISNULL(SUM(T2.doctotal-T2.VatSum),0)THERHER T2.CardCode = T0.CardCode AND T2.SlpCode = T0.SlpCode AND T2.DocDate @FECHAINI和@FECHAFIN之间) AS TOTAL_FACTURAS,
(从ORIN T3中选择ISNULL(SUM(TUM.doctotal-T3.VatSum),0),其中T3.CardCode = T0.CardCode AND T3.SlpCode = T0.SlpCode和T3.DocDate在@FECHAINI和@FECHAFIN之间) AS TOTAL_NC
从OINV T0内部联接OSLP T1到T0.SlpCode = T1.SlpCode
(T1.Memo = @VENDEDOR或T1.SlpName = @VENDEDOR)和T0.DocDate在@FECHAINI和@FECHAFIN之间的位置
联盟
SELECT DISTINCT
T1.SlpCode Cod_Empleado,
T1.SlpName Empleado_Ventas,
T0.CardCode Cod_Cliente,
T0.CardName客户端,
(从OINV T2中选择ISNULL(SUM(T2.doctotal-t2.VatSum),0)WHERE T2.CardCode = T0.CardCode AND T2.SlpCode = T0.SlpCode AND T2.DocDate @FECHAINI和@FECHAFIN之间) AS TOTAL_FACTURAS,
(从ORIN T3中选择ISNULL(SUM(TUM.doctotal-t3.VatSum),0),其中T3.CardCode = T0.CardCode AND T3.SlpCode = T0.SlpCode AND T3.DocDate @FECHAINI和@FECHAFIN之间) AS TOTAL_NC
从ORIN T0内连接OSLP T1到T0.SlpCode = T1.SlpCode
(T1.Memo = @VENDEDOR或T1.SlpName = @VENDEDOR)和T0.DocDate在@FECHAINI和@FECHAFIN之间的位置
ORDER BY T1.SlpName
Espero te Sirva Saludos ...
一周热门 更多>