Reg: Closing Stock
Dear All,
With the help from forums, i had written a Query to generate the closing stock for a given period, with below said columns
Itemcode, Itemname,In Qty, Out Qty, on Hand, Price, Value, Warehouename
The result is coming correct, but there is a difference for the price when compared to my Query and SAP Report,
reason is that SAP is picking up the Average Price for some items and Last Purchase Price for some items.
Since in SAP the price is maintained at three different levels and which are:
1. Last Purchase Price
2. Average Price
3. Warehouse wise price
Can any one suggest me how to get the price for closing stock, and below is the code.
select m.warehouse, w.WhsName, m.ItemCode, m.Dscription, sum(m.inqty) as inq, sum(m.outqty) as outq,
T0.LastPurPrc as 'Price', sum(m.inqty-m.outqty)as 'on Hand'
from oinm m inner join owhs w on m.warehouse = w.whscode
inner join OITM T0 on m.itemcode = T0.itemcode
where m.DocDate between [%0]and [%1]
group by m.ItemCode, m.Dscription, m.warehouse,w.WhsName, T0.LastPurPrc
having sum(inqty) <> sum(outqty)
order by m.warehouse,m.ItemCode
Currently we are using 2005B PL35.
Please help us to resolve.
Regards
Shanker
Hi All,
Sorry for delay in replying.
I had executed the query and verified the same.
The Quantities are matching as per SAP report, but the Price / Item cost is not matching since SAP considers price at two levels.
1. when GRPO is raised tax is not considered
2. When A/P Invoice is raised tax is considered
For some Items the Price / Item cost is matching since A/P Invoice is not raised, the issue is only with items for which A/P Invoice is raised.
Please help me out to get the Price / Item cost as per SAP report,
P.S: i had run the Inventory Audit Report for verification.
Regards
Shanker
Similar Messages
-
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. -
Closing Stock Valuation doesn't matched physicallly
Hi SAP Gurus.,
Can you please assist me reg this issue"Closing Stock Valuation doesn't matched physicallly".
May I know the possible rectification ways to solve this problem.
Thanks in Advance,
Regards,
Balaji BhonslePhysical Inventory...
http://www.sap-img.com/materials/physical-inventory-process.htm -
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 -
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 at storage location level
Dear all
I need a std report which will give the opening and closing stock at storage location level, Or should I go for dev. if yes please guide me.
Regards
SamuelHi,
check if you can use S_P00_07000139 report, select "Display stock movement by plant (with amount) and further select Sloc from layout.
Regards,
Vikas -
Opening and closing stock balances
Hi
What report can i use to show the opening and closing stock balances of materials for the last 12 months.
Thanks
VineshYou can view the report in MMBE.
other than this you can try
MBEWH and MARDH
Also follow the link:
Re: op.& closing stock detail in MM
Thanks
Nisha -
Open order qty,Delivered qty,issued qty, and closing stock---Tables
Gurus,
I need to Prepare a report which will show open order qty,Delivered qty,issued qty, and closing stock.
Please help me with table names where i can find .
Regards
venu gopalHi,
Try EKPO & EKBE tables..
Thx
Raju -
Opening Stock and Closing Stock Calculation
Hi,
My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular material ???.. what are the tables and fields for calculating them??..
Thanks,
Sri
Edited by: Sri on Feb 13, 2009 8:33 AMHi
We have done a similar reports. One showing opening stock/Closing stock and another one showing all the transactions for a particular day. What we did was we developed a program to fetch data from MARD table for unrestricted, blocked & Qulaity stock(Our requirement talks only about these 3 stocks). And we scheduled the program exactly at system time 00.00 hrs with A class job.(today's closing day stock is nothing but tomorrow's opening stock)
And for the second report which needs to pick all the transaction for a particular day, we picked it from MB51 entries. It is nothing but query between MKPF and MSEG.
I hope this helps. -
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 helpHi
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 -
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 -
Storage location wise Opening/Closing Stock on posting date (mb5b)
Hi,
Report mb5b gives opening stock and closing stock as on date. In the selection screen, if we do not enter specific storage location then the opening/closing stock is displayed as sum of all storage location stocks for a given material.
Where as if we enter storage location, it gives storage location specific output. (with Storage loc/batch stock radio button)
My requirement is - without entering storage location in the initial screen, the system should display storage location specific opening/closing stock.
To get this, presently I need to execute mb5b transaction individually for every storage location.
Warm regards,
MSHi Madhavi
This report you can have in T code MC.6 and another t code for opening and closing stock in t code MC.9
Regards
Vivek
-- Reward if helpful
Edited by: Supergene on Feb 28, 2008 3:17 PM -
Opening and closing Stock report at Storage location level- date wise
Dear all
Is there any standard report to view opening and closing stock at storage location level? ( we have MB5B which resets the entry screen if we enter SLOC details).
Thanks
SamDo I have the option of selecting Storage Location wise opening and closing stock on a particular date or period, that is what I have requested? Is it possible, evenafter selecting storageloc/batch stock and entering all the SLOCs in the selection creen, the report output does not contain any SLOC, and using ctrl+F8 or display variant does not have SLOC as a field also.
pls gudie
sam -
Closing Stock on Particular Date(MB5B Tcode)
Hi Experts,
I need closing stock as on some particular date. For e.g. closing stock as on 28.02.2014.
In my requirement i have to use that closing stock value for further calculations in a new customized report.I can see closing stock value by using MB5B tcode.
Please suggest some way to get closing stock as on some date so that i can use that in my Report.
Can i directly call MB5B transaction in my Report and get closing stock value?
Thanks & Regards,
PankajHello Pankaj,
In your Customised Report use MKPF and MSEG table
MKPF -----> Material and date range as the input
Then Pass Material document number from MKPF to MSEG table
MSEG -----> based on material document number from mkpf
Create Temporary variable
values comes from the mseg where have credit and debit entries
if debit entry "S" then subtract the values of the Mseg table from the temporary variable1
if credit entry "H" then Add the values of the mseg table to the temporary variable2
finally Add the temporary variable1 and temporary variable 2 and get the total stock. -
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.
Maybe you are looking for
-
How to place the PO no in VL10B
Hi All, when i click on the PO number from ALV display, thecall transation will direct to VL10B. my requiremnt is to place the PO number in VL10B which is there in the second tab automatically. please help me out to achieve this. thanks in advance s
-
So, I have an external hard drive that was connected to my mac not able to access.
Under Disk Utility I was able to see it how ever I was unable to access it. So I made a partition thinking that might help. However I think it erased that the disk? Can I recover or undo? or remove the partition? what can I do to get the information
-
Portlet Entitlement Problem with Quote in Portlet Title
I have a portlet originally called "Manager's Toolbox". When I try to set an entitlement for this portlet to be for the manager role only, the entitlement is ignored. The portlet shows up for all users. I renamed it to "Managers Toolbox" (without the
-
how to connect CCTV, i can show the video streaming, zoom, capture screen, etc how can i do this and what free library i should use? thx
-
Dear Sap Guru's, When I do the blocking of the customer for the further transaction in XD05. In the MIS/ LIS and other customized reports these customers are visible. Is there any option to hide the customers who have been blocked in the system. rega