Table to see stock on particular date
Hello SAP Gurus,
I know that through mb5b report you can see the stock on posting date.But guys can u tell me that from which table and field it takes the data?
Please look at transactions MCBE and MCBR. They are part of the inventory standard analysis. These will show total consumption for the selected time periods.
There is a ton of data availablie via the Logistics Information System and I think it is the most under utilized functionality in SAP. If consultants and users really learned how to use this functionality you could probably do away with 80% of your custom reports.
You can also use flexiblie analysis against structure/table S032, (not S039), and create your own analysis and reports. These can be highly customized and saved and reused. Variants can be created and the results can be saved in personal reports, emailed or downloaded.
Other structures you might find of use in your particular query would be
S031 - Movements
S032 - Stocks
S033 - Movements (indiv. records)
S034 - Movements (batches)
S035 - Stocks (batches)
S039 as suggested above provides primarily averages which is not what your looking for.
Craig
Edited by: Craig Snyder on Apr 30, 2008 1:26 AM
Similar Messages
-
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. -
Need stock on particular date entered on selection screen
I am creating a stock in transit report and need stock on particular date entered by the user on selection screen.How do I calculate stock on a particular date?
same thread...
Re: Stock on a particulare date -
Vendor stock on particular date
vendor stock on particular date..any std Tcode
plz help
mb5b,mblb,mc.9 wont work
thanks
ramesh reddy(vallur)ME2O
Or
ME2M & ME2L, choose , Item Category L, and choose selection parameter of your requirement.
Choose MB5B,
Choose radio Button Special stock and give special stock as O.It may help u.
Edited by: sudhansu satapathy on Dec 16, 2011 11:46 AM
Edited by: sudhansu satapathy on Dec 16, 2011 11:49 AM -
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. -
Stock on particular date (performance issue)
Hi Folks,
I m calculating stock at all vendor on a particular date.
But it takes very long and time_out occurs.
I m calculating opening closing provided return and rejection based on movement types.
The report hangs up at following particular Join.
SELECT MKPFBUDAT MSEGBWART MSEGMATNR MSEGLIFNR SUM( MSEG~MENGE )
AS MENGE
INTO CORRESPONDING FIELDS OF TABLE IT_OPEN
FROM
MKPF INNER JOIN MSEG ON
MKPFMBLNR = MSEGMBLNR AND
MKPFMJAHR = MSEGMJAHR
WHERE MKPF~MJAHR = D_YEAR AND
MKPF~BUDAT GE D_DATE AND
MKPF~BUDAT LT S_BUDAT-LOW AND
MSEG~BWART IN ('541','542','543','544','551','702') AND
MSEG~XAUTO NE 'X' AND
MSEG~MATNR IN S_MATNR AND
MSEG~WERKS IN P_WERKS AND
MSEG~LIFNR IN P_LIFNR
GROUP BY LIFNR MATNR BUDAT BWART.
Is there any way to increase performance by breaking this inner join into select statements or anyhow.
Regards
SachinHI,
On seeing your code, it seems like,
SELECT MKPFBUDAT MSEGBWART MSEGMATNR MSEGLIFNR SUM( MSEG~MENGE )
AS MENGE
INTO CORRESPONDING FIELDS OF TABLE IT_OPEN
FROM
MKPF INNER JOIN MSEG ON
MKPFMBLNR = MSEGMBLNR AND
MKPFMJAHR = MSEGMJAHR
WHERE MKPF~MJAHR = D_YEAR AND
MKPF~BUDAT GE D_DATE AND
MKPF~BUDAT LT S_BUDAT-LOW AND
MSEG~BWART IN ('541','542','543','544','551','702') AND
MSEG~XAUTO NE 'X' AND
MSEG~MATNR IN S_MATNR AND
<b>MSEG~WERKS EQ P_WERKS</b> AND
<b>MSEG~LIFNR EQ P_LIFNR</b>
GROUP BY LIFNR MATNR BUDAT BWART.
Please see the code marked with bold as parameter passing in the select statement must be EQ and not IN.
Secondly, remove the aggregate function SUM from the select. First select all the records into an internal table and either use control break statements or Collect to sum up the entries.
Next, while selecting from the database use INTO TABLE IT_OPEN rather than into corresponding fields of table.
Also remove the movement types from the select and restrict it inside the Loop and Endloop.
Lakshminarayanan
Please mark all helpful answers for points -
Inventory cube 0IC_C03 ,Stock on particular date
Hi All,
We are trying to get the stock on a particular date using cube 0IC_C03 ,but we are unable to get the total stock on a given date.
1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting null values.
I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
Thanks®ards,
SunithaHi,
Check
Treatment of historical full loads with Inventory cube
Setting up material movement/inventory with limit locking time
1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting null values.
I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
For 2LIS_03_BX it will give the extracted date only
2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
try with below options.
Use :
0VALSTCKVAL " for Value
0VALSTCKQTY " for Qty
0CALMONTH " for Month
Use the above combinations in New Selections in columns and go it.
For Qty Opening:
New Selection bad drag abd drop following things
0VALSTCKQTY " for Qty
0CALMONTH " for Month and restrict with less then or equalto option variable (single value, user input) and set the offeset
value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
For Qty Closing:
New Selection bad drag abd drop following things
0VALSTCKQTY " for Qty
0CALMONTH " for Month and restrict with less then or equalto option variable (single value, user input) .
In the same way build for Value and other Keyfigures on 0IC_C03.
And
Drag & drop
0MATERAIL
0PLANT " Give some Input Variable.
See the steps.
Treatment of historical full loads with Inventory cube
Setting up material movement/inventory with limit locking time
If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
Thanks
Reddy -
Is there any standard report for GR / IR to see as on particular date
Hi ,
Is there any standard report for GR/ IR to see as on paricular date.
please help me. points will be given.
regards,
Hari priyaHi,
Please go to MR11.
It may help you.
Regards,
Jigar -
How the system finds stock of material on specified date .
Example In report MB5b system gives stock of material on date we have selected . If I select date 31 Mar 2010 then system displays stock as on 31 Mar . From which table it comes ?
(In table MBEW we can get stock as on todays date)Hi,
In MB5B, the system will first take in to account of all total valuated stock for the particular valuation area on system date. This will be in the table S032. Then it will take in to account total issues and receipts during the back date. Then the difference will be added or subtracted accordingly from the present stock and value.
Regards -
Regarding Stock on Particular Date
hi all,
I am getting Current Stock through MARD table but when i am going to Previous date i am getting Current Stock only.
How can we calculate Previous day Stock.
Please suggest solution.
Regards
ReddyRM,
Why you not using SAP standard report.i guess there is hell lot of reports on stock already in System.
use them for less error risk.
MB51,MB5B,MMBEthere all ares tock report which build by system only.
Amit. -
Table to See Stock Transport Order Partners
Hi All.
What table can I see the partners defined in a Stock Transport Order?
I've realized that VBPA is just for sales order documents.
Thanks,
JimHi,
Select the PO's from the EKKO table of DOCU type "UB" which is STO's
Then Select the parters from the EKPA table for the entries of the selected EKKO Po's
Reward Points if it is Useful.
Thanks,
Manjunath MS -
How to find out all table names which has a particular data
Hi,
How could i get all the table names from a database(for a schema) which has data 'KST6490' in one of the fileds in the table.There are many tables with this
data. Data type is Varchar2. Thanks.One approach would be to create a procedure which retrieves the name of all tables in the schema using the user_tables view. Then use the user_tab_columns view to get all the column names and types. If the type is varchar2, then dynamically create a sql statement which runs a query on that column using the value which you are looking for. You would need two cursor loops for this approach: one for tables and one for columns. This approach requires good PL/SQL programming skills.
Alternately, many query tools, such as Golden, provide a search capability on query results. Just do a select * from the table and search on the results. This would need to be done table by table and the results would have to fit in the memory available to the tool.
Alternately, you can write table contents to a text file on the a server and then search the text file using operating system tools such as grep. This would require good OS scripting skills. -
Hi guys,
Can we get stock of any material as on a specified date without using mb5b? Which table will store this data?
Please help me out on this
thanks in advance
saiHello Chintu,
MB5B is the best report to get material stock on specific date.
There is no direct table which stores stock on particular date, but SAP system calculates strategically with GR, GI and material transfers to get this data. If you want report on that then I think need to develop it.
Does MB5B not meet your requirement? Pl. explain the requirement so we can suggest accordingly.
Regards
Arif Mansuri -
Hi All,
Like MB5B is there any t.code or table to see stock on posting date in Warehouse? (like in so and so bin and in that S.type)Hi
You can use transaction LT22 to see all transfer orders to or from a storage type and storage bin.
In the section Reference you enter if it should be source or destination data that should be taken into account.
Don't forget to enter the date at the bottom of the screen.
Br,
Erik -
FG stock on a particular date for a specific customer
Hi all,
I need to develop one report in which i need FG stock for a particular customer on a particular date. For ex on 5/11/11 what was the FG stock against xyz customer.
Is there any logic available for this requirement. can you please tell me which tables i should look for?
ThanksFG stock for a particular customer on a particular date.
Is it Make to Order stock? If it is not, then you may not find the details. If it is MTO, then use t.code MB5B. Using this, you can find stock on particular date.
Regards,
Maybe you are looking for
-
User inputted letters with dynamic fields in Report Builder
I'm proactively trying to get certain aspects off our hands in IT and more specifically, the way letters are generated through ColdFusion. Right now we are using activeX controls (with some vbscript and asp pages) through IE to do Word mail merges f
-
Blank DVD +R eject from drive
Alright, I've been burning things with these same dvd's for the past couple days without a single problem, but all of the sudden today, my drive keeps ejecting the blank dvd's. It still works fine with movie dvd's, cds, and even the same dvd+r's that
-
Conferring with multiple possible Transferees without returning to the Caller
I was asked a question by the receptionist today that I thought would have a simple answer but for the life of me I couldn't work it out or find it documented anywhere I looked. We have a BE6K system with a 8961 handset at reception and 8945s around
-
I have Windows XP Pro with SP3, Adobe 11 installed yesterday today it failed
Installed Adobe Flash Player 11 (version 3.3.7.0) yesterday and today joined an online meeting and the Adobe Flash Player Settings screen appeared requesting permission to store information on my hard drive. I clicked on the "Allow" button multiple
-
when i received my phone our it dept synced from a computer @ work i set up my acct w/itunes but i am not able to install apps because it asks me for password used for original syncing how do i change to my password??