Total material purchase report
If I want to kno in one step the cumulative quantity of all raw material purchased & consumed in one year, is there any other report than MB51 to kno this. As it takes lot of time 2 execute with MB51, as there are mor than 1000 materials.
Thanks
Hi,
You can get in ME2M
Details need to Select:-Plant,material group, and Document date..
Select Scope of List -ALV
You will get report with PO details. sort with GR number.
If you want how much u have Qty Receipt (ROH), and value during year, you can go for MC.9.
Anil patreddy
Similar Messages
-
Total open purchase order quantity fro a material
Hi,
Waht is the table that contain the total open purchase order quantity (on order quantity, not yet goods receipt) for a material number?hi,
You can check the table EKPO, EKKO, and EKBE...
also for delivery schedules use the table EKET...
You also have a report ME2N for the same, use the proper selection parameter...
regards
Priyanka.P -
Dear Sir,
We need to dvelop a Report which can give information related to Material Purchases with following information like : Material Code , GR Number , Material Qty , Basic Value , Excise Duty (Basic) , CST , VAT etc .
The above mentioned amount values are based as per the MIRO done .
We request you to kindly guide us as which Tables , We should refer to get the above information .
With Thanks and Rgds
Sonia AgarwalHi,
From BKPF - AWKEY field(first 10 digits), you can get the data of the MIRO document number.
Using MIRO document number in the RSEG - BELNR field, you will get the details of the PO.
Using the EKBE table you can get the PO history category wise details like, GR, IR, etc.,
From EKKO and EKPO - PO header and line item details and tax code details.
From BSET table you can get values of the tax.
VVR -
Report to see Item wise Material Purchases for a WBS
Dear Sir,
We need a Report to see the Material Purchase Value ( Material Code wise) for a WBS .
We tried using ME2J but it is not meeting our requirement as this Report shows the Material Purchase value for per unit qty only and that too only the Basic Value .
Kindly help us pl .
Rgds
B MittalDEAR Mr AP
Thanks for reply .
I tried with ME80FN. , but there is no option available to mention the WBS . Infact We need to generate the list for a specific WBS related Purchases .
Rgds
B Mittal -
All SAP Gurus,
Is there any Purchasing report available which gives the information regarding:
Plant, Purchasing group, material type, PO, GR No., vendor, amount (all in single report only).
Regards,Hi,
Refer following reports;
ME2N - List of PO Documents (In selection Screen use Scope of List - ALLES)
ME80FN - General Analysis (Here in Output, select option "PO History" by clicking on the button at extreme right) -
Profit Center wise value of material consumption & purchases report
Dear Frinz,
Can anybody revert with t-code/table from which I could be able to see purchase & consumption of material / material group Profit Center wise, from the first day of mat procurement to till date.
Profit Center wise value of material consumption & purchases report
=-=
Pradip GawandeHi,
You can use T.Code: KSB1 (Display Actual cost line items) in which you can restrict the report by providing the material consumption cost elements and don't give any cost center, which displays all the cost center for the given cost element.
Regards -
Report to to get suppliers credit notes listed by material, purchase order
Hello,
Is there a way to get a listing of all suppliers credit notes listed by material, purchase order.
Thanks.Hi Veera,
I have understood following things from your answer(Correct me if I m wrong)
1.Purchase Order is not auto-updateable ie even if we make changes in Master Data in Data Manager, PO will not reflect those changes.
2.Whenever I merge two records and create third one, I need to create identifier which will store reference of these two material nos and I wiil have to manually make changes in PO.
However, what will happen when you delete the particular material in Data Manager and it is being referred in Purchase Order created in SAP R3?
Also, what is going to happen when you just make changes in few fields of a material record and same material is referred iN PO in SAP R3?
how to track these changes??
Regards,
Joe. -
CR2008 Purchasing Report needed
Hi
Has anyone created a Purchasing report in Crystal Reports 2008 based on AP Invoices and AP Credit Notes. I have created a WPA (Weekly Purchase Analysis) report but based off AP Invoice table (OPCH & PCH1), now the company is wanting to have Credit Notes added to this report.
I have created a UDF called WPA on the OPCH form which is a Mandatory field so when running the WPA Report you can run it by WPA # and Project to get your results (Parameter), now how will I acheive this by adding the AP Credit Note fields ORPC & RPC1 to the report so if I create x2 Invoice's (different suppliers) for say WPA # 1010 and I Credit one, on the WPA Report I will want to see Invoice 1 (NumCard = 1) = R100, Invoice 2 (NumCard = 2) = 100, Credit Note 1 (NumCard = 2) = -100, Total = 100.
Any suggestions or ideas will be most helpful.
Regards
Kurt WaltersHi Kurt,
That is possible using "Shared Variable".
Check this link: [Sub-report data in report|Sub-report data in report].
1.Initialize a shared variable in Report.
2.Pass the Credit memo value to the 'Shared variable' in Sub-report
3.Now create a formula in Report like
Sub-total = {Invoice total} - {SharedVariable}
In order to know more about shared variable, post a separate question in [SAP Crystal Reports Design - Forum|SAP Crystal Reports;.
Hope this helps.
Regards,
Bala -
In Import Purchase process how to get the report for division wise purchase,
some material from USA some from France, and some other countries
we need to get country wise purchase reports. how it will be possible in sapUse report MC$4,here enter purchase organization,_vendor country_,vendor,plant & finally period.
-
Purchasing Report Errors - Please Help
Hey everyone!
I am an SAP newb so bear with me please. I am having issues with a the Purchasing report on our system.
The report takes parameters determining the time period for which the report is to be run, ex: from Jan 1 2008 - Aug 1 2008.
The values returned by the report are:
Item code
Vendor
Item Name
Purch Unit
Available units
Units on Order (how many are currently dedicated to an already placed order)
Purchase Factor
Purchase Price
Purchase Currency
Avg Price
Price
Stock Value
MonthToDate Sales (calculates total sales for item within time period)
Average Sales (calculates the average sale for item within time period)
Sales Factor
Month on Order
Month on Stock
The Problems are occuring with: Month to Date Sales and Average Sales. As well as Month on Order and Month on Stock, however these are secondary.
The report in SAP is as follows:
BEGIN
declare @FrmWhs varchar(8),
@ToWhs varchar(8),
@WhsLst varchar(254),
@GroupCode int,
@FrmItm varchar(20),
@ToItm varchar(20),
@MthAgo int,
@GroupName varchar(20),
@HistStart varchar(6),
@HistEnd varchar(6),
@ShowInactive varchar(1)
SELECT @FrmWhs = T0.U_FrmWhs,
@ToWhs = T0.U_ToWhs,
@WhsLst = T0.U_WhsLst,
@GroupCode = T1.ItmsGrpCod,
@FrmItm = T0.U_FrmItm,
@ToItm = T0.U_ToItm,
@MthAgo = T0.U_MthAgo,
@HistStart = T0.U_Hist1,
@HistEnd = T0.U_Hist2,
@ShowInactive = T0.U_Inact
FROM dbo.@XXPURCH T0, dbo.OITB T1
WHERE T0.U_FrmWhs = '%0'
AND T0.U_ToWhs = '%1'
AND T0.U_WhsLst = '%2'
AND T1.ItmsGrpNam = '%3'
AND T1.Locked = 'X'
AND T0.U_FrmItm = '%4'
AND T0.U_ToItm = '%5'
AND T0.U_MthAgo = %6
AND T0.U_Hist1 = '%7'
AND T0.U_Hist2 = '%8'
AND T0.U_Inact = '%9'
SET @GroupName = '%3'
IF @GroupName = ''
SET @GroupCode = 0
ELSE
SELECT @GroupCode = T2.ItmsGrpCod
FROM dbo.OITB T2
WHERE T2.ItmsGrpNam = @GroupName
SET @FrmWhs = '%0'
SET @ToWhs = '%1'
SET @WhsLst = '%2'
SET @FrmItm = '%4'
SET @ToItm = '%5'
SET @MthAgo = %6
SET @HistStart = '%7'
SET @HistEnd = '%8'
SET @ShowInactive = '%9'
exec dbo.xxPurchReport @FrmWhs,@ToWhs,@WhsLst,@GroupCode,@FrmItm,@ToItm,@MthAgo,@HistStart,@HistEnd,@ShowInactive
I do not fully understand how the SQL query (the stored procedure) dbo.xxPurchasing Report calculates these numbers. If it is helpful, I could post the SQL query in its entirety or in part.
Thank you very much for your willingness to help. It is quite frustrating for me and it is so great to have knowledgeable people here to help
-HarrisonThanks. That makes sense.
I am not a database guy, but from my limited knowledge, so here is the query in its entirety:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
ALTER proc xxPurchReport (
@FromWhs varchar(8) = null,
@ToWhs varchar(8) = null,
@WhsList varchar(255) = null,
@GroupCode int = null,
@FromItem varchar(20) = null,
@ToItem varchar(20) = null,
@MonthsAgo int = 1,
@HistStart varchar(6) = null,
@HistEnd varchar(6) = null,
@ShowInactive char(1) = 'Y')
AS
begin
set NOCOUNT ON
DECLARE @StartDate datetime,
@EndDate datetime,
@Today datetime,
@Periods int
CREATE TABLE #tempwhs(WhsCode varchar(8))
if @WhsList is null or LTRIM(RTRIM(@WhsList)) = ''
BEGIN
if @FromWhs is null
set @FromWhs = ''
if @ToWhs is null or LTRIM(RTRIM(@ToWhs)) = ''
set @ToWhs = 'ZZZZZZZZ'
insert into #tempwhs
select WhsCode
from OWHS
where WhsCode between @FromWhs and @ToWhs
END
ELSE
BEGIN
set @WhsList = ',' + @WhsList + ','
insert into #tempwhs
select WhsCode
from OWHS
where charindex(',' + WhsCode + ',',@WhsList) > 0
END
if @GroupCode = 0
set @GroupCode = null
if @FromItem is null
set @FromItem = ''
if @ToItem is null or LTRIM(RTRIM(@ToItem)) = ''
set @ToItem = 'ZZZZZZZZZZZZZZZZZZZZ'
if @MonthsAgo is null
set @MonthsAgo = 0
if @MonthsAgo > 0
set @MonthsAgo = @MonthsAgo * -1
select @StartDate = dateadd(mm,@MonthsAgo,cast(cast(year(getdate()) as varchar(4)) + right(cast(month(getdate()) + 100 as varchar(3)),2) + '01' as datetime)),
@EndDate = dateadd(mi,-1,dateadd(mm,@MonthsAgo,dateadd(mm,1,cast(cast(year(getdate()) as varchar(4)) + right(cast(month(getdate()) + 100 as varchar(3)),2) + '01' as datetime)))),
@Today = cast(convert(varchar(8),getdate(),112) as datetime)
if isnull(@HistStart,'') = '' or isnull(@HistEnd,'') = ''
select @HistEnd = left(convert(varchar(8),@StartDate - 1,112),6),
@HistStart = left(convert(varchar(8),dateadd(yyyy,-1,@StartDate),112),6)
select @Periods = count(distinct period)
from XXSalesHistory
where period between @HistStart and @HistEnd
select itemcode,whscode,cast(round(cast(sum(totsale) as decimal(12,5)) / @Periods,2) as decimal(12,5)) as AvgSale,
cast(round(cast(sum(totqty) as decimal(12,5)) / @Periods,0) as int) as AvgQty
into #tmpavg
from XXSalesHistory
where period between @HistStart and @HistEnd
group by itemcode,whscode
order by 1
Select ItmGrp.ItmsGrpNam,lines.ItemCode,lines.WhsCode,
items.CardCode as DefaultVendor,items.ItemName,
whs.OnHand,items.SalUnitMsr as SaleUnit,items.BuyUnitMsr as PurchUnit,whs.IsCommited,
(whs.OnHand - whs.IsCommited) as Available,whs.OnOrder,items.PurFactor2,
isnull(purprc.Price,0) as PurchasePrice,
isnull(purprc.Currency,'USD') as PurchCurrency,
cast(whs.OnHand / (CASE WHEN items.PurFactor2 = 0 THEN 1 ELSE items.PurFactor2 END) as decimal(16,2)) as CS,
whs.AvgPrice,prc.Price,isnull(prc.Currency,'USD') as Currency,isnull(whs.StockValue,0) as StockValue,
cast(sum(case lines.usebaseun
when 'Y' then Lines.OpenCreQty
else ( Lines.OpenCreQty * Items.NumInSale) end) as integer) as MtdSales,
isnull(hst.AvgQty,0) as AvgSales,items.SalFactor2
into #temprpt
From OINV Main,
INV1 Lines,
OITM Items,
OITB ItmGrp,
OITW whs
left outer join #tmpavg hst
on hst.ItemCode = whs.ItemCode and hst.WhsCode = whs.WhsCode,
ITM1 prc,
ITM1 purprc
Where Main.DocDate between @StartDate and @EndDate
And Main.Instance = 0
And Main.Canceled = 'N'
and Main.DocEntry = Lines.DocEntry and lines.LineTotal <> 0
and lines.ItemCode between @FromItem and @ToItem
and lines.whscode collate database_default in (select WhsCode from #tempwhs)
and Items.ItemCode = Lines.ItemCode
and items.PrchseItem = 'Y'
and (@ShowInactive = 'Y' or Items.frozenfor = 'N')
and ItmGrp.ItmsGrpCod = Items.ItmsGrpCod
and ItmGrp.ItmsGrpCod = isnull(@GroupCode,ItmGrp.ItmsGrpCod)
and whs.ItemCode = lines.ItemCode and whs.WhsCode = lines.WhsCode
and prc.ItemCode = items.Itemcode
and prc.PriceList = (CASE WHEN whs.whscode = '02' THEN 6 else 2 END)
and purprc.ItemCode = items.Itemcode
and purprc.PriceList = (CASE WHEN whs.whscode = '02' THEN 10 else 1 END)
Group BY
ItmGrp.ItmsGrpNam,lines.ItemCode,lines.WhsCode,
items.CardCode,items.ItemName,
whs.OnHand,items.SalUnitMsr,items.BuyUnitMsr,whs.IsCommited,whs.OnOrder,items.PurFactor2,purprc.Price,isnull(purprc.Currency,'USD'),
cast(whs.OnHand / (CASE WHEN items.PurFactor2 = 0 THEN 1 ELSE items.PurFactor2 END) as decimal(16,2)),
whs.AvgPrice,prc.Price,prc.Currency,isnull(whs.StockValue,0),hst.AvgQty,items.SalFactor2
union
select grp.ItmsGrpNam,itm.ItemCode,whs.WhsCode,itm.CardCode as DefaultVendor,
itm.ItemName,whs.OnHand,itm.SalUnitMsr as SaleUnit,itm.BuyUnitMsr as PurchUnit,
whs.IsCommited,
(whs.OnHand - whs.IsCommited) as Available,whs.OnOrder,itm.PurFactor2,purprc.Price,
isnull(purprc.Currency,'USD') as PurchCurrency,
cast(whs.OnHand / (CASE WHEN itm.PurFactor2 = 0 THEN 1 ELSE itm.PurFactor2 END) as decimal(16,2)) as CS,
whs.AvgPrice,prc.Price,isnull(prc.Currency,'USD') as Currency,isnull(whs.StockValue,0) as StockValue,0,
isnull(hst.AvgQty,0) as AvgSales,itm.SalFactor2
from OITM itm,
OITB grp,
OITW whs
left join(INV1 lines inner join OINV main
on lines.DocEntry = main.DocEntry and lines.LineTotal <> 0
and main.Canceled = 'N' and main.instance = 0
and Main.DocDate Between @StartDate and @EndDate)
on whs.ItemCode = lines.ItemCode and whs.WhsCode = lines.WhsCode
left outer join #tmpavg hst on hst.ItemCode = whs.ItemCode and hst.WhsCode = whs.WhsCode,
ITM1 prc,
ITM1 purprc
where itm.ItemCode between @FromItem and @ToItem
and itm.PrchseItem = 'Y'
and (@ShowInactive = 'Y' or itm.frozenfor = 'N')
and grp.ItmsGrpCod = itm.ItmsGrpCod
and grp.ItmsGrpCod = isnull(@GroupCode,grp.ItmsGrpCod)
and whs.ItemCode = itm.ItemCode
and whs.WhsCode collate database_default in (select WhsCode from #tempwhs)
and main.DocEntry is null
and prc.ItemCode = itm.Itemcode
and prc.PriceList = (CASE WHEN whs.whscode = '02' THEN 6 else 2 END)
and purprc.ItemCode = itm.Itemcode
and purprc.PriceList = (CASE WHEN whs.whscode = '02' THEN 10 else 1 END)
group by grp.ItmsGrpNam,itm.ItemCode,whs.WhsCode,itm.CardCode,
itm.ItemName,whs.OnHand,itm.SalUnitMsr,itm.BuyUnitMsr,whs.IsCommited,whs.OnOrder,itm.PurFactor2,itm.LastPurPrc,purprc.Price,purprc.Currency,
cast(whs.OnHand / (CASE WHEN itm.PurFactor2 = 0 THEN 1 ELSE itm.PurFactor2 END) as decimal(16,2)),
whs.AvgPrice,prc.Price,prc.Currency,isnull(whs.StockValue,0),hst.AvgQty,itm.SalFactor2
select r.*,
cast((CASE WHEN r.OnOrder = 0
THEN 0
ELSE (CASE WHEN r.AvgSales = 0
THEN (CASE WHEN r.MtdSales = 0 THEN 999 ELSE r.OnOrder / r.MtdSales END)
ELSE r.OnOrder / r.AvgSales
END)
END) as decimal(9,1)) as MonthsOnOrder,
cast((CASE WHEN r.Available <= 0 THEN 0
ELSE (CASE WHEN r.AvgSales <= 0 THEN 999
ELSE r.Available / r.AvgSales END) END) as decimal(9,1)) as MonthsInStock
from #temprpt r
order by 1,2,3
end
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
I hope that is not too overwhelming, it is for me so any help you have to offer is truly appreciated. I am not trained in SAP but they have no one else. Thanks alot everyone! -
Purchase Report Requirement from Auditors
Dear All
I have a query from audit department for Purchase Reprots as follows, They require reports in one consilidated format and not to do anything in EXCEL
requirement as follows
a) one material--having different rates
b) different vendorssame materialdifferent rates
They want this report at plant, company level.
Please guide me ASAP
Regards
ManojHi,
There is SAP Standard Report for PR - ME5A
Just check in this.
Here in the selection screen of the reports, enter Scope of List as "ALV". And then execute the report and download to excel.
If Scope of List as "ALV" is not there in the list then you can create the same in SPRO > MM > Purchasing > Reporting > Maintain Purchase Requisition Lists > Define Scope of List > Here select "A" and copy to "ALV", for "ALV" activate indicator "ALV grid control"
Then go to SPRO > MM > Purchasing > Reporting > Maintain Purchase Requisition Lists > Define Default Values for Transactions > Here enter Scope of List "ALV" as default for the above reports. -
Hi Experts
I would like to creat a report that shows all items purchased from a specific supplier
amount and price sum per item
I try using the default purchase report in the system but it doesnt show the frozen/non active items.
could you help me with this issue?
thanks & regards.
d.Medalion.Hi........
You need to use Union All function.......
SELECT T0.DocEntry, T0.[DocNum] As 'PO No.', T0.[DocDate], T0.[DocDueDate],
T5.DocEntry 'DownPayment No.', T0.[CardCode], T0.[CardName], T0.[NumAtCard],
T1.[ItemCode], T1.[Dscription], T1.FreeTxt,T1.[Quantity], T1.Price as 'PO Price',
T4.[PymntGroup] 'Payment terms', T3.DocNum As 'GRN No.', T2.Quantity As 'Total Rcvd',
T1.[OpenQty], T1.ShipDate FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT Join PDN1 t2 On T1.DocEntry=T2.BaseEntry and T1.LineNum=T2.BaseLine LEFT Join OPDN T3 On T2.DocEntry=T3.DocEntry Left Join OCTG T4 On T0.GroupNum = T4.GroupNum LEFT JOIN DPO1 T5 On T5.BaseEntry=T0.DocEntry LEFT JOIN ODPO T6 On T5.DocEntry=T6.DocEntry
Where (T0.Docstatus='[%0]' or '[%0]'='') And (T1.LineStatus='[%1]' or '[%1]'='')
And (T6.Canceled != 'Y' or T6.Canceled Is Null) And T0.CardName='[%2]'
Group By T0.[DocNum], T0.[DocDate], T0.[DocDueDate], T0.[CardCode], T0.[CardName],
T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[OpenQty], T3.DocNum,
T2.Quantity, T1.Price, T4.[PymntGroup], T1.FreeTxt, T0.DocEntry, T1.ShipDate, T5.DocEntry
Union All
SELECT Null, T0.DocNum, Null, Null,
Null 'DownPayment No.', Null, '', '',
Null, Null, '', Sum(T1.[Quantity]) , Sum(T1.LineTotal)/Sum(T1.[Quantity]) as 'PO Price',
Null, Null, Sum(T2.Quantity) As 'Total Rcvd',
Sum(T1.[OpenQty]), Null FROM OPOR T0 INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
LEFT Join PDN1 t2 On T1.DocEntry=T2.BaseEntry and T1.LineNum=T2.BaseLine LEFT Join OPDN T3 On T2.DocEntry=T3.DocEntry Left Join OCTG T4 On T0.GroupNum = T4.GroupNum LEFT JOIN DPO1 T5 On T5.BaseEntry=T0.DocEntry LEFT JOIN ODPO T6 On T5.DocEntry=T6.DocEntry
Where (T0.Docstatus='[%0]' or '[%0]'='') And (T1.LineStatus='[%1]' or '[%1]'='')
And (T6.Canceled != 'Y' or T6.Canceled Is Null) And T0.CardName='[%2]'
Group By T0.[DocNum]
Order By T0.DocNum
Regards,
Rahul -
Hi,
Is there any Material Forecast - Report.
We want the following columns
Material no.
Material Description
Material Group
Month Wise Forecast Values
Please let me know if we can get any report with the above following values from Standard SAP.
Also, if there is any other Forecast Report Available?You can try the below reports..
ME2V Goods Receipt Forecast
MPBT RMMDBTCH Total Forecast In BATCH Mode
MPR1 RMPR1001 Forecast Adopted from External Data
MP00 MENULPRO Material Forecast Menu
MP32 SAPMM61W Display Material Forecast
MP33 SAPMM61W Reprocess material forecast
Hope it helps.
Thanks, -
Material purchase with different price
dear all,
please let me know standard reports in sap which can understand me the material purchase with different prices along with period.
thanks in advaceHi,
Please refer MBEW & MBEWH tables. If the you want a report then go for a simple SAP Querry to meet your requirement.
regds,
CB -
Material analyses report.
Hi gurus,
what are all involved in a and what is a material analyses report
<b>Material Price Analysis Report</b>
could u plz explain.
regards,
siri.
Message was edited by: sireesha yalamanchiliHi ,
To find the change in material prices and variation in current price and given date(Past) this will help for next purchase for the material having high variation .
Maybe you are looking for
-
Multi-Room DVR not working since update other day
I am unable to watch recorded programs in remote locations. Playback only works in the room with the DVR. I am able to access DVR menu and programs, when I attemp playback, program immediately freezes and stops playing. Eveverything was fine until
-
Hi all, how to create referance Billing plan in milestone billing ????? as i want to reflect % of down payment automatic for each transaction on vao1????
-
Migration program for sales order condtions KONV, KONP?
Hi, Is there a standard way of migrating sales order conditions (tables KONV, KONP) or do I have to write a batch for VA02? Slath
-
HI All, I'm trying to create a Etext template using the API. EFTProcessor processor = new EFTProcessor(); String template = TemplateLocator.getTemplateFullName(mergReq.getTemplateType(), mergReq.getTemplateName()); processor.setData(input); processor
-
ORA-03134: Connections to this server version are no longer supported.
I have this error when trying to connect using Oracle DS 10.1.2.0.2 which comes with Oracle Net 10.1.0.4.2 to a 8.1.7.0.0 database. I can use Oracle DB 10g 10.2.0.1.0 bundle with Oracle Net 10.2.0.0.0 to connect to 8.1.7.0.0 database Anyone knows how