Inventory query
I am trying to get a query that contains the following fields from each table.
OITM
itemcode
U_EXT_DESC
OITW
whscode
onhand
iscommited
OSRN
U_stated_cost
location
U_suggested_price
I have multiple warehouses, so I only want items that have qty 1 or more on hand value from MAIN or TECH warehouse to appear in this list
If the onhand value is 0, then I do not want it to appear on this report.
If the location and stated cost and suggested prices are duplicate lines, I want to consolidate to just be ONE row.
Can someone please help me write this query??
Hi Amber!
Try this one. I just forgot to include "T0.U_EXT_DESC" in the 'group by' clause. You can still use the query above but make sure to delete T0.U_EXT_DESC on the 'select' clause
SELECT
T0.[ItemCode], T0.U_EXT_DESC, T0.[ItemName], T1.[WhsCode], SUM(T1.[OnHand]) 'On Hand', SUM(T1.[IsCommited]) Comitted, T2.[Location]
FROM OITM T0
left JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
left JOIN OSRN T2 ON T0.ItemCode = T2.ItemCode
WHERE
T1.[OnHand] > 0 and
T1.[WhsCode] IN ('MAIN','TECH')
GROUP BY T0.[ItemCode], T0.U_EXT_DESC, T0.[ItemName], T2.[Location], T1.[WhsCode], T2.[U_STATED_COST], T2.[U_SUGGESTED_PRICE]
If it is still error, please write the error message.
Thanks!
Similar Messages
-
Non-***. KF are coming blank for newly created Plant/Mat in Inventory Query
Hi,
In my BEx query, Total stock quantity values for newly created Plant is not coming.
BW and R3 have gone live on the same date.
(1) Did Stock initialization for existing Plant.
(2) Filled set up table and did INIt load for the existing plants.
(3) compress the request in BW.
BX - with marker update
BF - with no marker update.
Now two more plants are created in R3 side with their opening stock values.
Did Delta to BW.
New Plants are loaded into BW. I can see "Receipt Qty" value in 0IC_C03 cube - 1200.And Issued qty - 000
But When I execute Bex query, "Total Stock qty" and "Stock in Transit" (these all are non-cumulative keyfigures) are coming as blank.
Please suggest. Quick response is much appreciated. This is Production (after Go-live issue).
Thanks in advance.Any sugestions ??
-
Please help with this inventory query
I want 2 display
item_num(segment1), description(mtl_system_items), on_hand_quantity, reservations, availability
pleseeeeeeeeeeeeeeeeeeeee help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
i guess we need to join these three tables ??
mtl_system_items
mtl_onhand_quantities_detail
mtl_reservationsAny body thereeeeeeeeeeeeeeeee :(((((((((
-
Average Cost of inventory [Query Required]
Hi All,
*[an advance thank for an urgent help]*
I had find average cost 5.59 based on following information using excel. i have Qty, unit cost and linecost and tran_type column in databased.Based on below calculation how i get this info through SQL. i.e. Cummulative Balance and Cummulative Avg. Cost
Tran_type Tran_affect Qty Unit Cost Linecost Cur_Bal Avg Cost
Opening + 16 4.86 77.76 16 4.86
Purchase + 6 5.2 31.2 22 4.95
Sell - 8 4.95 39.6 14 4.95
Avege Cost Adj. C null 1.5 14 14 6.00
Transfer Out - 4 6 24 10 6.00
Transfer IN + 7 5.3 37.1 17 5.71
Purchase + 5 5.2 26 22 _5.59_
Note : here is image of above excel sheet .
image: !http://www.geocities.com/faizvision/avg_cost_data.JPG!
Regards,
Faizan Dosani
Edited by: Fiz Dosani on Apr 21, 2009 2:39 PM
Edited by: Fiz Dosani on Apr 21, 2009 5:03 PMwhat adjustments?
Tran_type Tran_affect Qty Unit Cost Linecost Cur_Bal Avg Cost
Opening + 16 4.86 77.76 16 4.86
Purchase + 6 5.2 31.2 22 4.95
Sell - 8 4.95 39.6 14 4.95
Avege Cost Adj. C null 1.5 14 14 6.00
Transfer Out - 4 6 24 10 6.00
Transfer IN + 7 5.3 37.1 17 5.71
Purchase + 5 5.2 26 22 5.59use tran_affect and do the cumulative sum of qty. -
Multiple value selection from a base query to jump query in Web
Hi ,
System info
SAP BW 3.5 level-9
PI_BASIS -2004_1_640 level-8
SAP_ABA -640 Level-11
SAP_BASIS-640 Level-11
We have an inventory query with Profit Center,Plant & Material as characteristic. When we run the query, for example we get 10 materials for a plant. We want to keep those materials as filter value for material & want to jump to another query. The Jump query will only execute for those selected materials.
We can able to do the above scenario in BW BEx analyzer but we are not able to do in the web. Any input to resolve the issue are welcome.
example
Query A
Profit Center Plant Material
PC12345 P542 M1
PC12345 P542 M2
PC12345 P542 M3
PC12345 P542 M4
PC12345 P542 M5
PC12345 P542 M6
PC12345 P542 M7
PC12345 P542 M8
PC12345 P542 M9
PC12345 P542 M10
Select M1 to M10 & right click "Keep filter value"
Then remove Material from the drilldown.
The query looklike this:
Query A
Material M1....M10
Profit Center Plant
PC12345 P542
Then right click on P542 "Goto" jump query B.
Query B get executed on those selected materials(M1...M10) as we have a material variable in query B which is mandatory.
In a nut we are selecting more then one value & going to another query.
Regards
Mahendrawhen u select KEEP FILTER VALUE at tat instance u can select only 1 value
HOW DID U SELECT M1 & M10 bot within one hit.
instead of using this option.... did u try restriction
wat i mean is when u know before hand that u need only m1 & m10
remove material first from the display
it will automatically reside in Free chars
right click material and hit RESTRICT
select m1 & m10
hit okey
now u will see desired result...
now try jump query...
try removing the material variable from query b , just for experiementing purpose
and then repeat above exercise...
let us know how u go with it -
I have a simple inventory query where the user can input a
search term, and a price span in 2 text boxes, named p1 and p2, the
search box is named s.
When I just change the price boxes and submit, it works
perfectly, but if I put anything in the search text box, it always
returns 0 records, even though I know it should be returning
hundreds of records. The real kicker here is that when I copy the
query submitted to the db in the debugging section, and I paste it
directly into the access database, it runs perfect.
What could make it run perfect in the db directly, but not
return any records when sent via CF?
Any suggestions would be helpful, thank you, and the CF code
is listed below, then below that the code found in the debugger
with my sample search.Welcome to the world of non-standard SQL. ANSI standard SQL
is a myth. Trial and error and experience is the only solution. Not
only are things vastly different between the database players (even
those that purport to be ANSI compliant), things are even different
amongst the different drivers (ODBC, JDBC, OLE, Native, etc.) that
you can use to go against those databases. Typically Database
differences will simply crash. With Driver differences, anything
can happen, although they are typically more restrictive. They will
often not allow certain keywords or constructs to pass through even
though the DB supports it. -
Hi All,
I am trying to generate a slow moving inventory query for materials that are not consumed for a certain period of time. I am using SAP B1 2007 A. Kindly share with me the ideas on how to generate the above query.
Thanks.
Best Regards,
xavierHi Xavier,
You may check these to start:
Slow moving item list
FAST, MEDIUM AND SLOW MOVING GOODS ANALYSIS
Thanks,
Gordon -
BW Query showing more Material than R/3 Query, Why..??
Hi All,
I am facing problem when running the query on Inventory cube 0IC_C03.
I have loaded data from 3 Data Sources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM as mentioned in below link and strictly followed by applying Marker updates after the load
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
Now the problem is,
End User trying to compare BW Inventory Query (Plant Analysis: Stock) values with MC.1 (Plant Analysis: Stock: Selection)
In R/3 (MC.1) showing the total number of materials are 3755 for the period 01.2008
In BW Query for the same period (01.2008) total number of materials are 3960
I am doubting why BW showing more materials?, this resulting the differance value for Valueated Stock value and Valuated Stock Quantity when we compare with R/3.
When i am comparing material wise in BW query with MC.1, whatever the missing Materials are showing in BW Query as 0 Quantity but some value
Ex: Values is = -£ 51.46 and Quantity is = 0 EA
Please provide me some inputs, your help will be appreciated.
Regards,
RajeshHi Rajesh,
Please check the Material numbers which are coming extra in BW not in R/3 whether they are under any material group. If they are all in under the "#" material group then u can restrict the query by filtering the material group "#".
Just filter Excluding the "#" material group in the query.
Then you will get the right values.
Hope this may help you.
The difference between the BW and R/3 material numbers is because. Some extra materials may get from the UM datasource, so you are getting only values and not the quantities.
Try the above idea. I hope it works.
With Regards,
Ravi Kanth. -
BW query relevant to MC.1 in R/3 MM
Hi Guys,
Can anyone tell me if there is any BW standard query which will show exact output as in MC.1 report in MM at R/3 side?
If no then how can we do it?
Any help rewarded.
Regards,
vaibhav.Hi,
When you base your build on the datasources used by you, it should be sufficient to build any inventory query on it.
If a basic inventory query like the MC.1 is not being built on it, then you have a problem in the build.
I am attaching a link for how the inventory build should work for your scenario. check if these things have been sone, in terms of marker update and compression and your build should give you the desired output.
[inventory mgmt scenario|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
Alternatively, I have already suggested S031 and S032 for creating a fresh datasource, which can give you the desired snapshot. You may evaluate this.
Cheers -
Calculated Keyfigures Fromm Bex Query into BO without Unit
Hello,
We built a Universe on top of Inventory Query from Bex Query Designer. We have Calculated Key figures defined on both Restricted Key Figures and also just as the sum of one or more InfoObjects.
In the Universe some Standard Keyfigures based off of InfoObjects are shown as folders with Unit value, but the Calculated Key Figures are simply shown as a Measure - it does not have a folder associated that gives the Unit of Measure.
If we run the same Query from Bex Analyzer all the Calculated Keyfigures have units associated with them.
Can you please let me know if any of you have the same issue.
Thank you,
JenniferIngo,
We are using Business Objects 3.1
Example: The universe is built off of a Bex Query that is going against the standard MultiProvider 0IC_MP04. The query has as part of the key figures the following:
Standard InfoObjects: 0VALSTCKQTY (valuated stock qty) and 0TRANSSTOCK (Stock in Transit)
Calculated Key Figure: CKF_INV_QUANTITY. This key figure is defined as 0VALSTCKQTY + 0TRANSSTOCK.
When I look at the Key Figures for the universe that sits on top of this query, the two standard InfoObjects have a folder that contains: 1) Valuated stock quantity (as a measure) 2) Valuated stock qty Unit (as a dimension) and 3) Valuated Stock qty Formatted (as a dimension). The Stock in Transit is treated the same way.
However, for the calculated key figure, CKF_INV_QUANTITY, I only see the measure that pertains to the sum of the two fields. I do not have a unit associated with that value.
Thanks,
Jennifer -
Unable to connect to inventory database ??
Hi,
Thanks for reading this post. I have a problem with ZFD3.2 inventory
that
is driving me crazy ... I have a Inventory system set up at one of our
customers with Netware 6 servers ZFD3.2 and an inventory database on Oracle. All systems are working. I see that the storer is updating
files
in the database. Now I want to do an Inventory query from ConsolOne. I
go
to a workstation of the customer and start ConsoleOne. I do tools-
configureDB and get an error message saying "Unable to connect to the
inventory database - Check if database is up and running". Next I take
my
own laptop and do the same thing. It works, I see "succesfully
connected
to the database". OK, so I copy the ConsoleOne from my laptop to the customer's computer. Same error... So there must be something on my
laptop
that's not on the customers computer. But what ?? What am I missing
here ?
regards, RenHi Kai,
Sorry for the delayed answer. My cable internet provider decided he
had
provided enough internet and my connection was gone for two days...
I have tried to run it from the server but this made no difference. It
seems
to be related to the workstation you run ConsoleOne on. I've always
thought
that it was only depended on the snapins, but it seems that there's
more to
it..... I've tried windows2000 and windows XP prof with clients 4.83,
4.83
SP1, and 4.83 sp2.
When I run the consoleone copy on my laptop (winxp prof with cl 4.83)
it
works fine, but when I copy the consoleone directory to another
workstation
I get an error.
regards, Ren
"Kai Reichert" <[email protected]> schreef in bericht
news:d8yBa.354$[email protected]..
> Rene,
> does it work for your customer when he runs the consoleone from the> servers patch instead from the local copy ?
>
> --
> Regards, Kai Reichert
> Novell Support Forums Sysop
>
> "Generosity. Be generous with your time, with your love, with your
life.
> .. Be generous, always."
> Mark Greene in "On the Beach" -
Merging Inventory Data With Other Data
Dear Experts,
I have a requirement where in i am trying to combine Inventory Data with data from other datasource (0CO_PC_ACT_05).
I have designed the Bex query from both the sources. Now i have tried to merge the data at BO level by merging dimesions
plant and material. It works fine for small data set but there is performance issue as we have huge inventory data of more than 15 years.
Kindly suggest me the other methods through which i can merge the data.
Thanks ,
SumitHi! Rajesh,
The input for Inventory Query is Plant,calender date,storage location, material type.
For Material Ledger query the input is fiscal year/period and plant.
I have merged the dimensions Plant and material at BO level.
Thanks
Sumit -
ok heres a newbie question. Is there a simple way to query my machines for the version of novell client?? I click on data export or inventory query choose either Software group and Software components. Then I have to go down further to see novell client for windows, but no version number. Isnt there a easy way to do this?
I tried the Reports and chose Novell client but its giving me wrong data.Dcraf1,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Redirect won't work, or is it something else wrong?
Java: html and servlet; not going to specified pages, don't know what's wrong
using websphere ide, when i "run on server" it displays the html, but when I click
on the submit button, "page cannot be displayed"
I don't think my syntax is wrong.
html code follows:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="GENERATOR" content="IBM WebSphere Studio" />
<title>OIISWelcomePage.html</title>
</head>
<body>
<form method="post" action="/MyWebApp/OIISWelcomeServlet">
<h2 style="text-align: center">Manufacturing Company<br/>
Inventory Query System</h2><hr />
<h3>
This application is used to query the inventory system. <br/>
Please make your selection to update the manufacturing database.
<br/><br/>
<input type="radio" name="order" value="Query" checked="checked" /> Query<br/>
<input type="radio" name="order" value="Add" /> Add<br/>
<input type="radio" name="order" value="Change" /> Change<br/>
<input type="radio" name="order" value="Delete" /> Delete<br/>
<br/>
<input type="submit" name="submit" value="Submit" /><br/>
<br/>
<input type="hidden" name="sw" value="" />
</h3>
</form></body></html>java servlet follows:
package myservlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class OIISWelcomeServlet extends HttpServlet
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
if(req.getParameter("sw")==null)
resp.sendRedirect("http://localhost:9080/MyWebApp/OIISWelcomePage.html");
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
if(req.getParameter("order").equals("Query"))
resp.sendRedirect("http://localhost:9080/MyWebApp/OIISQueryPage");
else if(req.getParameter("order").equals("Add"))
resp.sendRedirect("http://localhost:9080/MyWebApp/OIISAddPage");
else if(req.getParameter("order").equals("Change"))
resp.sendRedirect("http://localhost:9080/MyWebApp/OIISChangePage");
else if(req.getParameter("order").equals("Delete"))
resp.sendRedirect("http://localhost:9080/MyWebApp/OIISDeletePage");
public void init() throws ServletException
super.init();
}one time i made a redirect servlet, and blogged about it here:
[http://forum.java.sun.com/thread.jspa?threadID=5286820&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5286820&tstart=0]
i suggest you start with my servlet, and add shit to it until you get what you need. -
Vlaue of valuated stock(0valstckval)
Hi All,
in my inventory query valued stock is getting wrong val. but in the inventory cube Value Received into Valuated Stock ,Value issued from Valuated Stock are fine. but in the query val of valuted stock was wrong means getting different value.
cube was properly compressed. and my question is 0valstckval how this infoobject is picking the value. I know Recevied val-issued val is nothing but valuted val.
how this non cummulative key figure was picking the val.
please give the answer.Hi,
Check the following threads,
Regards,
®
Maybe you are looking for
-
Is there an option or a solution within Photos to do shared libraries, multiple libraries on one computer and between multiple computers? I am reading and initially it looks like there is less flexibility for this then there was in iPhoto/Aperature.
-
Pop up Windows that display outside the field of view.
I frequently connect multiple monitors to my laptop and it seems that some software "remembers" the location where it last displayed a pop up window. For example: The first time I access a function that displays a pop up window it will display on my
-
Powerbook display went out, Help!
I was just using Safari, and seemingly out of nowhere, I heard a loud whirring (I think from the optical drive) and then the display went black--mostly, I can still sort of make out the menu bar and dock. I've had this happen once before, but that ti
-
What is the "Main Attribute" for in Session Monitoring?
Anybody know what the "Main Attribute" column is for in session monitoring or how I can use it? Can't find it mentioned anywhere.
-
BUG: Unit Testing Process Validations SQL editor - extra spaces appended
There is a bug in the SQL editor used by Unit Testing Process Validations. To re-create: Create a Validation with some multi-line SQL and save: select * from DUAL where 1=1 Click on a different Validation, and then click back onto the Validation just