RE: Modifying a Saved Query

Hi there
I have saved a query and now I would like to make some changes to it. How can I have the "guts" on the query be shown as it was when it was being created using the Query Wizard. I do not understand all the query lingo, but I find when I used the Query Wizard I was able to logically think the query through.
Please help!! I know there must be a way to do this but I cannot find anything.
Thank you
Jennifer Klemmer

Jennifer - if you are just starting out with the activity of writing queries and interested in learning, PLEASE leave an Email address here so I can contact you...
SAP never lets you go back to either the Query Wizard or Query Generator once you have saved and closed it...
Sidenote:  From my personal experience, the Query Wizard is not the place to do SQL.  Once you get started, your customers end up wanting more and more complex reports/queries that cannot be done in Query Wizard...but even the Query Generator is not completely correct when you start joining six, seven or eight tables (the number can get quite large once the customers start coming up with their ideas - last SQL I wrote was 14 tables)...
Since I did not know SQL before getting into SAP B1, I created a document to show those unfamiliar/new to SQL how to write it.  I have taught quite a few folks how to write SQL that is usable AND documented correctly for those who follow behind and need to update that SQL.  Some of these folks have never written a lick of it before...it really is easy, but often folks make it more complex than need be...(hahaha - but sometimes it really does need to be complex)...
Zal

Similar Messages

  • Modifying the sql query in doDML of entity

    I am using Jdev 11.1.1.4.0 and SQLServer Database
    I want to modify the sql query in "doDML(int operation, TransactionEvent e)"
    I could check what kind of operation like (operation == DML_UPDATE) and do some additional stuff.. But I want to edit the query because of which we entered doDML..
    I want to edit the query because when i use SQLServer database with SQLBuilder as SQL92, the update statement will have table alias like "update table <table alias>" which the SQLServer is not recognizing.. So I want to remove that alias from sql query in doDML..

    It isn't possible.
    However as per the following MSDN page a table alias is fine in an UPDATE statement so are you sure this is your problem?: http://msdn.microsoft.com/en-us/library/aa260662(v=sql.80).aspx
    CM.

  • Modifying the Inner Query Statement in FORMS 10g

    Hi,
    I have a form with a Search Criteria section. The user builds the search criteria by puting values in the ITEMS. Then I want to query the table USING the criteria entered by the user.
    I know this is possible.
    How would I modify ORACLE's query statement in the form.
    I did this a VERY LONG time ago (forms 4.0), but don't remember how to !!!
    Please Help,
    Marc.

    Hi ,
    declare
       v_where varchar2(600);
      begin
         v_where:='<your where statement>';
         SET_BLOCK_PROPERTY(<your_block_name>,DEFAULT_WHERE,V_WHERE);
         execute_query;
      end;Greetings,
    Sim

  • Modified Historic Accounting query tools/Inflation Accounting tool for Assets

    Modified Historic Accounting query tools/Inflation Accounting tool for Assets
    Does anybody know if Oracle provide such a product, or is it a third party solution that interfaces with Oracle? If you have any info on this, I would be grateful
    Thanks

    First check if you can add the function associated with the tools option to "responsibility exclusions" using sysadmin.
    See http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/fndscrsp.htm
    If not, then consider writing a personalization (one for each tools>menu option)
    The personalization will fire on the "special7" (or whichever the number is).
    In the actions, you should display an error message that says "This option is not available". That will prevent the user from opening the form.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • Saving query result to a file

    Hi,
    I have a sql*developer version 1.5 but i am getting a problem while saving query result to a file. When i click on "script output "-> "file icon" nothing is showing.
    Can anyboby guide me whether its a bug or some other settings are required.
    I have oracle 10.2.0.3 working on linux.
    Thanks & regards
    Girish

    I am getting the same thing and as far as I know it is a bug.
    As a workaround, you can either copy the contents of the script output or run the query as a statement (F9) instead of as a script (F5) and export the query results from the results tab.

  • Create and schedule iBot to seed cache with  the saved query

    Hi all,
    May I know how to Create and schedule i Bot to seed cache with the saved query((iBot to run right a daily load to reseed the cache)

    Here is the documentation:
    10g
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    11g
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10544/delivers.htm#i1060405

  • No Role exist when saving query

    Hi all,
    After creating a query in query designer when I click to save it, it shows no roles in the Role area. However, I can save it under favorite.
    Can someone plz shed some light as to how can I add roles here. Bearing in mind, I have already added some roles in PFCG that appear in SU01 for this user, but these are not available when saving query.
    Is there any specific auth object required to save the queries to their respective roles?
    Regards.
    Mohammad

    Hi,
    Pls check the below link.
    [Re: Steps to add Query to a role (SAP BW);
    Hope this helps!!!
    Regards,
    Jini

  • Diff Between Saved Query Views and Work Books

    Hi..
    Can some one explain me the diff betwen Saved Query views and Workbooks interms of their use, and operation..
    thanks..
    kishore

    hi kishore,
    We use workbooks for excel formating,like font changes, lay out changes etc...
    Workbooks into which queries are inserted are no different in appearance than other Excel workbooks.
    They can be saved as files, copied, sent and (using Excel functions) edited however you like and even supplemented with other data.
    Views are primarily used for BW Web Reports, it is similar to the concept of workbooks is for BEx.A local view can be accessed only within a workbook in which it was saved, where as a global view can be accessed globally in the system, it is not attached to a workbook. Only Global view can be used in BW Web Templates.
    u can seee the help doc for more details:
    http://help.sap.com/saphelp_nw04s/helpdata/en/0d/af12403dbedd5fe10000000a155106/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/3a/89883989676778e10000000a11402f/content.htm
    bye
    shameem

  • Workflow Action on Before modified record saved

    Hi,
    When creating a new update action on a workflow for "Before modified record saved", why can I not select a field from the "field to update" pick list that I have renamed?
    If I do not rename the field, select it for the field to be updated with my fomula, then go into Admin > App Cust > Record Type > Field Steup and then rename the field and make it appear on the page layout, this works, but if I want to edit the formula for the workflow action, I cannot then select it as per my original issue!
    Is this a bug or just the way the system works?
    Thanks for any help/advice on this

    Ok - further to this, if I use the Indexed Short Text 1 or 2 field and re-name it, then re-name it back to the original field name it does not appear in the list of Fields to be selected for the action when it was listed there originally before I renamed it.
    Ideas anyone?

  • Executing saved query in B1

    Hi,
       Is it possible to execute a saved query in B1 or a formatted search from an addon.
    Appreciate your help.
    Gopal

    1. Every saved query get a menuitem... See Tools > Queries > User Queries (These are menuitems are dynamic but it might work)
    2. Regarding formatted searches you can activate a formatted search by setting focus of the field containing the search and make a send-keys (sboApplication.SendKeys("+");)

  • Start Saved Query through menuitem

    HI,
    I have saved different queries, stored in the "queries manager". But saved queries are only accessible through that queries manager. It is also possible to define a formatted search behind an EditText control.
    What I need is startup a saved query through code, by catching the button click event on a form or by catching a click event on an item in the modules menu. Are saved queries accessible through code?
    Has anyone done this before and tell me how I can do this?
    Thanks in advance
    Eddy

    Eddy,
    Maybe you'll find the following snippets useful.
    Just make sure that the name of your query is unique in the Menus -collection.
    HTH
    Juha
    -- snip ---
    SBOLaunchQuery("TheNameOfMyQuery")     
    -- snip ---
    Public Sub SBOLaunchQuery(ByVal strQueryName As String)
              Dim mnuitem As SAPbouiCOM.MenuItem
              mnuitem = GetMenuItemByTitle(strQueryName, SBOApplication.Menus)
              SBOApplication.ActivateMenuItem(mnuitem.UID)
         End Sub
    -- snip ---
         Public Function GetMenuItemByTitle(ByVal strTitle As String, ByVal mnus As SAPbouiCOM.Menus) As SAPbouiCOM.MenuItem
              Dim mnuitem As SAPbouiCOM.MenuItem
              Dim mnuitem2 As SAPbouiCOM.MenuItem
              On Error GoTo EndFunction
              If mnus.Count = 0 Then Exit Function
              On Error GoTo 0
              For Each mnuitem In mnus
                   With mnuitem
                        If .String = strTitle Then
                             GetMenuItemByTitle = mnuitem
                             Exit Function
                        Else
                             If .Type = SAPbouiCOM.BoMenuType.mt_POPUP Then
                                  mnuitem2 = GetMenuItemByTitle(strTitle, .SubMenus)
                                  If Not mnuitem2 Is Nothing Then
                                       Return mnuitem2
                                  End If
                             End If
                        End If
                   End With
              Next mnuitem
    EndFunction:
         End Function
    -- snip ---

  • Saved Query string

    Hi all..
    How to save the all query string?
    And, If the saved query string, just click the query string it is automatically search again and displays the search result. Is there any solutions?
    Thanks!

    Can anyone help this one?
    Thanks!

  • Saved query groups authorization

    Dear All,
    Saved query groups - no.1 to no. 20 are available in the authorizations form.
    I see there are only 15 groups  in the query manager --> manage categories, and in the authorizations are 20. the remnants are 5. Where will the five groups to be used and be able to find ?
    I use SBO 2004A. I also see that it is happened in SBO 2005A. I have tried to find in SAP notes but I can't see.
    I appreciate your answers. TIA
    Rgds,

    Hi Steve,
    Seems that noone here on SDN knows the answer (including myself)
    I suggest that you raise that to SAP Support - to have them checking the case.
    Sorry,
    Frank

  • Default saved query selections

    Hi,
    Can we have a saved query functionality without the ability to set the defaults for other users? We do not want our users to change or set the default values for all the users.
    Thanks
    AK

    Basically, I do not want my users to set their own defaults for the prompts and then save the selection for all the users. How can this be done?
    Can this Page option, "Save Current Selections -> For Others" be disabled for the users.
    Thanks
    AK
    Edited by: 864820 on Jun 9, 2011 8:05 AM

  • Running a saved Query in SAP2005

    Hi
    I want to repeatedly run a saved query from my application which I can do with the activatemenu command. One of our guys wants a list of current support calls on screen, I will update this every few minutes.
    The problem I have is that a system message appears on screen that you must press enter on.
    An ideas how I can clear that message so I can display the next query please ?
    Thanks
    Regards Andy

    This snippet seems to work. Well... most of the time:
                   p_old = Cursor.Position
                   Cursor.Position = New System.Drawing.Point(1, 1)
                   SBOApplication.StatusBar.SetText(System.Windows.Forms.Application.ProductName & ": A click on 'OK' is needed in the case that the 'System Message' window does not get closed by itself in 30 seconds.", SAPbouiCOM_BoMessageTime_bmt_Long, SAPbouiCOM_BoStatusBarMessageType_smt_Warning)
                   frmQuery.Select()
                   frmQuery.Items.Item("15").Click()                ' Edit button - Disables editing
                   System.Threading.Thread.Sleep(500)
                   SendKeys.Send("{LEFT 100}{ESC}")               'Fill the keyboard buffer with harmless keystrokes + ESC to clear the 'System Message' window
                   frmQuery.Items.Item("1").Click()                ' Execute
                   SendKeys.SendWait(("{LEFT}"))               'wait that all keystrokes are processed
                   Cursor.Position = p_old
    HTH
    Juha

Maybe you are looking for

  • How do I transfer pictures from Messages on my iPhone, to iPhoto?

    IPhone 4s, up to date on software. My daughter sends me adorable pix of our granddaughter through Messages. I can't figure out how to get them to transfer to iPhoto, either on my computer <MBPro> or even on the iPhone. Any suggestions? Kris

  • Using with a G3 B/W?

    Hello! I have an old G3 B/W that I was using an old dinosaur of a monitor with. I am running 8.6 on it because I mainly use it for my Agfa Arcus II scanner. I also have a PowerBook G3 Pismo and PowerBook G5. I have a 17" Studio display that I use wit

  • Count total rows in vo.

    Dear All, I have a af:showDetailItem in which i have a af:table. I want to show the total number of records in the header of af:showDetailItem. example: Employees  (count=10) So any one have any idea of how to solve this problem.? Regards, Santosh. C

  • Does Firefox have this or a similar feature?

    In IE/Tools/Internet Options/Privacy/ there is a check box for "Never allow websites to request your physical location". Any means of tracking a physical location should have some means of control. How does Firefox address this potential exposure?

  • How to create new client

    can anybody tell me to create a new client at present i have 111,222,333 but i need 000 also. send me the comfiguration steps