Query Editor code creation

Is there anyway to edit the code that the query editor creates from scratch?
For example, I would love to use * instead of the actual field names. I would also like to NOT include the schema name when creating these queries (Just leads to refactoring work as schemas and fields change all the time during our development). Is this controlled in a setting or property somewhere?

Very true. You can however click on the rowset, and edit it in the "command" portion of the property box. My current workaround, but defintily not as nice as having a query editor to create all my statements in. Thanks for the try though.

Similar Messages

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • SQL query editor and "like" with a parameter (can't get it to work).

    I've been following all sorts of directions on how to use mysql a table and modifying the query to accept a parameter, funny thing is no matter how I try to construct the simplest query, the query editor does not parse the query properly when using the "LIKE" statement.
    Using 3.11 and/or 3.12 of the J/connector with no success.
    I am using a query that resembles the following:
    select all table.fieldname, table.fieldname2 from tablename where table.fieldname like '%?%'
    It parses correctly but the code when run can not find the parameter as it reports the number of paramenters as being incorrect.
    I have tried these varriations of the "like" statement.
    '%?%' - expected this to work, it parses correctly but errors out claiming invalid number of parameters.
    %?% - without quotes causes parsing errors.
    '?' - parses correctly but isn't the correct query.
    ? - again without quotes causes parsing errors,even if it did it isn't the correct query.
    If I set the query to use a value instead of a parameter - it works fine.
    Hints? Suggestions? Bug?
    Thanks in advance.

    Hmm, try use
    select ... like ?
    And path this kind of string as the parameter to your query
    String findCriteria = "what you are looking for";
    String parameter = "'%" + findCriteria + "%'";Roman.

  • SQL Query editor misbehaving

    SQL query builder does not allow LIKE criteria for selecting
    data, as in:
    SELECT ALL ROOT.PERSON.PERSONID,
                             ROOT.PERSON.JOBTITLE,
                             ROOT.PERSON.FREQUENTFLYER,
                             ROOT.PERSON.NAME
        FROM ROOT.PERSON
    WHERE PERSON.NAME LIKE ? ;I tried editing the JAVA code for my web form directly:
               personRowSet.setCommand("SELECT ALL ROOT.PERSON.PERSONID, ROOT.PERSON.JOBTITLE,
    ROOT.PERSON.FREQUENTFLYER, ROOT.PERSON.NAME
    \nFROM ROOT.PERSON\nWHERE PERSON.NAME LIKE ?");
    but as soon as I click on the SQL Query editor, eg. to add an output column, an error window pops up, and in the JAVA
    code the 'LIKE' statement becomes '='.
    I tried typing the 'LIKE' criteria in the SQL source code window,
    but I get the same behaviour: the JAVA source gets updated, but
    as soon as I return to the SQL Query editor, the error window
    pops up and the 'LIKE' statement is replaced by '='.
    Otherwise I found the way the IDE handles data table
    component binding to database data rather elegant.
    lovely work, guys!

    Nice to know that, thanks for the feedback.
    Please consider the "LIKE" operator a very powerful and useful SQL keyword, by means of which you can incorporate all kinds of expressions in order to build a comparison that is much like regular expressions.
    Whoever used the LIKE operator to select stuff is probably never give it away because it is so powerful and programmable with variables and all sorts of constructs - you can practically go after any "text" field with it and get it your way.
    I personally would rather have the EQUAL operator handle regular expressions directly - but I found LIKE easier and more viable to handle programmatically using variables/field contents as part of the search arguments. This ia also a limitation of SQL Server, Access, etc. - but you can't say that they didn't provide you with a suitable ersatz.
    So I guess supporting LIKE makes sense for Studio Creator...

  • Convert a query form to Creation form.

    We create a normal jspx form and drag and drop a view object normal mode.
    When we open the form first record come
    Then We need to change this form to a creation form with new empty record.
    Form include many custom code.We can't recreate form.
    How can we do it?
    it means how Convert a query form to Creation form?
    we are using jdev 10.1.3.2
    Thanks

    You have to add Create method in PageDef.xml and then add expression in RefreshCondition to invoke it (in executables). For more information see:
    http://download-uk.oracle.com/docs/html/B25947_01/web_form006.htm#CACECCJA
    Kuba

  • Transaction code creation date

    Hi,
    Can anybody please help me, in which table we can get the info about transaction code creation date?
    Point will be rewarded.
    Thank you.

    Hi,
    Do you mean by the date on which a particular document is created. If it is so it would be available in the header data of that document. For example if you are looking for sales order creation date, then u will get it in VBAK. If you r looking for deli doc creation date then u can get it in LIKP and for billing in VBRK.
    Hope I am answering to ur query.
    Kind Regards
    Chakradhar

  • SQL Error in Query Editor

    Hello All,
    I am new to the Sun Java Studio Creator and in the tutorial Linking Components to Data tutorial.
    I created my own datasource which is a MS Access database.
    I have a simple look up table and I dragged the table onto the dropdown list as instructed and nothing happened. The dialog box the tutorial said would appear didn't appear.
    So I right clicked on the rowset added on to the page to get in the Query Editor.
    When opening the Query Editor, I get an error:
    Error Connecting to Database:
    java.sql.SQLException:[Microsoft][ODBC Driver Manager] does not support this function
    The SQL reads in the editor is something like this:
    SELECT ALL tableName.Column 1 FROM tblName
    Why does it automatically put the "All". Is that standard SQL? I don't think so. But I guess I could be wrong.
    I have not seen this used in other SQL. I've used T-SQL, PL/SQL, ACCESS SQL and never had I seen the "ALL" preceding the columns of the table.
    Quite frustrating when something as simple as a simple SELECT statement does not work when you're trying to learn a new tool.
    When adding the datasource, the test connection is fine. The query editor sees all of my tables in the MS Access database and all of the added table's columns.
    Am I missing a driver, or update to a driver? Or is this Sun's way of saying "Screw Your Microsoft database use something that we want you to use!!"
    Which is not pretty cool.
    I'm a newbie with this tool, but I have been coding for a while using MICROSOFT products. And have not had the same problems as this. Or at least getting help through documentation.
    I'm just venting here. I want to learn this tool. And when simple processes doesn't work. And documentation in why it's now working is hard to find, it gets quite frustrating.
    Anyone's help would be greatly appreciated.
    I truly appreciate your time for reading through my frustration.

    Hi,
    Please check the driver and also take a look at the link for "Supported Database Servers and JDBC Drivers"
    http://www.sun.com/software/products/jscreator/sysreq.xml
    regards
    MJ

  • Query SQL code gets deleted after export to Excel. "Query must have at least one destination field"

    Hi all,
    I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
    must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
    statements.
    Thank you in advance for your help,
    Jesus 
    Edit:
    One of these queries are like the following (all of them are of this type):
    SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
    FROM Table1
    WHERE Field6 is not null
    GROUP BY Field1, field2, field3, field4, field5
    Order By Sum(Field6) desc

    Hi Peter, 
    Thank you for your response, I updated the original question with one of the codes.
    Thanks,
    Jesus

  • Company code creation issue

    Hi All,
    When I am creating company code I am getting an error as below.
    "you may not change the currency since documents exist with this currency"
    Above issue is coming while new co code creation or copying of existing co code also.
    Please advice on the above issue.
    Regards,
    Riyaz

    Hi,
    I hope you are creating new company code by copying from the exiting company code. If you copy one company code to another company code then you will get few pop- up message like do you want to use same chart of account or do you want to use same currecny like that. So may be you have selected different currecny. Sap has come up with country template for each country. So you can use country template to create the new company code.
    Thanks & Regards
    R.K

  • New company code creation in sap

    Dear Experts
    I want to configure new company code in sap. can anybody share the templates for data collection, which are required during company code creation and configuration steps to be followed for the same.
    Thanks
    Venugopal

    Hi Venugopal,
    For all configuration questions please use help.sap.com
    Thanks.
    Sebastian

  • Business requirement Questioneer/checklist for New Company Code Creation

    Experts,
    Can anyone provide Business requirement Questioneer/ Checklist or  say all the factors to be considered for New Company Code Creation from user's point of view.
    this questioneer we will send to User department to specify all the requirements and add if required.
    Eg; Fiscal year definition, Posting period, Doc. types, etc. 
    Please provide full list to be considered before we go ahead.
    - Nilesh

    Dear Vivek,
    Actually I need the factors to be considered while defining Co. Code settings.
    All such factors which will guide us (SAP Team) how to design parameters in the Co. Code.
    We will send this questioneer to User Department to fill up and on that basis we will conclude our design Parameters.
    Please help.
    - Nilesh

  • Error in Process code creation

    Hi All,
    I need to create a process code and i need to attach  a custom function module for that process code.
    So i have  created custom FM.
    afterward in WE42 ,
    I gave custom process code name ,description and FM .
    when i tried to save the same its giving following message.
    For entry, access 'Function module for ALE-EDI inbound processing'
    when i tried to give some entries its not accepting...
    Please provide me the steps for process code creation.
    Reg,
    Hem.

    hi
    good
    Definition
    Another name for a specific process, for example function module or workflow. IDocs are read or written in this process.
    Use
    In the partner profiles, the processing is never addressed directly but rather always using a process code. You can therefore replace an old process with a new one for any number of partners by assigning the existing process code to the new process.
    Two types of process code are used in conjunction with the partner profiles:
    1) Outbound Process Code - if you are using outbound processing under Message Control, the IDoc is generated in the IDoc Interface. The process code names the relevant function module.
    2)Inbound Process Code - names the function module or workflow which reads the IDoc data and transfers the data to the application document.
    There are process codes for exception handling:
    1) System Process Code - names the workflow which is triggered in inbound or outbound processing when an exception occurs.
    2) Status Process Code - names the exception workflow which is triggered when an incorrect status is returned by the external system.
    These two types are configured centrally and not on a partner-specific basis and therefore do not have to be maintained when a new process is defined. They were introduced for the sake of completeness, so that each process in the IDoc Interface is addressed using a process code.
    reward point if helpful.
    thanks
    mrutyun^

  • Error while tax code creation

    Dear All,
                    At the time of Tax code creation through FTXP . i am getting the error message as Define the tax code on level 300.we are in SAP 4.7 with procedure TAXINJ. how to resolve this issue...?..
    Regards
    Anand.

    Hi,
    Please go to SM30 and enter the Table Name J_1IINDCUS. Now click on Maintain. Enter your company Code 1005 and Maintain the all settings which are required.
    I hope it should work
    Regards,
    Jigar

  • Tax Code Creation when Excise is not Known during PO creation

    Hi,
    Scenario: Dealer's Scenario where during PO creation we don't know excise Amount and we consider PO price to include excise. Apart from excise we have CST. Excise and CST both will be inventorised.
    Example: PO = 5000 (Inclusive of excise) on which CST is 1 % = 50
    Now during MIGO I apply MRP tick which Splits PO base value and excise. Say 1000 is excise out of 5000.
    GRN should be of 5050 ideally but the ISSUE is system posts it for 5060 Rs i.e on 1000 again system calculates CST 1% and adds it during GRN.
    Can anyone suggest what could be the reason for same and how to resolve it ? Is there anything with tax code creation, tax procedure or MM pricing procedure ???
    Br, Deepti

    Hi Deepti,
    Creation of Purchase order inclusive of Excise Duty. @ 5000/- .
         2. The Duties should be Inventories. But you cannot show actual Duties at time of PO.
    In FV11, maintain 0% for Inventory Duty conditions. Maintain 100% for Inventory Total conditions and also maintain CST condition.
    Display Taxes
    3. In MIGO Base will default as PO Price, We will change it to Actual as per vendors Invoice also Enter BED,Ecs,Seces as per Invoice.  Do NOT tick MRP indicator.
    4.Accounting Entry for GRN
    Regards,
    Sachin Indulkar

  • How to execute SQL Query in Code behind Using infopath 2010?

    Hi,
    I've repeatable on infopath form, and want bind it throuth code behind from SQL table. My question is that how to execute SQL Query in code behind from infopath as well as how would get Query result to bind repeatable control?
    Thanks In Advance
    Shoeb Ahmad

    Hello,
    You first need to add new SQL DB connection then you need execute connection from code behind.
    See below link to create new connection
    http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx:
    http://www.bizsupportonline.net/infopath2010/connect-infopath-2010-sql-server-2008-table.htm
    Then use below code to execute this connection:
    AdoQueryConnection conn = (AdoQueryConnection)(this.DataConnections["Data connection name"]);
    string origCommand = Select * from tablename;
    conn.Command = origCommand;
    conn.Execute();
    Finally bind your table:
    http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
    http://stevemannspath.blogspot.in/2010/09/infopath-20072010-populate-repeating.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Trouble Using Character Sets - Chinese GB2312

    Hi, I am trying to display my site in Simplified Chinese (GB2312). I have verified that all of the files are encoded with the GB2312 character set, when I open them in a language capable editor I can see chinese characters. I have also used <cfheader

  • Php url parameters

    I wanted to add url parameters to the spry menu bar widget such that they show posts with specific values like categories_id are the unique identifiers of my categories and I have added them to my post database too so I need the page to show the post

  • Fixing Colors in Photoshop?

    i was using photoshop and my colors are dull now instead of bright colored, how do i fix that?

  • SHOULD system drives be allowed to sleep?

    In this case, I'm not as interested in saving energy as I am in prolonging the life of my internal hard drives. Is it safe... should system hard drives be allowed to sleep? Or, is it better that they don't repeatedly sleep and wake? I'd appreciate re

  • Does latest os support 3rd party cook in iPad

    I had my iPad 2 upgraded to latest os.will it support 3rd party cookies?