XLR query expert question

Here is a little challenge from a user. I am using B1 for Stock control and Stock forecasting. Until now we used a Microsoft Access Query to extract to Stock Consumption Quantity from SAP tables and this query works fine and it creates the Stock Consumtion and forecast report for our company. However, I am trying to achieve the same result by using XLR in SAP and I can get the Stock Quantity from the relevant A/R Invoice table and extract the Quantity value for a particular Stock Item ( say MRH001 = Shampoo )
However, MRH001 is also used as part of other Gift Packs and we use Production Order and Bill of Material, to make up these packs. So the Gift Pack is finally recorded as a new Stock Item called Pack1 which contains MRH001. So our total consumption of Shampoo (MRH001) is made up from sales of MRH001 itself + MRH001 sold as Pack1. So we need a way of finding out the total SALES of MRH001 and so far we could not find a way. Our Business Partner has also tried to come up with an idea but so far we could not crack this one.
To make things more complex, our Pack1 (which contains MRH001) can be included in another pack (say Pack2). So now we have Shampoo sales under 3 different product codes, MRH001, Pack1 and Pack2.
Any ideas from SAP experts?
Thanks
Robert

Ho Gordon
Thanks for this pointer. I used the QPLD before and probably you are right that I may be able to run a Query to do this but when it come to functionality I found the QPLD limiting. I may give it another go.
Unfortunately, I do not have christal reporting but I have heard that it may become part of B1 in the future?
Thanks
Robert

Similar Messages

  • Query panel questions?

    hi , i am using jdev11g r2, and ADF BC
    i can drag and drop the view criteria on a page as a query with table result, I can make query perfectly.
    my question is if I want to bold the lable of the criteria input fields in the af:query. How to do that, Thanks!
    Rgds!

    you have to use it like
    .label af|query::criterion-label{
    font-weight: bold;
    }and use the .criteria in ur af:query component like
    <af:query styleClass="label">for detailed information on how to use css changes refer
    Re: How to make panelHeader title to be in Red color.

  • Simple database query syntax question

    Hi experts,
    I am just stucked here...
    e.g.
    String Name = "John Doe";
    String query =
    "select * from table where NameCol = "+Name;
    ResultSet rs =stmt.executeQuery(query);
    while (rs.next()) {
    System.out.println(rs.getString(NameCol);
    The complier complains that "Syntax error !" at
    " NameCol = ....." ?!?!
    Why this is happening ? What is the correct syntax ?
    Thanks in advance !
    Philip

    finally figured it out. thanks...

  • ViewObject Query [Expert Mode] not fetching the results

    I have modified the EO query by selecting the Expert Mode.
    When i ran the query in Sql plus im able to view the records, but when i execute the view object, im unable to see the records.
    Any help?
    Thanks,
    Raghu

    Hi ,
    There is no where clause for the query. Also i have set maxfetchSize as -1.
    Hence it should retrive the results from database. Also i printed the Query using getQuery() method.
    When i ran the same query offline, i was able to retrive the values.
    1. The VO has an entity usage.
    2. The VO query is modified in Expert mode.
    When vo.executeQuery() is called, it returned 0 records
    Following messages are displayed in the log
    [389] ViewRowImpl.createMissingEntities: returning null, no matching discrVals for ArSepaMandatesEO in ArSepaMandateDtlsVO
    [390] Discr values: 1
    [391] ViewRowImpl.createMissingEntities: returning null, no matching discrVals for ArSepaMandatesEO in ArSepaMandateDtlsVO
    [392] Discr values: 1
    [393] ViewRowImpl.createMissingEntities: returning null, no matching discrVals for ArSepaMandatesEO in ArSepaMandateDtlsVO
    [394] Discr values: 1
    [395] ViewRowImpl.createMissingEntities: returning null, no matching discrVals for ArSepaMandatesEO in ArSepaMandateDtlsVO
    [396] Discr values: 1
    [397] ViewRowImpl.createMissingEntities: returning null, no matching discrVals for ArSepaMandatesEO in ArSepaMandateDtlsVO
    [398] Discr values: 1
    Thanks,
    Raghu

  • MVA SQL Server Query Assessment question

    Hi Guys
    I was doing a course on MVA, Querying Microsoft SQL Server Quick Start. This question came up in the assessment:
    True or False: You use the INTERSECT operator to combine results from two SELECT statements. Only rows that appear in both results sets are displayed.
    I answered it as TRUE but it marked it wrong.
    Am I not right??
    Thanks

    Hi,
    Choose yourself :-)
    http://technet.microsoft.com/en-us/library/ms188055.aspx
    [Personal Site] [Blog] [Facebook]

  • Meet The Experts Questions: SAP NetWeaver Programming Model

    Hi SDN Members,
    In Palo Alto as well as in Walldorf we are having Meet the Expert sessions, where SAP developers will answer your questions to a particular topic.
    <b>SDN Meets Labs Palo Alto Agenda</b>:
    https://www.sdn.sap.com/sdn/index.sdn?page=sdnmeetslabs_palo_alto_agenda.htm
    <b>SDN Meets Labs Walldorf Agenda</b>:
    https://www.sdn.sap.com/sdn/index.sdn?page=sdnmeetslabs_walldorf_agenda.htm
    This thread is your opportunity to ask your question to the Experts already here on SDN and we will make sure that they are going to be asked. (Or at least as many as can be answered within an hour.)
    Please post your questions regarding the <b>SAP NetWeaver Programming Models</b> here.

    LIfe demo of NW Administrator:
    Yes. If everything goes right.
    SolMan is not our focus, but positioning to SolMan Diagnostics will be discussed.
    Message was edited by: Christoph Nake
    Message was edited by: Christoph Nake

  • Meet The Experts Questions: Operations Monitoring

    Hi SDN Members,
    In Walldorf we are having Meet the Expert sessions, where SAP developers will answer your questions to a particular topic.
    <b>SDN Meets Labs Walldorf Agenda</b>:
    https://www.sdn.sap.com/sdn/index.sdn?page=sdnmeetslabs_walldorf_agenda.htm
    This thread is your opportunity to ask your question to the Experts already here on SDN and we will make sure that they are going to be asked. (Or at least as many as can be answered within an hour.)
    Please post your questions regarding the <b>Operations Monitoring</b> here.

    LIfe demo of NW Administrator:
    Yes. If everything goes right.
    SolMan is not our focus, but positioning to SolMan Diagnostics will be discussed.
    Message was edited by: Christoph Nake
    Message was edited by: Christoph Nake

  • Meet The Experts Questions: Partnering ISV Forum / J2EE Migration

    Hi SDN Members,
    In Walldorf we are having Meet the Expert sessions, where SAP developers will answer your questions to a particular topic.
    <b>SDN Meets Labs Walldorf Agenda</b>:
    https://www.sdn.sap.com/sdn/index.sdn?page=sdnmeetslabs_walldorf_agenda.htm
    This thread is your opportunity to ask your question to the Experts already here on SDN and we will make sure that they are going to be asked. (Or at least as many as can be answered within an hour.)
    Please post your questions regarding the <b>Partnering ISV Forum / J2EE Migration</b> here.

    Hi,
    Please check below guide:
    How to start New Post on HP Support Forum
    Ps.
    Here you may ask any question and you will get your answer for free.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Bi Query Design Question

    Hi,
                I have a question regarding a query design issue I was faced with today. I was asked to designed a Query, however all the fields required are all defined as characteristics but I would like to display one as a key figure. I would have a characteristic for a row, the column also for a characteristic and have another characteristic displayed instead of the key figured…… Is that possible?
    Thanks for any feedback

    Hi Serge,
    This question would be more appripriate -- and you will get a quicker answer -- in the BI Forums.  Please open your question there.
    Best Regards,
    Matt

  • Update several rows with single query (easy question, I guess)

    Hi all!
    I have table with two columns - name and value.
    I populate it with several sql queries:
    insert into settings (name, value) values ('company_name', 'My Company');
    insert into settings (name, value) values ('company_address', 'Company Address 12');
    insert into settings (name, value) values ('company_city', 'South Park');
    How can update rows with company_name and company_city in single query?
    Thank you in advance!

    How can update rows with company_name and company_city in single query?I guess something like this was meant:
    update settings set value = ??? where name in ('company_name ', 'company_city');But it's still unclear to me what should be used instead of question marks... :)
    Regards.

  • Query View questions

    Hi,
         Can anyone tell me how I can find out what query belongs to a query view?  A table out there? 
    Found the answer to this question: Table RSZWVIEW.
         Also,  if a person has access to the query do they automatically get access to the view?
    Thanks!

    You are correct about the table.  There is a trick for query views.  You must insert an entry into the RSADMIN table in order to start checking for authorizations based on query views, otherwise, it simply uses the query.  There is an OSS note: 601090.  Hope this helps. 
    Thanks,
    Jeff

  • Simple Query Caching Question

    I have a .cfm template that is used to render a handful of
    pages of my website. Each page is a department, for example, like
    "Arts & Entertainment", "Health", "Finance", and so on. On each
    of these pages (rendered by this same template) there is a common
    element... a list of our top ten articles. I have used the
    "cachedwithin" feature to cache the query for a 3-hour period.
    My question is this...
    Since it is a single template generating these department
    pages, the "top articles" query is exactly the same in terms of
    query name, datasource... only the SQL statement (which uses a
    "WHERE department_id = X" statement) is different. Let's say I have
    ten departments rendered by this template... should it be caching
    all ten queries, regardless of the names being the same?

    Hopefully you only have one cfquery tag and it is located in
    the .cfm template and you are using a variable in your where
    clause. If not, you are not being efficient with your code.
    If you do have just one cfquery tag, and you have a
    cachedwithin attribute, cold fusion will cache a query each time
    your variable changes.

  • SQL Query returns question marks

    I am seeing a SQL Query, executed via ADODB in VB, from a 10G client (don't know exact version) to a Sun Solaris based 9.2.0.5.0 Server return all question marks...Table queried consists of 3 columns, 2 varchar2, one long: Here query:
    SELECT SETTINGVALUE FROM EWORKFLO.CONFIG WHERE SETTINGGROUP='New test' AND SETTINGNAME='Single Page'
    The query results in 2576 question marks...(????? etc).
    Any idea what may be going on here?
    Thanks...
    Leendert

    Hello Tak,
    Thanks for replying. When this query is run from SQLPLUS we get a proper result back, that is the actual values from the SETTINGVALUE column. This is the LONG column and contains data like this:
    [Scan Section]
    DeviceTimeout=15
    Display=1
    hDCCreate=0
    Unit=0
    DialogTitle=
    IniFileName=c:\winnt\temp\kf.ini
    IniSectionName=Scan Section
    DeviceCache=1
    etc....etc....
    Depending on the settings created, the return string may vary in length.
    Leen

  • Complex query/join question

    Not sure if this goes here, but I thought I'd try anyway.
    I'm using Oracle 8i for a legacy app and the RDBMS won't be updated anytime soon. I'm trying to write a fairly complex sum and join query. I have two different tables with hours worked type information. I need to be able to sum the hours for a work day on each table and put, in a web table like a GridView, all rows, even if there isn't a match in the opposite table. So, for example
    Table 1
    ID SHOP WORKDATE SHOPHOURS
    1 AM1 1/1/2008 4
    1 AM1 1/1/2008 4
    2 AM1 1/1/2008 8
    3 AM1 1/1/2008 8
    Table 2
    ID WORKDATE PAYHOURS
    2 1/1/2008 7
    3 1/1/2008 8
    4 1/1/2008 9
    What I need to see is
    ID SHOP WORKDATE SHOPHOURS PAYHOURS
    1 AM1 1/1/2008 8 0
    2 AM1 1/1/2008 8 7
    3 AM1 1/1/2008 8 8
    4 1/1/2008 8 9
    Since i'm on 8i, I can't use a FULL OUTER Join, so i'm kind of stumped. Any suggestions would be greatly appreciated.

    You might want to post this to question to [SQL Forum|http://forums.oracle.com/forums/forum.jspa?forumID=75] instead for better result, but i can give you a solution. This is definitely not the best solution, but it works.
    select nvl(table1.id,table2.id) id, shop,
      nvl(table1.workdate,table2.workdate) workdate,
      sum(nvl(shophours,0)) shophours, sum(nvl(payhours,0)) payhours
    from table1, table2 where table1.id(+) = table2.id
    group by nvl(table1.id,table2.id), shop,
          nvl(table1.workdate,table2.workdate)
    union
    select nvl(table1.id,table2.id) id, shop,
      nvl(table1.workdate,table2.workdate) workdate,
      sum(nvl(shophours,0)) shophours, sum(nvl(payhours,0)) payhours
    from table1, table2 where table1.id = table2.id(+)
    group by nvl(table1.id,table2.id), shop,
          nvl(table1.workdate,table2.workdate) Cheers,
    [Nur Hidayat|http://nur-hidayat.net]

  • Service Offering, Query Results question.

    Hi,
    I got a question about the Service Offering, Query Results criteria page.
    As shown in the Picture below i have a Query based on the Active Directory User Class.
    The background is that i got alot of accounts more than 2000. The token "String" is used to narrow down the search. I also got some accounts that i dont want to show in the portal for the end users (The ones who
    ends with "Z" in the pager).
    Generally i would say that the "OR" would be "AND" (due to it is an logical operator, i want both conditions to be true) between the two UserPager properties, but i havent found any way to change that. I suspect that it is not possible
    to change "OR" to "AND" when making criterias against the same values more than 1 time.
    The Query below will return all accounts under that Distinguished name, even if i wrote something in the String prompt.  Removing the Criteria Pager ends on "Z" makes the String prompt work. But it will not exclude those objects ending with
    Z. Is this a normal behavior or am i thinking/doing sometime wrong?

    This is how all criterias work in service manager. If the same property is included more than once it puts an OR inbetween. You would have to export the MP that contains the query result and edit the criteria manually to AND.
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

Maybe you are looking for

  • Cant open ical to backup calendar

    I had to reformat my computer due to an OS error. Luckily I backed up my whole HD on an extrernal drive before I reformatted. I need to know where the files that store all my ical info are located so I can somehow put them back into my new fresh cale

  • Changing import settings in itunes8

    i used to be able to change my import settings in itunes8 by going "edit", "preferences", "advanced", and then there would be a drop down menu of options of importing.....wave, aac, mp3....but now it's no longer there.......i used apples itunes help,

  • Can't Create New Sequence

    FCS2 Upgraded and updated yesterday. For some reason starting today I can't create new sequences. New Sequence doesn't make a new sequence in any of the bins (but doesn't crash - just nothing happens), whether from the File menu or right-clicking in

  • How to pass dashboard prompt value to requests in folder

    Hi, I want to have a dashboard page that contains dashboard prompt for period and list with requests (for this I add Folder and select "Expand folder"). If I use dashboard prompt to set presentation variables, the chosen value is not passed to reques

  • After Finish PO Sened Automatically To The Dealer ?

    Dear All, Kindly if possible made button on the PO model sent PO directly to the dealer using Mail or Fax ? And after do this modification for model and make customization report then i want to updated system ; im loss this custom work for the model