Query generator and query wizard

with the help of query generator and query wizard, we create queries.
one of the application of generating query is that we can use it in formated search.
can plz anyone tell me what are the other possible application of queries created by guery generator and query wizard.
I am peruing training of SAP B1, so if any mistake is done from my side, I am sorry for that.
Thanks in advance.
Punam

Hi Punam.......
Query Generator is purely used for reporting as it uses SQL which is a strong tool of reporting. Moreover you can use the query generator for Formatted Searches as well as its SQL queries may useful in creating SP Transactions Notifications, Stored Procedures, Functions, Triggers etc.....
For More details you can check this link.....
http://www.youtube.com/watch?v=-LriSLVv5VA
http://www.sbonotes.com/content/creating-custom-queries-sap-business-one
Regards,
Rahul

Similar Messages

  • How to execute created function in query wizard or query generator

    Hi to all
    i create a function in sql and i want to use this in a query wizard or query generator, I tried to include this function in my query to create a report . but i im receiving a error saying 'invalid build function',
    running the query with the created function in sql server produce the expected result..
    I would like to know if is possible to used this created function in the query wizard or function?
    thanks
    Loren

    Hi Owen
    Thank you for your reply
    The function falls on scalar valued function , Here is my code
      start of code -
    USE [gk]
    GO
    /****** Object:  UserDefinedFunction [dbo].[SalesForThisDate]    Script Date: 01/19/2009 12:42:24 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER  FUNCTION [dbo].[SalesForThisDate]
    (     @vItemCode nvarchar(20),
        @FrmDate DateTime,
         @ToDate  DateTime
    Returns Real
    AS
    BEGIN
      RETURN (SELECT ISNULL(SUM(T1.[Quantity]),0)
         FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
         WHERE T0.[DocDate] Between @FrmDate and @ToDate
              and t1.[ItemCode]=@vItemCode
         GROUP BY  T1.[ItemCode])
    END
      end of code -
    then i tried to run this function on the query manager with this statement
    SELECT T1.[ItemCode],
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-10-1','2008-10-8'),0) Value1,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-11-1','2008-11-8'),0) Value2,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2008-12-1','2008-12-8'),0) Value3,
         ISNULL(dbo.SalesForThisDate(T1.[ItemCode],'2009-1-1','2009-1-8'),0) Value4
    FROM OITM T1
    ORDER BY T1.[ItemCode]
    executing this statements pop a error
    "SalesForThisDate is not recognized build-in function name"
    Thanks
    Loren

  • Query wizard and PLD

    Hi experts,
    I use query wizard making a query, and I can found it in query manager. then I created a report for that query. everything is ok but i don't know how to show the report and print it out. please help, thanks.

    Hi,
    This is very simple goto tools queries-> query Print Layout
    it will display all the query print layout . select the query for which you want to have the preview.
    and select teh print preview button it will display you report..
    Regards
    Chidambaram

  • Problem in BW query wizard

    Hi,
    When i m opening bi query wizard..its showing error
    error:32003 service not found cannot find com.sap.portal.guimachine.BIlit.commandhand....
    I am using vc 6.0 and portal (EP 6.0 SP15).  I va imported 4 sda files from sp13 addons in portal.
    for EP kit its working fine but for BI kit its showing problem...
    regards

    Hi Amit,
    We add few addons on portal for visual composer.Till EP6.0 sp13 the addons had to be deployed separately onto portal,but since SP14 onwards these come with the portal patch itself and we don't have to deploy the .sda files explicitly for visual composer.
    The constructor of BWQueryFunction class which is being generated by the guimachine of Visual composer corresponds to that present in com.sap.portal.guimachine.BIKITapi.jar file present in SP13 addons and hence you get a compile time error when trying to deploy onto sp15 or sp16 portal.
    One solution to this problem is to deploy the visual composer addons corresponding to SP13.The jar file com.sap.portal.guimachine.BIKITapi.jar is present in com.sap.visualcomposer.BIKiT.sda file.
    Hope this solves your problem.
    Otherwise, try this one also :
    In BW Server -
    Go to transaction WSCONFIG, to configure Query_view_data Service
    Web service definition:- ‘query_view_data’ and then click on create Icon.
    Provide the URL (in our case it is: /sap/bw/xml/
    soap/queryview).This will also Create External aliases.
    Thanks in advance,
    Deep

  • Query wizard in OEM

    I have Oracle Enterprise Manager and connected to my Oracle 9i database.
    It looks like it has alot of nice tools. Please advise if there is a query wizard where I can select tables and create a query?
    I dont see any query wizard tools which would be very helpful for creating table join queries.

    Hi!
    Right-clicking over any table in the table list you will see a "Table Data Editor..." option in the menu.
    There you will have just a few options considering that table, i.e., projection and selection.
    There is an option to generate report and data extraction.
    I am afraid that you don't have any join option.
    HTH
    RK

  • Query Wizard error

    In the dimension tab of the query wizard, I try to select all of members of a particular dimension and I get the following error. Any help would be much appreciated.
    Regards,
    Dan
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::createCursorManager
    OES: ORA-00920: invalid relational operator
    , Generic at TxsRdbOCIConnection::execStmt
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager oracle.express.olapi.data.full.DefinitionManager.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
         oracle.olapi.data.source.SpecifiedCursorManager oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification, oracle.olapi.data.source.Source[])
         oracle.olapi.data.source.SpecifiedCursorManager oracle.olapi.data.source.DataProvider.createCursorManager(oracle.olapi.data.source.CursorManagerSpecification)
         oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[] oracle.dss.dataSource.QueryUtilities.setUpCursors(oracle.dss.dataSource.SourceTemplate[], oracle.dss.dataSource.common.CubeCursor[], oracle.olapi.data.source.Source[], oracle.express.olapi.data.full.ExpressSpecifiedCursorManager[], boolean, boolean, boolean, boolean)
         

    9.0.1 with DB patch 9.0.1.3, olap patch 9.0.1.2.1 on Win2K.
    Jdev 9.0.2.822 on Win2K.
    I agree with the other guy, its when the dimension has many members in the available list.
    Regards,
    Dan

  • Query wizard

    In query wizard in "Select fields and sort order window" there are two colomns Group(Y/N) and Comp. for comp there are further options. when it is used? and how to use it?
    I am going through the implementation exercises . In Unit: Custom Configuration and Development
    Topic: Queries
    in question 1-3 it is suggested to use these fields group and comp.
    can please anyone tell me why it is used and when it should be used?
    Thanks in advance.
    Punam Gandi

    HI
    1.Group By is nothing but Grouping the fields results.
    Ex:
    Place               Rev.
    store_name     Sales     
    Los Angeles     $1500     
    San Diego     $250     
    Los Angeles     $300     
    If use GroupBy for place,you will get the result as:
    Los Angeles      $1800
    San Diego          $250
    2.Comp. to perform special common operations.
    Hope you got it.
    Edited by: kambadasan on Sep 22, 2011 4:20 PM

  • Dynamic Aggregation Using BI Query Wizard

    Hi,
    Is it poosible to perform dynamic aggregation using Oralce Query Wizard. In other words , is it possible to change/filter the dimension members of a particular dimension and recalculate the aggregation with out changing the fact/dimension table contents.
    Your help is appreciated.
    Panneer

    Hi,
    Not sure exactly what you are tying to achieve. However, if your data is stored in Analytic Workspace objects then you can recalculate data via OLAP DML programs or models dynamically from within a BI Beans application. The AW environment is always attached in read-only mode as a default. Hence, you can change the data during a session and then dump the changes when the user exits the application.
    From within a relational environment it is very difficult to create the same approach since it is possible a commit could be issued. Unless you mark the required tablespaces as read-only. In which case you could execute PL/SQL procedures to recalculate data. However, not sure how you would resolve the refresh of any related MVs
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • Create report without query wizard

    Hi,
    I want to create report without using query wizard in SAP B1. Can it possible by code?

    Maybe your question is related to this thread :
    Re: Execute report  query using vb.net code

  • After 1 year earned leave should generate and pro-rata quota should generate next year on jan 1st.

    Hi Experts,
    Here is the client requirement and please let me know how to solve this.
    Earned Leave: after 1 year earned leave should generate and pro-rata quota should generate next year on jan 1st.
    Example: if employee joins on 01/07/2012 after 1 year i.e 01/07/2013 quota should generate 22 days next year on 01/01/2014 pro-rata quota i.e 01/07/2013, 11 days pro-rata quota should generate. Total 22+11 =33 have to generate on 01/01/2014. and next year 01/01/2015 (22+11+22)=55.
    Note: on 1/7/2013 = 22 days
    on 1/1/2014 = 11 days +22 days; total=33
    on 1/1/2015 = 33 days +22 days; total=55
    Conditions: if employee joins before 15th date of current month include the current month, if employee joins after 15th date exclude the current month.

    You will need 2-3 PCRs to address this.
    In one PCR you need to query the Date of Hire (from IT0041 - I guess you are maintaining this) using HRS=YDAYxx - where xx is the date type. You can then check it it is the first year anniversary or not by using HRS?01. If the condition satisfies populate a custom time type with 22 days.
    In another PCR, you need to check for 01 Jan by using HRS=BCURMO and HRS=BCURDY. In this PCR check again the length of service (see above). If it is more than 1, then proceed to give the pro-rata amount.
    If the pro-rata formula is simple you can use the second PCR or you would need a 3rd PCR to get the pro rata amount. Using HRS=Y**** operator you can query many date differences which will help.
    Regards
    Pramod

  • Field validation in table maintenance generator and input value grey out.

    i have created ztable with 3 fields as em_no,em_no and addrnumber.
    first two fields are custom fields but the third custom field need to validate the standard table adrc contains the value of the field addrnumber.
    i need the query of field validation query which we write in create entry events in table maintenance generator and also if we give wrong value for addrnumber in sm30 maintain table, the input field need not to be grey out for next entry...
    please help.

    Hi,
    create method -
    >before saving data.....write the logic between the method
    go to utilities->table maintanance ,,,after creating generator ---go to envirnment->modification->events.
    create event -.>.as zsave select event  type 1(before saving data to table) write code in include....
    consider data for field3 is 10 .
    lv_new = ztbr(table name)-field3.
    select field3  from ADRC(ZTABLE) into wa_new (TYPE ZTABLE) where field3 = lv_new.
    if sy-subrc = 0.
         working fine
         else.
        message  i888(sabapdocu) with 'data invalid'.
    endform.
    This will help u...
    Thank u.........

  • How can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    Read this Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
    And also refer to this link where You have repeated this question.
    PS: Please stick to one thread. That way, its easier to keep track of your query and answers

  • Embed eForm on Frontend of Site, Generate and Store Accomplished PDF

    Hi Everyone,
    My company is thinking about purchasing Adobe Acrobat X Pro, but we're on the fence since we're not sure which variant of the product to buy, nor are we sure if its even capable of doing what we need it to do.
    I've tried doing the live-chat a couple of times, but no luck. And the wait-time for the calls might as well be eternity.
    If anyone can tell me if what we want is possible, and what we need to accomplish it (do we need to buy anything, how do we integrate the application to our framework?), we'd really appreciate it.
    Basically it's like this. We have a couple of PDFs of blank forms that we use at the office. We want to make online versions of these forms that we will have up on our website.
    Whenever a client fills-out the form and clicks submit, we want the accomplished (with answers) PDF to be generated and/or stored on the server.
    We were able to use a trial version of the Acrobat X Pro just fine and we were able to select the blanks and set them as fields... but after that, we don't know how to move on. Is there anyway to store this on Adobe's server and embed it on our site? Can we convert this to HTML?
    Afterwards, when the client submits, the data is sent to which database? Do we need to retreive it (from where) so we can create the PDFs ourselves? Or is there an Adobe Service for this?
    Our main concern is that the final product (accomplished PDF) should be identical to the original PDF we had. The eForm/Online-form itself can be redesigned so it looks better on a webpage.
    Any suggestions? Are we on the right track?
    Thanks!
    Justin

    When you say "You can then gather, organize, download, etc. the data at Acrobat.com as you wish.", how do we do this? I tried using the offline TRACKER applet (I have one on my PC), which had a Portfolio that auto-synced with Acrobat.com. I could export to CSV, and extract individual PDFs from the Portfolio, which was cool.
    But is there any way to do the same operations online (no need to Adobe Acrobat on your PC)... I'm thinking of portability issues (our site admin's might need to maintain the site from a different laptop while on the go, for example.
    Is there an area on the actual http://acrobat.com/ website that tracks my distributed forms and the responses, allows me to export to CSV, and extract individual PDFs?
    Thanks!
    Justin

  • Re-generate and/or re-activate

    If I add a new field to the end of a custom data base table (Z table) and there are programs that already use the Z table but will not care about the new field added to the end of the Data Base definition, do I have to re-generate and/or re-activate these programs?

    Hi,
    No need to do any thing, you just adjust the data base.
    using the menu UTILITIES->DATA BASE UTILITY->
    click on ACTIVATE AND ADJUST .
    this will do.
    nothing else required.
    regards
    vijay

  • Configuration Failed Error while running the Shareoint 2010 Products and Configuration wizard in windows 7

    Hi Techys,
    Kindly help me to resolve the below issue
    "Configuration Failed Error while running the Shareoint 2010 Products and Configuration wizard in windows 7"
    Many Thanks,
    Madhu

    Hi,
    Follow this link for smooth installation for SP 2010 on Win 7.
    http://msdn.microsoft.com/en-us/library/office/ee554869(v=office.14).aspx
    Murugesa Pandian.,MCTS|App.Development|Configure

Maybe you are looking for