SAP B1销售分析发票报告

2020-09-23 17:59发布

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

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


专家们,

我需要一个与现有的销售分析发票报告相匹配的报告。

我如何在报告中包括应收款贷项通知单以与现有的销售分析报告匹配。

选择t1.Name,t1.Today_Total,t1.Month_Total,t1.Current_Year_Total,t1.Prev_Year_Total,t1。[Perc_Changed]从(选择1作为Row,a.Name,c.Today_Total,d.Month_Total,e。 Current_Year_Total,f.Prev_Year_Total,(((e.Current_Year_Total-f.Prev_Year_Total)/f.Prev_Year_Total)* 100从OCRY中以'Perc_Changed'的形式从左连接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum), 0)as Today_Total,b。来自OINV的国家/地区a.CardCode = b.CardCode上的左联接OCRD b,其中CAST(a.DocDate AS DATE)= CAST(GETDATE()AS DATE)和a.CANCELED ='N'组 由b.Country)c在a.Code = c.Country左联接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Month_Total,b。来自OINV的国家a左联接OCRD b上 a.CardCode = b.CardCode,其中month(a.DocDate)= month(GETDATE())和Year(a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country d 在a.Code = d.Country左联接上(从SIN(a.VatSum),0)选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Current_Year_Total,b。来自OINV的国家a在CardCode = b上左联接OCRD b。 CardCode,其中Year(a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country)e在a.Code = e.Country左联接上(select SUM(a.DocTotal)-isnull(Sum(a.VatSum),0 )作为Prev_Year_Total,b.Country from OINV a在a.CardCode = b.CardCode上左移OCRD b其中(CAST(a.DocDate AS DATE)在CAST(CAST((Year(GETDATE())-1)AS Varchar)之间 +'-01-01'作为DATE)和DATEADD(YEAR,-1,GETDATE()))和a.CANCELED ='N'-(Year(a.DocDate)= Year(GETDATE())-1和 MONTH(a.docdate)在1到month(getdate()))之间,由a.Code = f.Country上的b.Country)f分组,其中a.Code IN('DE','GB','FR',' IT')联合都选择2作为行,以'Rest'作为名称,sum(t0.Today_Total)Today_Total,sum(t0.Month_Total)Month_Total,sum(t0.Current_Year_Total)Current_Year_Total,sum(t0.Prev_Year_Total)Prev_Year_Total,(( sum(T0.Current_Year_Total)-sum(T0.Prev_Year_Total))/sum(T0.Prev_Year_Total))* 100从(选择c.Today_Total,d.Month_Total,e.Current_Year_Total,f.Prev_Year_Total从 加入(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Today_To tal,b。来自OINV的国家/地区在a.CardCode = b.CardCode上向左加入OCRD b,其中CAST(a.DocDate AS DATE)= CAST(GETDATE()AS DATE)和a.CANCELED ='N'由b组。 a.Code = c.Country左联接上的Country)c(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Month_Total,b.OINV的国家a.CardCode上的左联接OCRD b = b.CardCode其中a上的month(a.DocDate)= month(GETDATE())和Year(a.DocDate)= Year(GETDATE())且a.CANCELED ='n'group by b.Country d Code = d.Country左连接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Current_Year_Total,b.OINV的国家a.CardCode = b.CardCode上的左连接OCRD b (a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country)e在a.Code = e.Country左联接上(选择SUM(a.DocTotal)-isnull(Sum( a.VatSum),0)作为Prev_Year_Total,b。来自OINV的国家/地区a.CardCode = b.CardCode上的左加入OCRD b其中(CAST(a.DocDate AS DATE)在CAST(CAST((Year(GETDATE())之间 -1)AS Varchar)+'-01-01 AS DATE)和DATEADD(YEAR,-1,GETDATE()))和a.CANCELED ='N'由b.Country)f在a.Code = f.Country上划分而成,其中a.Code Not IN('DE','GB','FR','IT'))如T0)如T1- 按T1.Row

谢谢

Vinoth

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

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


专家们,

我需要一个与现有的销售分析发票报告相匹配的报告。

我如何在报告中包括应收款贷项通知单以与现有的销售分析报告匹配。

选择t1.Name,t1.Today_Total,t1.Month_Total,t1.Current_Year_Total,t1.Prev_Year_Total,t1。[Perc_Changed]从(选择1作为Row,a.Name,c.Today_Total,d.Month_Total,e。 Current_Year_Total,f.Prev_Year_Total,(((e.Current_Year_Total-f.Prev_Year_Total)/f.Prev_Year_Total)* 100从OCRY中以'Perc_Changed'的形式从左连接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum), 0)as Today_Total,b。来自OINV的国家/地区a.CardCode = b.CardCode上的左联接OCRD b,其中CAST(a.DocDate AS DATE)= CAST(GETDATE()AS DATE)和a.CANCELED ='N'组 由b.Country)c在a.Code = c.Country左联接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Month_Total,b。来自OINV的国家a左联接OCRD b上 a.CardCode = b.CardCode,其中month(a.DocDate)= month(GETDATE())和Year(a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country d 在a.Code = d.Country左联接上(从SIN(a.VatSum),0)选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Current_Year_Total,b。来自OINV的国家a在CardCode = b上左联接OCRD b。 CardCode,其中Year(a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country)e在a.Code = e.Country左联接上(select SUM(a.DocTotal)-isnull(Sum(a.VatSum),0 )作为Prev_Year_Total,b.Country from OINV a在a.CardCode = b.CardCode上左移OCRD b其中(CAST(a.DocDate AS DATE)在CAST(CAST((Year(GETDATE())-1)AS Varchar)之间 +'-01-01'作为DATE)和DATEADD(YEAR,-1,GETDATE()))和a.CANCELED ='N'-(Year(a.DocDate)= Year(GETDATE())-1和 MONTH(a.docdate)在1到month(getdate()))之间,由a.Code = f.Country上的b.Country)f分组,其中a.Code IN('DE','GB','FR',' IT')联合都选择2作为行,以'Rest'作为名称,sum(t0.Today_Total)Today_Total,sum(t0.Month_Total)Month_Total,sum(t0.Current_Year_Total)Current_Year_Total,sum(t0.Prev_Year_Total)Prev_Year_Total,(( sum(T0.Current_Year_Total)-sum(T0.Prev_Year_Total))/sum(T0.Prev_Year_Total))* 100从(选择c.Today_Total,d.Month_Total,e.Current_Year_Total,f.Prev_Year_Total从 加入(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Today_To tal,b。来自OINV的国家/地区在a.CardCode = b.CardCode上向左加入OCRD b,其中CAST(a.DocDate AS DATE)= CAST(GETDATE()AS DATE)和a.CANCELED ='N'由b组。 a.Code = c.Country左联接上的Country)c(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Month_Total,b.OINV的国家a.CardCode上的左联接OCRD b = b.CardCode其中a上的month(a.DocDate)= month(GETDATE())和Year(a.DocDate)= Year(GETDATE())且a.CANCELED ='n'group by b.Country d Code = d.Country左连接(选择SUM(a.DocTotal)-isnull(Sum(a.VatSum),0)作为Current_Year_Total,b.OINV的国家a.CardCode = b.CardCode上的左连接OCRD b (a.DocDate)= Year(GETDATE())和a.CANCELED ='N'group by b.Country)e在a.Code = e.Country左联接上(选择SUM(a.DocTotal)-isnull(Sum( a.VatSum),0)作为Prev_Year_Total,b。来自OINV的国家/地区a.CardCode = b.CardCode上的左加入OCRD b其中(CAST(a.DocDate AS DATE)在CAST(CAST((Year(GETDATE())之间 -1)AS Varchar)+'-01-01 AS DATE)和DATEADD(YEAR,-1,GETDATE()))和a.CANCELED ='N'由b.Country)f在a.Code = f.Country上划分而成,其中a.Code Not IN('DE','GB','FR','IT'))如T0)如T1- 按T1.Row

谢谢

Vinoth

付费偷看设置
发送
2条回答
My梦
1楼-- · 2020-09-23 18:39

嗨,

使用"全部合并" sql函数从应收发票和应收贷项凭单中提取数据,以便净销售数量和价值与销售分析报告相匹配

此致

vintage

wang628962
2楼-- · 2020-09-23 18:33

Hi

请在我现有的报告中指导我

谢谢

Vinoth

一周热门 更多>