Material opening and closing stock for a given day- Tables or FM
Dear Friends
i have to make a report , related to Material opening and closing stock for a given day , i check the T-Code- MB5B ,
it is not giving correct date . is any functional module is available ? . i checked some table like mbew , mard . it is also not giving correct requirement . Please help
Hi
Goto transaction MC.9, Give your Material and,Plant and the date which you need to know the closing stock. Do make sure that in the high and low values you are giving the same date there. I guess no such FM are available for this. You can refer the [Link|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=15856] for some help.
Regards
Vinodh
Edited by: Vinodh_AN on Dec 15, 2010 9:19 AM
Edited by: Vinodh_AN on Dec 15, 2010 9:25 AM
Similar Messages
-
FM for Opening And Closing Stock for Material
Dear All,
I need to Calculate the opening and closing stock of the material. If there is any FM for the same just let me know and if not kindly let me know the way out.
Regards
AmitHi!
The closing stock can be found in the MARD table.
And the opening stock should be always zero.
I think you wanted to know the yearly/monthly closing/opening stocks, then you have to gather all material documents from MKPF, MSEG tables, and calculate the stock, using the actual stock and subtract/add (depends on the movement type) the material document's quantity, until the given date.
I don't know any FMs for this, maybe someone could tell you one...
Regards
Tamá -
Reg:Opening and Closing Stock For Plant
Hi All,
i want to calculate the opening stock and closing stock for plant wise for the given Posting Period Date.
Am having the opening balance and closing balance for all months but i need it as month wise.
considering this example,
the date is from 15.01.2010 to 15.03.2010 and for one plant
considering this example,
am having the opening stock from as 15.01.2010 to 15.03.2010 as 10,000 and the closing stock as 15,000.
but i need in month wise like below,
from 15.01.2010 to 31.01.2010 what is the opening stock and closing stock?
from 01.02.2010 to 28.02.2010 what is the opening stock and closing stock?
from 01.03.2010 to 15.03.2010 what is the opening stock and closing stock?
this is purely based on plant wise and not material wise?
could anybody say clearly how can i acheive this scenario?
i have referred MB5b,mc.9 transaction programs but still confused how to go with plant wise for a particular period?
Thanks & Regards,
Suresh
Edited by: suresh suresh on Mar 24, 2010 10:15 AMHi,
Refer to link below:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/c1/3766e7449a11d188fe0000e8322f96/frameset.htm
Regards,
Venkat. -
Query For Finding Yearly Opening and Closing Balance for All the Items
Hi Experts,
I am working on Query Based Report for finding the Yearly Opening and Closing Stock for all the Items
i will give yearwise selection and I want opening and closing stock in between that years
Warm Regards,
Sandip Kokate
Edited by: Sandipk on May 20, 2011 1:58 PMHi,
Declare @SDate DateTime
Declare @EDate DateTime
Declare @Whse nvarchar(10)
Set @SDate= (SELECT min(F_RefDate) FROM OFPR T1 where T1.[Name] ='[1%]' )
Set @EDate= (SELECT max(T_RefDate) FROM OFPR T1 where T1.[Name] ='[%1]' )
Set @Whse=(Select Max(s2.Warehouse) from OINM S2 Where S2.Warehouse = '[%2]')
BEGIN
Select @Whse as 'Warehouse', a.Itemcode, max(a.Dscription) as ItemName,
sum(a.OpeningBalance) as OpeningBalance, sum(a.INq) as 'IN', sum(a.OUT) as OUT,
((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing ,
(Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
from( Select N1.Warehouse, N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty))
as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1
Where N1.DocDate < @SDate and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,
N1.Dscription Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance,
sum(N1.inqty) , 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <= @EDate
and N1.Inqty >0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription
Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <=@EDate and N1.OutQty > 0
and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
where a.ItemCode=I1.ItemCode
Group By a.Itemcode Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0 Order By a.Itemcode
END
I hope this will work for you.
In above query you can also user OFPR.Code, OFPR, Category OFPR.Indicator instead of OFPR.Name.
Regards
Vaibhav Anharwadkar
Edited by: Vaibhav Ancharwadkar on May 24, 2011 9:23 AM -
MB5B Report table for Open and Closing stock on date wise
Hi Frds,
I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
Thanks
Mohan MHi,
Please check the below links...
Query for Opening And Closing Stock
Inventory Opening and Closing Stock
open stock and closing stock
Kuber -
Functional Specification For Opening And closing stock On Particular Date
Dear Gurus,
I am creating report for opening and closing stock on particular date in which batch and storage location should also be included. I want to know the tables and fields for the same.I have searched the forum and got report on month basis but I want this report on posting day basis.kindly suggest tables and fields. Thanks in AdvanceDear sir,
There are many other colums that client wants to add which are not present in MB5B transaction.columns which client wants to add are as follows...
Material Number
Material Description
Material Type
Material Group
External material Group
Movement Type
Plant
Storage Location
Customer Number
Customer Name
Vendor Number
Vendor Name
Posting Date Receipt Doc. Number
Issue Doc. Number
Reference Issue Document Number
Opening Stock Quanity
Material Receipt Quantity
Material Issue Quantity
Material Closing Stock Quantity
Value Of Closing Stock
And for this I want tables and logic for the same. kindly provide the solution for the same. -
Material wise reciept and Issue report with Opening and Closing Stock
Hi
I need a report,Material wise Receipt and issue with Opening and Closing stock.Is there any standard report available in SAP ?
Or we have to go for Customised Report.
Please replyHi,
MB5B gives total receipts - if i click on the receipts i can view the multiple material documents - BUT is there any way to drill down the reciepts or view the breakup of the receipts on the same screen OR is there any other report for this.
Regards,
Laxmi -
Query for Opening And Closing Stock
Hi Experts...
I need a report for Opening and Closing stocks and Goods Receipt and Goods Issue for Raw Materials and Finished Goods and Consumbles ..instead of going for different reports for each we need a combined report which can display for all Raw Materials, Finished Goods and Consumbles and we need it for a specific date range Material type(Raw MAterials,Finished Goods, Consumbales)
and below is the format i needed.
RAW MATERIALS /FINISHED GOODS/CONSUMBALES
Opening Stock Closing Stock Goods Receipt Goods Issue
Qty Value Qty Value Qty Value Qty Value
Item Name
Regards,
Vamsi.Hi Guys.
I need an Inventory stock report with Item name, Opening Stock,Goods issue Quantity,Goods Received ,Item Price,Location ,(Closing Stock)Total Value.
We need the input by Date Range and Item Group and Location(if Possible) Below is the Code i used to run the report.
Pls Update the Query...
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @Group nvarchar(10)
Declare @Whse nvarchar(10)
Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = '[%2]')
Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = '[%3]')
Select @Whse as 'Warehouse', a.Itemcode, max(a.Dscription), sum(a.[Opening Balance]) as [Opening Balance], sum(a.[IN]) as [IN], sum(a.OUT) as OUT,max(a.Price) as 'Price', ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing from dbo.OITM I1
Left JOIN (Select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.Price, (sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance], 0 as [IN], 0 as OUT
From dbo.OINM N1
Where N1.DocDate < @FromDate and N1.Warehouse = @Whse
Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
Union All
select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.price, 0 as [Opening Balance], sum(N1.inqty) as [IN], 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and N1.Inqty >0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
Union All
select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.price, 0 as [Opening Balance], 0 as [IN], sum(N1.outqty) as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and N1.OutQty > 0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price) a ON a.ItemCode=I1.ItemCode
where I1.ItmsGrpCod = @Group
Group By a.Itemcode
Order By a.Itemcode
Regards,
Vamsi. -
Table name for opening and closing stock
Hi gurus,
i want table name for opening and closing stock . How to calculate this opening and closing stock in report.
Murali.Murali,
Check out in OINM, which maintains all the details of the stock transactions..
Hope it might help you..
Regards
Gattu -
Extractors for opening and closing stocks
Hi All
I need to design opening and closing stocks (MOVEMENTS based), are there any standard extractors, cubes & queries.
Any documents (PDF) will be highly appreciated
RegardsHi,
Check: [How to Handle Inventory Management Scenarios in BW (NW2004)|http://sapbwneelam.blogspot.com/2008/11/how-to-handle-inventory-management.html]
[BI Content - Inventory Management|http://help.sap.com/saphelp_nw04/helpdata/en/fb/64073c52619459e10000000a114084/frameset.htm]
Srini -
Bapi/function module to get opening or closing stock for a posting date
I am creating a report where i need to get the opening stock value and closing stock value for the given starting date and ending date respectively for the PP report.
The T-code for that is MB5B.
So,can any1 plzz tell me how i can get the stock value for a starting date/ending date...
Is there any BAPI or function module to find this out..
or any logic?
Thanks.Hi Kiran,
You would like to findout opening and closing stock of a particular period and of a particular period....
If we would like to findout opening and closing stock of material A as of 18 / 8 / 2008,
then do like this.
go to MBEW table .. there u get opening stock as on today. Today the date is 20/8/2008. from today's opening stock if we add / subtract the movements which have happened on 19/8/2008 and 18/8/2008 u'll get opening and closing stock as on 18/8/2008.
U get the movements from MKPF ( material doc header) and MSEG (material doc item ) based on posting date. In MSEG u get movement type.
If the movement type is 101, it means the stock is added.
If the movement type is 102, it means the added stock is reversed.
from today's opening stock deduct the stock with moverment type 101 and add the stock with movement type 102.
This will give u opening stock as on 18/8/2008.
To get closing stock of 18/8/2008 ..... the opening stock of 19/8/2008 is 18/8/2008's closing stock. -
Hi,
We have a requirement in which a Customized report has to be developed. The report needs to display the opening stock , Total reciept, consumption and closing stock for supplier wise material.
We came across a standard report MB5B in which all these values are available. However inorder to display these values in a customized report we require a standard function module. Please provide us a std function module that can solve the purpose.
If the std module is not available (i dnt come across one) kindly porvide an alternaitve for the same.
Regards,
Milan ThakerHi,
Use Submit Statement to get the output data from MB5b.
Ex:
Create selection screen with required filelds and use like this
SUBMIT RM07MLBD with MATNR in r_matnr
with LGBST eq ''
with BWBST eq 'X'
with datum in datum
with bukrs in bukrs
with werks in werks
with lgort in lgort
with charg in charg
with bwtar in bwtar
with bwart in bwart
Rgds
Aeda -
Opening and closing stock report
Hi,
i have to develop a report in abap of stock (Opening and closing stock) with each material, plant, business area & monthly date wise. I got some fields from mseg like material number, plant, business area but i didnt get fileds like opening stock, purchase, consumption & closing stock
in report fileds should be like
material number
plant
business area
posting date
opening stock
purchase
consumption
closing stock
kinldy help <removed by moderator>
Moderator message: Welcome to SCN!
Moderator message: please search for available information, ask a functional consultant near you.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 21, 2011 3:35 PMYes umesh from external 99% of your stock from mvt 101, 501 is very rare case & 561 is not from external source it is initial stock updation which will be done only once when you are going live & later 561 mvt will be normally blocked for use.
You can also sort in MB5B more than one movement type click on multiple selection (that is on yellow arrow icon) & in single value tab enter mvt 101 below that 501.
This will give you report for mvt types 101 & 501 in this way you can also sort reports for more than one mvt type.
Regards
Rang
Message was edited by:
Ranganath Mysore -
Calculating opening and closing stocks at a plant (on specific dates)
Hi,
I am to develop an ABAP-report. On the selection screen, I'll have plant, material, and a date range (date_1 and date_2). The report should show opening stock on date_1, closing stock on date_2, and then there is more segregation based on movement types (along with both stock-quantity and stock-value). I am stuck at how-to's around calculating opening (and closing) stock on a particular date.
Secondly, transaction MB5B has 3 options : batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD ... Which (all) tables will I need to use so as to get both stock-quantities and stock-values ?
Please advise. Thank you.
Regards,Hi
for second question answer is
you need to consider all batch stock, valuated stock, special stock ... One of these options uses table MBEW and other uses table MARD to get both stock-quantities and stock-values
hope it helps
Edited by: ppkk on Dec 10, 2008 10:58 AM -
Dear all
iam trying to generate the opening and closing stock report for normal materials and sub contract material , so what logic i have to uss to generate the report
1) opening stock its movement type
2)recived movement types
3) issues movement type
4) closing stock
standard t-code mb5b
i want to make new report,
waiting for replyHave you tried with MB51 / MB52 ??
Lakshmipathi
Maybe you are looking for
-
How can I enable Touch ID for Apple Pay without turning Passcode on?
I have an iPhone 6 w/ iOS 8.1. I strongly dislike having to unlock my phone when I want to use it. Until I purchased the iPhone 6, I have never enabled a passcode. My phone is never out of my immediate control and when I want to access my phone, I wa
-
How do I open the CD tray using Windows Keyboard
How do I open the CD tray of my eMac using a Windows Keyboard that does not have a eject button? If I use uControl Program to switch the alt and Window Keys (the option and ⌘ Keys) I can't use the iJect Program.
-
Hey guys, I just came back home after getting my new iPhone 4S at the Apple retail store, I've bought the iPhone from AT&T without a contract at full retail price 649 + taxes. The person who sold it to me kept repeating it won't be unlocked be I boug
-
Create and sign PDF with IAC?
Hello, does anybody know, how to create simple PDF and sign it with X509Certificate from .NET managed application? It seems to me, that it is not possible with Acrobat Interapplication Communication API. Do I really need LiveCycle for this operation?
-
I have an ipad 2 and some area's of the screen has stop working, can anyone help?
hi my ipad 2 screen has stopped fuctioning in parts of the screen when my ipad is tilted on its side and the keyboard is up some letters wont respond as quick as the others, its continuously the same letters, can anybody help solve this problem, i do