Stock report using mbew and mbewh
Hi to all.
i want to prepare o report for month end stock.
i am preparing this report using tables mbew and mbewh..
as per my knowledge goes the current stock is in the table mbew and history stock is in the table mbewh.
i am picking up the current data from the mbew and history data from mbewh..
the report is working fine till for january to august..
but i dont know what wrong happen when i run it for the last month of previous year i.e 01/12/2005.
it is showing some data difference for this period and also due to this some difference for earlier periods..
please suggest me what could be the reason..
because i have worked a lot on it and it is also working fine for this year...
also tell me what could be the problem..
i will surely reward back with points..
HI
I guess the problem might be lying with the way you
are handling the date or period.
Can you post your code???
Kind Regards
Eswar
Similar Messages
-
Project Stock report using QBEW and QBEWH tables
Dear All,
First of all Happy New Year to all of you.
Here is my question: I want to build a ABAP report for stock situation for project stock. The report demands the stock by closing month. Suppose I run the report for month 11/2010, it should show the closing stock at the end of the month 11/2010.
Now I am using the values from table QBEW for this purpose.But QBEW table shows only current entries. If a material stock is changed or value is changed, it goes into history table QBEWH.
Now problem is that if I try to make sum of QBEW and QBEWH, the stock value is excessive. Now I am not sure which entries I should consider from QBEWH table for this purpose.
Has anybody worked on similar requirement?
Thanks in advance!
Regards,
Mahendra DigheHi,
Please try the report S_P00_07000140 - Inventory and Raw material for special stock report.
Thanks.
abdul -
Agewise Stock Report using FIFO out of 0IC_C03
Hello,
I have a requirement where I need to create agewise stock report using FIFO. I have the stock availability from 0ic_c03.
Can any one plese tell me how to achieve the FIFO based agewise stock. I have various age buckets like 0-30 , 30-60, 60-90 etc.
If the total stock is made up of multiple receipts and I also have few issues, how can I get the balance stock based on FIFO using the GR date.
I would appreciate your help.
Regards
VasunHi,
This InfoCube allows you to evaluate stocks from ERP.
A new feature in this InfoCube is the pre-existing stock key figure Valuated Stock Quantity (0VALSTKQTY) and the associated movement key figures Receipt Quantity Valuated Stock (0RECVALSTCK) and Issue Quantity Valuated Stock (0ISSVALSTCK).
This is made possible by including the InfoObject indicator Evaluation Special Stock (0INDSPECSTK) in the InfoSource Material Stocks (as of SAP BW 3.1 Content) (2LIS_03_BX). The InfoSource used up until now, Transfer BW: Stock (2LIS_40_S278), did not recognize this InfoObject.
Note the Remarks on Filling Non-Cumulative InfoCubes.
The following Basis key figures can be restricted in the query definitions to stock categories (0STOCKCAT), such as project stock, and to stock types (0STOCKTYPE), such as quality inspection:
· Quantity of Valuated Stock (0VALSTCKQTY)
· Receipt Quantity Valuated Stock (0RECVALSTCK)
· Issue Quantity Valuated Stock (0ISSVALSTCK)
In this way, for example, you can evaluate the quantity of valuated project stock (Q).
The newly-included Basis key figures are only updated through the InfoSources 2LIS_03_BX and 2LIS_03_BF.
In this way, none of these Basis key figures can be used in queries that are built up on InfoCubes which were inventory-initialized through InfoSource 2LIS_40_S278. Moreover, the queries 0IC_C03_Q0013 to 0IC_C03_Q0016 cannot be used in the combination of InfoSources 2LIS_40_S278 and 2LIS_03_BF.
Note the following procedures when filling the InfoCube 0IC_C03 for the first time with non-cumulative data from ERP:
1. Create non-cumulatives with the program BW: Initialization of Opening Non-Cumulatives in Transfer Structure (RMCBINIT_BW).
2. Initialize the movements/revaluations with the program RMCBNEUB/RMCBNERP.
3. Post in the InfoCube using the update method Creation of Non-Cumulatives from the InfoSource 2LIS_03_BX.
4. Post in the InfoCube using the update method Initialization of the Delta Process from the InfoSources 2LIS_03_BF and 2LIS_03_UM.
Refer to SAP Note 0643687 (Compression of Non-Cumulative InfoCubes) regarding the subsequent steps for compression.
5. Compression of the request from 2LIS_03_BX with update of the marker.
6. Because in this case you are posting movements and revaluations in the InfoCube that occurred before the non-cumulative creation and which lead to this non-cumulative creation, you must execute a compression without updating the marker. For more information, see InfoCubes.
7. Thereafter, you can transfer new movements and revaluations to the BW system as usual (for performance reasons, we recommend that you regularly compress with updates of the marker, see also InfoCube Compression).
Update Logic
When updating the DataSources 2LIS_03_BX, 2LIS_03_UM and 2LIS_03_BX, the System applies the following logic:
Characteristic Value Calculation
In principle, values are updated with Plant, Material, and Stock Category only. Quantities are updated with these characteristics, as well as with Storage Location, Batch Number, and Stock Characteristic (see also SAP Note 589024: Evaluations in BW with the Characteristics Storage Location and Stck Char.).
Key Figure Value Calculation
The source field for quantities is the field CPQUABU, and for values it is the field CPPVLC.
In the update, the InfoSource fields Stock Characteristic and Stock Category control whether "special stock" key figures are updated, such as Quality Stock or Stock in Transit (only relevant for 2LIS_03_BF and 2LIS_03_UM).
The general key figures (for example, Total Stock), however, can also be restricted in queries to Stock Characteristic and Stock Category, and then deliver the same result (key word: account model versus key figure model).
The values for Stock Characteristic and Stock Category are dealt with on the extractor side in the LMCB1F20 include (routine STA_VERAENDERUNG).
The InfoObject 0INDSPECSTK (field KZBWS) also controls whether the sales order stock / project stock is valuated or non-valuated.
The system valuates the transaction key to decide whether the issue movement key figure or receipt movement key figure is updated. For more information, see SAP Note 492828: Determining the transaction key for 2LIS_03_BF + 2LIS_03_UM.
InfoSources
This InfoCube is based on the following InfoSources:
· 2LIS_03_BX
· 2LIS_03_BF
· 2LIS_03_UM
Characteristics
InfoObject
Description
0MATERIAL
Material
0PLANT
Plant
0STOR_LOC
Storage Location
0BATCH
Batch Number
0STOCKTYPE
Stock Type
0STOCKCAT
Stock Categories
0GN_VENDOR
Vendor
Time Characteristics
InfoObject
Description
0CALDAY
Calendar Day
0CALMONTH
Calendar Year/Month
0CALWEEK
Calendar Year/Week
0CALYEAR
Calendar Year
Key Figures
InfoObject
Description
0RECVS_VAL
Value Received - Valuated Stock
0VALSTCKVAL
Value - Valuated Stock
0ISSVS_VAL
Value Issued - Valuated Stock
0ISSBLOSTCK
Issue Quantity - Blocked Stock
0ISSCNSSTCK
Issue Quantity - Consignment Stock
0ISSQMSTCK
Issue Quantity - Inspection Stock
0ISSTRANSST
Issue Quantity - Stock in Transit
0RECBLOSTCK
Receipt Quantity - Blocked Stock
0RECCNSSTCK
Receipt Quantity - Consignment Stock
0RECQMSTCK
Receipt Quantity - Inspection Stock
0RECTRANSST
Receipt Quantity - Stock in Transit
0QMSTOCK
Inspection Stock
0BLOCKEDSTK
Blocked Stock
0CNSSTCKQTY
Quantity - Consignment Stock
0TRANSSTOCK
Stock in Transit
0ISSSCRP
Issue Quantity - Scrap
0ISSVALSCRP
Issue Value - Scrap
0RECTOTSTCK
Receipt Quantity - Total Stock
0ISSTOTSTCK
Issue Quantity - Total Stock
0TOTALSTCK
Quantity - Total Stock
0ISSVALSTCK
Issue Quantity - Valuated Stock
0RECVALSTCK
Receipt Quantity - Valuated Stock
0VALSTCKQTY
Quantity - Valuated Stock
0VENCONCON
Consumption Value - Vendor Consignment Stock
Units
InfoObject
Description
0LOC_CURRCY
Local Currency
0BASE_UOM
Base Un
Regards,
Hareesh -
The relation between table mbew and mbewh
MORNING!
I wanna know the relation between table mbew and mbewh.
I finded some materials in table mbewh have total valuated stock , but these materials don't have value .
Thanks a lot !Hi Roy, please check this link.
http://www.sapfans.com/forums/viewtopic.php?p=4330&sid=a1b0e2c950bb90aa410b796d9ce0a13c
REgards,
Rich Heilman -
Regarding BW standard extractor for material valuation ( MBEW and MBEWH )
Hi All
I would like to extract data from MBEW and MBEWH tabels to get material valuation information. Is there any standard extractor avaiable to fect this this information to BW? I have seacrhed forums , some one suggested to use 0CO_PC_ACT_05 extractor but they have also mentioned it would not fetct data from history table MBEWH table. I need to extract full information based on both the tabels for all the years.
Is there any extractor available?
Please advise
Thanks
VennelaHi Vennela:
We did not use any DSO from standard content. We created a custom write optimized DSO with the same key fields as MBEW.
We do a delete data and full reload every night.
Then we load 0MATPLANT from the DSO.
We also do a currency conversion to convert all prices to USD and load a custom attribute of 0MATPLANT to hold USD prices.
These material prices will get over written every day with the current valuation for that day.
Thats our data flow.
We did not have a requirement to hold history from MBEWH. you might be able to hold history within BW if you load the data into another DSO with a extra key field for the system date of the day you are loading data for.
Hope this helps.
Good Luck.
MP. -
Very Urgent..How to create a report Using SQ01 and Sq02.
Hi Friends,
It's very urgent.pl help me in generating a report using SQ01 and SQ02.
Help is appreciated.
thanks In advance.
Regards,
Nanditha.Check out these links...
http://www.insightcp.com/res_15.htm
http://www.ams.utoronto.ca/Assets/output/assets/adhoc_2990830.pdf.pdf
Also, do basic search in this forum...you will find a lot of threads related to this.
SKR -
Batch wise stock report with qty and value as on date
is there any report so that we can see the stock qty with value as on date,
i have tried mb5b but it is showing only qty and batch combination not qty value and batch combination
plz suggest me, it is very urgent.
nitinMBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
There is no table in SAP that holds the stock information on daily basis.
You have to develope this yourself. Easiest method by copying a table like MBEW and MARD daily to a Z-Table.
A stock situation at a certain date can be calculated with MB5B.
Edited by: Jürgen L. on Aug 5, 2008 4:06 PM -
Consingment stock report with values and periods..
hello guys,
i have an issue here.. consignmet stock are "managed" within SD. Is there a standard report which cointains info about consigment stock, its amounts (values) and periods ?
Main point here - consingment stock is processed within SD, so for example t.code MB54 is not useful here .
Thanks guys !
Best regards,
LaimonasHi......MB54 wont help since that shows the Vendor consignment stocks.
Use MB52 creatively like this.
Goto MB52
Put your plant name.
In the section 'Selection : Special stock', Mark the check box and put 'W' in Special Stock indicator.
Choose the other settings as per your choice.
Execute.
Now you will see a whole lot of stocks along wioth the Consignment stocks. If you only want to see the consignment stocks, do like this
In the list, put you cursor on the column 'S' which is special stock (i think the 4th colm in the list). Now choose the filter icon and put the filter criteria a 'W' i.e. customer consignment stock.
You can save this is a variant with a name, say /ZCONS.
Now come back to the initial MB52 screen. In the bottom section for display options, put this variant name in the field Layout.
So now when you next run the report with this variant, you will only get the customer consignment stocks with their values.
Hope this helps. -
How to create a crystal Report using C# and SQL Server
Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
but i got an error on the adding of server name and database portion.. thanks a lot in advanceHello,
Crystal Reports are supported on
http://scn.sap.com/community/crystal-reports.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Standard SAP Reporting Using Classes and Characterstics
Hi Experts,
I am currently interested in if there are any options to using classes and characteristics within standard reporting in SAP ECC. I know some reports have the selection critiera and allow for other fields to be added to reports. Does anyone know the reports that use classes and characteristics or have the ability to use them. Any help is appreciated.
Regards,Consultant 01,
I am not sure of the specifics of your question. The reporting approach depends on the objective of the reports and the business requirements. In general, transaction MC03 can be use to report via classification characteristics. This key figure reporting option covers many classifying attributes.
If you want to report using batch classification and characteristic values, BMBC offers options for reporting on batches. In this case you may use the classification tab of BMBC to enter the batch class for "search with batch class" and/or "search with selection class". The latter allows you to view and/or narrow your search by characteristic values.
I hope that this helps.
Regards,
Wayne -
FI Reports using ABAP and their Related Tables
Hi can anyone tell me some of the commonly developed reports from FI using ABAP and their related Tables.
Thank YouYou can find the details about the FI module here
http://www.sap-img.com/sap-fi.htm
Regards,
Ravi
Note : Please mark all the helpful answers -
Required Sample Programs on Tree Reports using ALV and Reports
Hi Pals,
I require sample progrms on Tree Reports using Function Modules for both ALV and Classical Reports. Send the list of sample programs and function modules used for tree reports.
Regards,
Pradeep.g
<removed by moderator>Check these threads..U can find sample programs.
tree type report
ALVtree reports - Example code and information on creating ALV tree reports
http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htmhttps://alv tree
ALso check this DEMO Program
SAPCOLUMN_TREE_CONTROL_DEMO
CL_GUI_ALV_COLUMN_TREE
Sample code:
http://www.geocities.com/victorav15/sapr3/utilities/zvvooa3.txt -
Stock Transfer using 303 and 305
Hello
When we are doing stock transfer from 1plant to other plant and we have done 303 movement but 305 is yet to be done,at this instant whom does the stock belong in SAP.
Is it considered as stock in transit or in stock of receiving plant and where can I see it?
Regardshi
when u transfer the stock in 303 the stock is placed in IN TRANSIT AND TRANSFER stock and the liability will be with receving plant
you can check this in MB52 stock statement
regards
kunal -
Report for historic valuation of material-MBEW and MBEWH
Hello,
Our client needs a report that shows the value of stock of past period, the medium price during last exercises. Actually they have a Z report that show all this data, considering the data on MBEWH. The problem is that MBEWH only is updated if there is a price change (for example MR21) or a goods receipt. This table only will be changed when in the comiing month a material have any movement of stock.
My question, if we catch the values LFGJA and LFMON OF MBEW table we consider the last change of price, and the key for entering to MBEWH table to get the past values.
I have checked too, the MC.9 transaction. Looks like fine too, but if we can develop a program for accessing to the S039 table, this table is transparent table and we can not get any data. The data is providing from S032 table, and I have seen, that this table sometimes contains insconsistency values or negative values.
Is there another transaction to get our client's requeriments???
ThanksHi Ravikumar,
Hope you are an ABAPer. If not also, you can achieve this through an ABAPer. As mentioned by others, you need to check whether your requirement is met by the standard transaction MB5B. You need to check whether this transaction gives you the exact opening and closing balance for a material. If this gives what you want, then you need to make some small enhancement in the MB5B report program so that you will be getting the result of the opening and closing stock. In this enhancement you will use EXPORT to export the result to your program where you can IMPORT it. This procedure is explained in detail in a document created in SCN dated 30th November, 2012 by Sijin Siji. Have a look in that.
That document is descriptive and it will be helping you in solving this issue. If you have any doubts, please revert back.
Regards,
Abijith -
Valuation class wise stock report for opening and closing stock
Dear all,
My Clint is asking the report for the opening stock and closing stock with respect to valuation class is there any standard report is available please guide me
regards
pramodDear sir,
in my case matarial is split valuated matarial, matarial is maintained with two valuation classes
when seeing the report MB5B its not showing the price valuation class vise, its showing combined together only, again i am using the MC.9 there also same problem its not showing both the valuation class vise price its showing only one valuation class price, if we check for another valuation class price for that particular matarial its telling no data is availabel for the valuation class
regards
pramod
Maybe you are looking for
-
My new backbeat GO 2 headset is not recognized by bluetooth service of my new ipad mini with ios 7.0.4! It doesńt appear in the list of bluetooth devices. It was working on previous versions! What happens? Could someone help me? Thanks!
-
What is the relationship between Process and Session parameter in Oracle
Hi All I ran into a problem "ORA-00020: maximum number of processes (150) exceeded " on the other day and I want to fix this temporary by increase the process by some number like 200. Someone suggesting the syntax to fix my problem then the database
-
How to cache images retrieved from MDM on Java WebAS
Hello Colleagues, We have a scenario where we are trying to retrieve image records from the MDM using Java APis. Instead of hitting the DB everytime, is there a way to implement caching? For instance, is it possible to cache the images on the java We
-
Hi How to use "server certificate" to develop HTTPS or SSL proxy server.Can any one give me detail in steps.
-
IPod freezing when scrolling down the music app?
I own a 3rd Generation iPod touch. I plugged it into my computer as usual, but when I decided to disconnect and start listening to the music I had recently put in, I realized that it wouldn't let me scroll very far. I wanted to listen to the Cream al