销售退货发票后的团队和每个类别明智销售查询。

2020-08-16 06:57发布

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

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


您好,SAP Gurus!

有人可以帮我从 ORIN&RIN1 完成此查询,并添加以下信息:

应收贷项通知单

  1. 退货后的实际销售总额
  2. 销售退货后的实际净销售额
  3. 售后退货的实际增值税销售
  4. 每个类别 明智的销售总额

销售退货发票后,我需要实际的Team Wise销售查询。

以下是我的应收发票销售分析小组明智的查询:

选择

T2。[SlpCode]作为"团队代码",T2。[SlpName]作为"团队名称",SUM(ISNULL(T1.GrssProfit,0))/SUM(ISNULL(T1.LineTotal,1) )* 100作为"%GP",SUM(T1.GTotal)作为"总销售额(+ IVA)",SUM(T1.LineTotal)作为'净销售额(-IVA)',SUM(T1.LineVat)作为" IVA 值",SUM((T1.LineVat)/(T1.LineTotal))作为"%IVA",SUM(T3.GTotal)作为"销售总回报",SUM(T3.LineTotal)作为"净销售回报",SUM (T3.VatSum)作为" IVA退货",总和(T1.GPTtlBasPr)作为"股票价值",COUNT(T1.LineTotal)作为"在售商品",SUM(T1.quantity)作为"在售数量",SUM (T1.Weight1)AS为" Sale In KG",总和(T1.Volume)AS为" Sale In Mtr",SUM(T1.GrssProfit)为" Gross Profit",SUM(T0.DiscSum)AS为" Discount",SUM( (T1.GTotal-T1.LineVat)*(T2.Commission/100))为"佣金"

OINV T0内连接INV1 T1在T0上。[DocEntry] = T1。[DocEntry]

在T0.SlpCode = T2.SlpCode上进行内部联接OSLP T2

在T1.DocEntry = T3.BaseEntry上向左外部加入RIN1 T3

位置

T1.DocDate在[%1]和[%2]之间

GROUP BY

T2。[SlpCode],T2。[SlpName]


此致

Mohammad Firoz

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

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


您好,SAP Gurus!

有人可以帮我从 ORIN&RIN1 完成此查询,并添加以下信息:

应收贷项通知单

  1. 退货后的实际销售总额
  2. 销售退货后的实际净销售额
  3. 售后退货的实际增值税销售
  4. 每个类别 明智的销售总额

销售退货发票后,我需要实际的Team Wise销售查询。

以下是我的应收发票销售分析小组明智的查询:

选择

T2。[SlpCode]作为"团队代码",T2。[SlpName]作为"团队名称",SUM(ISNULL(T1.GrssProfit,0))/SUM(ISNULL(T1.LineTotal,1) )* 100作为"%GP",SUM(T1.GTotal)作为"总销售额(+ IVA)",SUM(T1.LineTotal)作为'净销售额(-IVA)',SUM(T1.LineVat)作为" IVA 值",SUM((T1.LineVat)/(T1.LineTotal))作为"%IVA",SUM(T3.GTotal)作为"销售总回报",SUM(T3.LineTotal)作为"净销售回报",SUM (T3.VatSum)作为" IVA退货",总和(T1.GPTtlBasPr)作为"股票价值",COUNT(T1.LineTotal)作为"在售商品",SUM(T1.quantity)作为"在售数量",SUM (T1.Weight1)AS为" Sale In KG",总和(T1.Volume)AS为" Sale In Mtr",SUM(T1.GrssProfit)为" Gross Profit",SUM(T0.DiscSum)AS为" Discount",SUM( (T1.GTotal-T1.LineVat)*(T2.Commission/100))为"佣金"

OINV T0内连接INV1 T1在T0上。[DocEntry] = T1。[DocEntry]

在T0.SlpCode = T2.SlpCode上进行内部联接OSLP T2

在T1.DocEntry = T3.BaseEntry上向左外部加入RIN1 T3

位置

T1.DocDate在[%1]和[%2]之间

GROUP BY

T2。[SlpCode],T2。[SlpName]


此致

Mohammad Firoz

付费偷看设置
发送
2条回答
haha101010
1楼-- · 2020-08-16 07:44

嗨,

尝试此查询,

选择 T2。[SlpCode] AS"团队代码",T2。[SlpName] AS"团队名称", SUM(ISNULL(T1.GrssProfit,1))/SUM(ISNULL(T1.LineTotal,1))* 100作为"%GP", SUM(T1.GTotal)AS为"总销售额(+ IVA)",SUM(T1.LineTotal)AS为"净销售额(-IVA)",SUM(T1.LineVat)AS为" IVA价值",SUM((T1.LineVat )/(T1.LineTotal))作为"%IVA",SUM(T3.GTotal)作为"销售总回报",SUM(T3.LineTotal)作为"净销售回报",SUM(T3.VatSum)作为" IVA返回 ",SUM(T1.GPTtlBasPr)为"库存价值",COUNT(T1.LineTotal)为" SKU出售",SUM(T1.quantity)为"数量出售",SUM(T1.Weight1)AS为"出售 KG",SUM(T1.Volume)AS为" Sale In Mtr",SUM(T1.GrssProfit)AS为" Gross Profit",SUM(T0.DiscSum)AS为" Discount",SUM((T1.GTotal-T1.LineVat) *(T2.Commission/100))作为"佣金" 从 OINV T0内连接INV1 T1在T0上。[DocEntry] = T1。[DocEntry] 内连接OSLP T2开启T0.SlpCode = T2.SlpCode 左外连接RIN1 T3在T1.DocEntry = T3.BaseEntry和T3.BaseLine = T1.LineNum和T3.basetype = 13上 哪里 T1.DocDate在[%1]和[%2]之间 通过...分组 T2。[SlpCode],T2。[SlpName],T1.LineTotal

问候,

Nagarajan

哎,真难
2楼-- · 2020-08-16 07:48

尊敬的Nagarajan,

这里是分手总销售和销售回报,我的查询是我需要根据下面的查询获得销售回报后的实际销售额。

选择T2。[SlpCode] AS"团队代码",T2。[SlpName] AS"团队名称",SUM(ISNULL(T1.GrssProfit,0))/SUM(ISNULL(T1.LineTotal,1))* 100作为"%GP",SUM(T1.GTotal)作为"总销售额(+ IVA)",SUM(T1.LineTotal)作为"净销售额(-IVA)",SUM(T1.LineVat)作为" IVA值" ,SUM((T1.LineVat)/(T1.LineTotal))作为"%IVA",SUM(T3.GTotal)作为"销售总回报",SUM(T3.LineTotal)作为"净销售回报",SUM(T3 .VatSum)作为" IVA退货",SUM(T1.GPTtlBasPr)作为"股票价值",COUNT(T1.LineTotal)作为" SKU出售",SUM(T1.quantity)作为"数量出售",SUM(T1 .Weight1)AS为" Sale In KG",总和(T1.Volume)AS为" Sale In Mtr",SUM(T1.GrssProfit)为AS" Gross Profit",SUM(T0.DiscSum)AS为" Discount",SUM((T1 .GTotal-T1.LineVat)*(T2.Commission/100))作为"佣金",来自OINV T0内部联接INV1 T1接通T0。[DocEntry] = T1。[DocEntry]内部联接OSLP T2接通T0.SlpCode = T2。 SlpCode左外部联接RIN1 T3在T1.DocEntry = T3.BaseEntry上T1.DocDate在[%1]和[%2] GROUP BY T2之间。[SlpCode],T2。[SlpName]

一周热门 更多>