Deman Planning - Query/report

Hello,
I have been asked to provide a query/report showing stock in restricted &/0r unrestricted state BUT with no demand on the item.
The query/report needs to show material/item number, stock figures in each state, std cost and price unit.
The demand is shown on txn MD04 but how can I create a query/report as above?
I would like to create a query using SQVI if possible?
Any help would be appreciated.

There are several approaches to consider and it would be good to hear from some direct users.  Assuming you have a BW/BI landscape, there are numerous metrics in info cubes to easily get the data.  I used to look at inventory metrics and would start with the DOH (days on hand) - I don't remember how it was calculated, but normally it would take the current stock level and divide by the demand.  Of course, when the demand goes away, you are dividing by zero (or nearly zero), and your projected DOH goes way up.  So, by looking at the DOH, you quickly find out what products have stock with little or no demand.  You would then need to add the costing metrics, likely from another info cube.
There are numerous inventory metrics in the BW info cube - I'll try to find an updated list, but if you ask your BW architect on site they should be able to provide it.
Is there a reason why you are looking at it from a transactional query perspective instead of BW? 
Ray Adams - 610-661-4647

Similar Messages

  • Automating ADHOC query reports to generate Emails

    Hi Experts
    Hope you guys are doing fine.
    I have a requirement where we need to automate the ADHOC query reports to trigger emails with the Excel attachment of the report to a set of users.
    To explain in detail,we have some adhoc queries which are run manually on monthly basis(by our functional guys).Once the output report is generated,they used to download them into Excel document and send that to a set of users as an email attachment.
    Now we are planning to automate the entire process,so that these query reports once set to run on monthly basis should trigger emails to set of users with the excel attachment.
    Now,i am looking for solution on how to proceed on this.Since the program behind the query(which starts with AQ*) is not be a modifiable program,i can write any custom code here.Alternately,i planned to set a background job which runs the query and then use a  custom pgm which reads the spool no for the pgm and then to read the data from the spool into an internal table and then use a FM to send the internal table data as an email attachment.But wasn't sure of what FM's to use to read the spool no. and data from the spool.
    Is there any alternate way to work on this or any suggestions on my assumed process would be really appreciated.
    Thanks

    Ok, here's what you do:
    - Go to T/C: SQ01 and find your query
    - From the menu at the top select Query>More functions>Display Report Name (copy the report name)
    - Go to Transaction SO23 and create a new shared distribution list - give it a name and title, click the dropdown on folder and click the create folder button, give the folder a name and save/green tick.
    - Click on the Dist. list content tab and enter all the external email addresses that the report should go to ( the recipient type should be internet address or via internet or something like that)
    - Go to Transaction SM36 and click on the Job wizard button, go through the wizard entering the program name we copied earlier. In the print parameters section make sure it is set to print immediately, then on the spool list recipients button select the dropdown box, select distributions lists and find the one you created earlier. Define the variants, periods, time etc etc
    - When the job runs it will process the output via SAPConnect (transaction SCOT) you will be able to see the status of the emails by going to transaction SCOT and selecting the menu option Utilities>Overview send requests.
    Job Done, Chillax
    PS: remember the output type of the query in SQ01 needs to be set to excel or whatever you require otherwise a PDF/html attachment will be created in the email.
    PPS: If SAPConnect is not set up in your system speak to your basis guy to set it up - If you don't have any basis resource, it is really easy to set up, plenty of guides around.

  • Query Report  For  a Forecast

    Hi Members,
    I want a Query report showing items Consumption From A to Z for a proposed Forecast, that mean when i plane Finish items like this in MRP forecast, for a one month
    Item - Qty For September
    A - 20
    B - 10
    A,B are Finish items which having BOM,
    BOM are contains several components items
    i want a report giving details of item wise total
    requirement for the above forecast,in this case we should not consider present stock, purchase order,sales orders. so please help me to do it.
    tell me how can i do it with a query .
    thank you,
    saman
    Edited by: saman_wm on Aug 8, 2011 8:36 AM

    Hi,
    Have you started with query regarding the data which you want. if yes, you can post here and members can check the same and help you out with.
    If you have not started then you can check following tables :
    OFCT, FCT1, OITM, ITM1, OMSN, MSN2, OITT, ITT1
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • SAP Query - Reporting on Simulation infotype 2501

    We defined reporting time types for the SAP delivered infotype 2501 to report from the ZL cluster.  However, when we report the data using SAP Query, for a few records, the following is observed:
    (1) Basic list output in Query report splits the record as only 50% (half) of the time is output when compared to the data in the cluster.
    (2) If you also use the same field in a Statistics output, it seems to report the full amount of time as recorded in the cluster.
    The discrepancy is noticed only in a very few records reported by SAP Query. We need to be absolutely sure as to why some records are not reported accurately by SAP query basic list output for the simulated infotype.
    I would appreciate your help
    Thanks
    Pascal

    Hi Pascal,
    Since the IT2501 is a "Simulated Time Infotype" you cannot look at the data in it, but you can confirm the data from the ZL cluster and the data from the employee.  Since it is only this employee or a few employees, it is probably not the configuration of the time buckets for the IT2501, but you may want to make sure all time times are captured as you want.  Then look at the time entries for this individual or individuals.  Did they enter a time type that was not expected or configured?  Is all their time approved and passed through Time Evaluation?  Finally check the Master Data for the employee - is the Planned Working Time (IT0007) infotype correct or has it been recently changed?  Is he in a special Cost Center (IT0027) or Project that is captured differently for time purposes? 
    Since it just one or a few individuals, I would suspect the Master Data and some inconsistant entry that affects the time cummulation for the IT2501.
    Paul

  • Current Time of Load on Infocube available in query report

    Hi Gurus,
    I just want to ask if there are available method to include in the query report the most recent time and date of loading of infocube. The requirement is when extracting the bw report, it would show the last time of loading from the infoprovider, from the infocube.
    Initial plan is to add a field but where exactly will be the source of the time and date of the infocube loading.
    Your inputs are very much helpful.

    Hi
    if the endgoal is to have in the webi, it is even easier.
    Just create your statitistics query in the query designer and insert it as a new query in the webi (in webi you can have more than 1 query)  they run sequentially but in my cases just one 1 sec tops.  So even no workbook needed.
    for the statistics check :  (I think i used MP 0TCT_MC01)http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0e5ca3b-95ce-2b10-4d94-864ab29a8b63?overridelayout=t…
    grtz
    Koen

  • SQL Query Report Very slow

    Hi I have a sql query report that is taking very long to render.The query on sql developer comes back in less than a second.Any ideas on what could be wrong?

    Hi
    When posting code on the forum, put {noformat}{noformat} (with the curly brackets and the word code in lowercase) above and below your code like this...
    {noformat}{noformat}
    SELECT *
    FROM emp
    {noformat}{noformat}
    It will then appear like this, preserving formatting...SELECT *
    FROM emp
    Next, how many rows are returned in total, it may be that you have SQL Developer set up to fetch only the first x number of rows?
    Why have you put a CHOOSE hint in there?
    Is it a classic report or an interactive report?
    It looks like you're going over a database link, you really need to provide an explain plan (formatted as I have detailed above), a DRIVING_SITE hint may help you but it's impossible to know without seeing the plan...
    Cheers
    Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Test Plan Progress report parameter

    I'm trying to use the Test Plan Progress report but the Test Plan field is always empty therefore I cannot render the report.
    The TFS is 2013 update 4 and I tried also with the report downloaded from MSF for Agile Software Development 2013.4 template. The cube is processed with no errors.
    Any ideas?

    Looking further I noticed that the MDX query that is populating the report parameter is not returning any data.
    Could this be a breaking change for the report from the last TFS update?
    Below is the query generated by the report:
    WITH
    MEMBER [Measures].[ParameterCaption] AS
    IIF([Test Plan].[Test Plan Name].CURRENTMEMBER IS [Test Plan].[Test Plan Name].[All],
    "All (No Filter)",
    [Test Plan].[Test Plan Name].CurrentMember.Member_Caption
    MEMBER [Measures].[ParameterValue] AS
    [Test Plan].[Test Plan ID].CurrentMember.UniqueName
    SELECT
    [Measures].[Point Count Trend],
    [Measures].[ParameterValue],
    [Measures].[ParameterCaption]
    } ON COLUMNS,
    ([Test Plan].[Test Plan ID].[All], [Test Plan].[Test Plan Name].[All]) +
    Extract(
    [Test Plan].[Test Plan ID].[All],
    [Test Plan].[Test Plan Name].[All],
    [Team Project].[Project Node GUID].[All],
    [Test Case].[Area Hierarchy].[All],
    [Test Plan].[Iteration Hierarchy].[All]
    ) +
    Filter(
    CrossJoin(
    [Test Plan].[Test Plan ID].[Test Plan ID],
    [Test Plan].[Test Plan Name].[Test Plan Name],
    StrToMember("[Team Project].[Project Node GUID].&[{4dad3f77-6199-41eb-af5a-a95f93b6af18}]"),
    StrToSet("[Test Case].[Area Hierarchy].[All]"),
    StrToSet("[Test Plan].[Iteration Hierarchy].[All]")
    [Measures].[Point Count Trend]
    [Test Plan].[Test Plan ID], [Test Plan].[Test Plan Name]
    } ON ROWS
    FROM [Team System]

  • Not getting 'actual data' in the planning query

    Hi all,
    I am debug other's query. This cube stores 'actual' and 'plan' data and I loaded 'actual' and can see it in the cube. But I cannot see 'actual data' when I run the planning query.
    I checked all restrictions in the KFs and CHARs and fliters in the query. There are only 'value type 10', 'fiscal year variant Z1', and 'currency CAD' restricted and actual data does contain those values in all line items.
    Can someone point it out what it could be the issue? Thank you.
    R.

    Hi,
    if you enter some data (plan data) you cannot see it again. Is that correct?
    are you using the same query to enter and to see plan data?
    Because if you are entering data in an aggregate level and you are executing your query over the infocube you will not see the data from the yellow request. If you execute query over the aggregate you should be able to see all data in the cube (yellow and green requests).
    Also check if your query is defined as per note 1136163.
    I hope this helps.
    Lucimar

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • The problem about  integrate  Portal and R/3 : vendor query report problem

    Hi everyone :
       We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
       But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors,  because the cost is too much .
       And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
       I think this is a general problem when integrate Portal and R/3, BW .
       Is there somebody had solved this problem or give any advice?
       Any discuss is welcome.
    Best Regards,
    Jianguo Chen

    Hi,
    I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
    Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
    Hth,
    Michael

  • How to copy existing query report into new query report in SQ00

    Hi Experts,
    Hi Experts,
    I want to add fields "company code" "'region" to existing  query report AQZZ/SAPQUERY/FKF1============
    (list of vendor address) for this i done as following:
    1.In SQ01  go to "EDIT->other user group" and i selected user group as /SAPQUERY/FK
    2.I typed F1 in query field and click change button
    3.I clicked next screen button and entered into "change query f1: select fields screen".here i clicked "basic list" button and searched company code checkbox and saved it as result company code is appearing in the standard report"AQZZ/SAPQUERY/FKF1============"
    but unfortunately there is no region field(LFA1-REGIO) for this i think i should copy the existing  query report  into new query report(Ex:Z_LIST_OF_VEND) which should be 14 characters.please tell me briefly how to do this because this is first time i am using SQ00.
    one more issue is when i selected "edit-otheruser group" and choosing /SAPQUERY/FK  i  am getting only infoset "/SAPQUERY/FIKD" but i should need Info set: "/SAPQUERY/FIDD" please tell me how to add the previous one into user group.i think if i got /SAPQUERY/FIDD into usergroup  /SAPQUERY/FK i can add region also into Query report as i mentioned above by going SQ01 ...............................
    please help regarding this which should be very beneficiary to my carrier.
    Regards,
    naresh

    Hi Experts ,
    I solved issue by changing infoset in SQ02 by means of assigning field to field group and changed the query in SQ00.
    Regards,
    naresh.

  • Stock Aging Query/Report

    Dear all,
    We are on SAP B1 2007 PL42 and using Moving average as our cost valuation method.
    It doesn't have an inbuilt stock aging report, I have searched through the forum but none of the queries arebshowing the correct aging of stocks. Could anyone have a query/report/addon for stock aging?
    Kind Regards,
    Asif

    Hi,
    Try this one,with warehouse code as input parameter
    select b.code, b.name, b.Wh, b.Bal, b.Val,
    isnull(case when b.days <30 then b.bal end,0)'0-30 Days' ,
    isnull(case when b.days between 30 and 60 then b.bal end,0) '30-60 Days',
    isnull(case when b.days between 60 and 90 then b.bal end,0) '60-90 Days',
    isnull(case when b.days between 90 and 120 then b.bal end,0) '90-120 Days',
    isnull(case when b.days between 120 and 150 then b.bal end,0) '120-150 Days',
    isnull(case when b.days between 150 and 180 then b.bal end,0) '150-180 Days',
    isnull(case when b.days >180 then b.bal end,0) 'Above 180 Days'
    from (
    select a.code,a.name,a.wh,a.bal,a.val,datediff(dd,dt,getdate())'days'
    from (
    select max(t0.itemcode)'Code',max(t0.Dscription)'Name',
    max(t0.Warehouse)'Wh',
    sum(t0.inqty-t0.outqty)'Bal',sum(t0.transvalue)'Val',max(t0.docdate)'dt'
    from oinm t0 inner join oitm t1 on t0.itemcode=t1.itemcode
    where t0.warehouse='[%1]'
    group by t0.itemcode
    )a
    )b order by code

  • Query Report:To Retrieve Data from A/R Invoice and A/P Invoice

    Hii Experts,
          I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
    Expenditure and Revenue according to a Bussiness partner,
    I am using union to retrieve the information,but it is saying a error that  Error Converting Varchar to Numeric and also
    i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
    With Regards
    Cherry.

    Hii.
    My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
    I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
    Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
    and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
    Thanks & Regards
    Cherry

  • SQL Query report region that only queries on first load

    Hello all,
    Is there any way in which you can prevent a SQL Query report region from quering data after every refresh?
    I would like to make a report that queries on the first load, but then I would like to change the individual values, and reload to show the change, but every time I reload the page the columns are queried and the original values are displayed once again...
    any ideas?
    -Mux

    Chet,
    I created a header process to create the HTMLDB_COLLECTION. It is something like:
    HTMLDB_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'Course_Data',
    p_query => 'SELECT DISTINCT COURSE_ID, HTMLDB_ITEM.CHECKBOX(14,COURSE_ID) as "checker", TITLE, SUBJECT, COURSE_NUMB, SECTION, ENROLLED, null as "temp_term", null as "temp_title", null as "temp_crse_id", null as "temp_subj", null as "temp_crse_numb", null as "temp_sect", FROM DB_TBL_A, DB_TBL_B, DB_TBL_C, DB_TBL_D, DB_TBL_E, DB_TBL_F WHERE ...');
    The names were changed, for obvious reasons.
    I then created an SQL Report Region to see if it would work. The SQL is:
    SELECT c001, c002, c003
    FROM htmldb_collections
    WHERE collection_name = 'COURSE_DATA'
    When I run the page it says:
    ORA-20104: create_collection_from_query Error:ORA-20104: create_collection_from_query ExecErr:ORA-01008: not all variables bound
    Any idea why this is happening?
    I'm new to HTMLDB_COLLECTIONS, so I may be doing something wrong
    -Mux

  • 11.1.2 Planning – Mapping Reporting Application

    Hi John,
    I was reading one of your blog
    http://john-goodwin.blogspot.com/2010/06/1112-planning-mapping-reporting.html
    I want to know what is the advantage of using "Mapping Reporting Application" over replicated partioning, and also what should be the real use of "Mapping Reporting Application"
    One example of why you may want to use this functionality is you say you have a reporting database such as an ASO database reporting actuals and you want to push a proportion of the forecast/budget data from the planning application into the ASO model. It could also be that you have a number of different cubes that you need to push different areas of data to from your planning application
    When I first read about this new functionality I assumed it would create a replicated partition and push the data to the mapped database, I thought it would manage the partition so it wasn’t destroyed with a refresh, this is not the way it works though but more about that later.Can you please explain me in detail about the way of working of this functionality
    Thanks & Regards,
    Avneet Singh Bhatia

    I don't know if there is any advantage, it is just a different way going about it, the planning method exports and then loads the data, is that better than a replicated partition I am not sure but everybody has there own opinions.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Return Current month Data:Help needed in modifying this code of a Procedure

    Hello Folks i have this scenario where i need to modify this code so that it has to return data from the Current month First Day to the previous Day if its a daily report and previous month data if its a monthly report. I have no clue how to modify t

  • How to create gradient mask in CS3 ?

    Is it possible to create gradient mask without programming? It is important that Flash document must be created in version 9 and AS3. I tried to use blend modes alpha/erase but they makes object invisible (cache as bitmap was on and off - every combi

  • I tunes drag and drop to playlist

    Does anyone know why it is not possible to select CD tracks then drag and drop to new playlist. On screen tells me number of tracks+ but action does not execute? I have to laboriously go to library, search for new CD track(s), highlight then drag and

  • Can't Open Folder in XMLSPY after B1iSN PL11 Upgrade.

    Hi, I've recently upgraded to B1iSN PL 11. I've followed all the steps in the guide . and it seems that the login method has changed due to the upgrade. when I try to edit/view my BIU with the previously setup configuration in XMLSPY I get the follow

  • J2me https negotiation - Client Certificate

    Hello all, I am developing a j2me application and i am extremely concerned about the security and encryption of data. I am planning to implement this using the https implementation of java for MIDP2.0 profile and cldc1.1 configuration. My question co