How to cancel a query when execute query builtin fire and No Records found.

Hi,
I am unable to cancel a query when i make query (fire enter-query) then fire (execute-query) and no records found then the form status is enter-query mode. Plz help me that how can i back to normal mode of form.
here i use the code for coming back to enter-query to normal mode but no results.
     if :system.mode = 'ENTER-QUERY' THEN
ABORT_QUERY;
     clear_form;          
     END IF;
thanks in advance....

Hello,
I would test the record status of the first record in the block. If this status is 'NEW', then there is no record retrieved, so that you can exit the query mode with exit_form()
Francois

Similar Messages

  • When executing query...in the result i want to display each row values

    Hi All,
    When executing query...in the result area i want to display  each row values.
    Example:  query result is like this
    Business Area   Sales   Material 
    kh02                 1000      2000
                            2000       300
                            5000        400
                            6990       1000
    Kh03                1400        700
                             200        500
                              50          60
    but i need like this
    kh02               1000         2000
    kh02                500           600
    kh02                400           300
    kh03                1400         700
    kh03               200            500
    Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
    please advice me easy way
    i willl be very gr8ful
    Thanks
    sidhartha

    Hi,
    that'S exactly what hide repeated key values does. If this option is on your result is:
    Kh02 1000 1500
    blank 500 456
    blank 600 700
    kh03 400 500
    balnk 500 600
    If you turn it off, the result will be:
    Kh02 1000 1500
    Kh02 500 456
    kh02 600 700
    kh03 400 500
    kh03 500 600
    Exaclty what you want. Try it, it should work
    Regards,
    Juergen

  • How to cancel excise invoice when mov type is 122

    Hello,
    We are creating the PO for one material. and make the GR for that material (material is Quality inspection material)
    so i,e the reason the material is goes to Quality inspection.
    Till then we are Made the J1IEX create the Part1 and Part2 entry.
    So in mean while in Quality all the material's are rejected so, now how to reverse the Part1 and Part2 entries.?
    How to cancel excise invoice when material is qulaity inpspection.
    What i made:
    Made the Return delivery means 122 mov doc and Try to cancell the excise invoice......but no successful
    Regards
    sapman man

    Hi
    Cancelling of excise invoice will be done in the following ways depending on the situation.
    Case 1:
    Create PO
    Do MIGO (create and post excise invoice)
    Create return delivery in quality inspection.
    Now we have to create a rejection inmvoice in J1IS with reference to the return delivery wherein the excise values gets reversed.
    If u try to reverse part 2 entries in J1IEX it will not come.
    Case2:
    Create PO
    Do MIGO (create and post excise invoice)
    Do cancellation of MIGO (102 mvt)
    With ref to vendor or internal excise invoice number just post the transaction. excise part 2 entries will get reversed. This will happen only if 102 entry exist for the PO line item.
    In a nutshell excise entries cancellation comes only if we cancel the material document. If we do return delivery then we have to create rejection excise invoice.
    Hope u get cleared in this regards
    Reg
    Raja

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to ignore a variable defined in a query when the query gets executed

    Hi SAP guru, I am creating a query, which has a user input variable, say A, and a replacement path variable, say B, Bu2019s value is determined by A and the whole purpose of A is letting user entering an initial value and A must be ignored when the query gets executed. How can I achieve this in query designer?
    Thanks

    Hi, thanks for the reply. Actually this is not my problem. My problem is the query should be filtered by  a variable, say B, but B is not allowed to be entered directly by user (i.e. B could be a replacement path variable or user exit type). So B has to be derived from another user input variable, say A. However if I defined A in the query, A is by default used as one of the filters, which is not desirable because A is a subset of B in my case and should be ignored.
    Is there options (settings) that allow the query ignore a specified variable (A) ? If not is there other ways to get around this?
    Thanks
    MichScott

  • Urgent! I get value when executing query of VO in page, but null in plsql.

    Hi, gentlemen,
    Please help me with this issue.
    1,My VO query sql is like this:
    SELECT acra.receipt_number as receipt_number,
    al_a.meaning as receipt_type, acra.currency_code as currency_code,
    acrha_a.amount as receipt_amount,
    acra.receipt_date as receipt_date,
    acrha_b.gl_date as gl_date,
    arm.NAME as payment_method,
    acra.doc_sequence_value as doc_sequence_value,
    al_b.meaning as status,
    acrha_a.acctd_amount as acctd_amount,
    rcta.trx_number as trx_number,
    rc.customer_name as customer_name,
    rc.customer_number as customer_number,
    rc.jgzz_fiscal_code as taxpayer_id,
    rsu.location as customer_site,
    acra.customer_receipt_reference as customer_ref,
    acra.comments as comments,
    acra.cash_receipt_id as cash_receipt_id
    FROM ar_receivable_applications_all araa,
    ar_cash_receipts_all acra,
    ar_lookups al_a,
    ar_cash_receipt_history_all acrha_a,
    ar_cash_receipt_history_all acrha_b,
    ar_receipt_methods arm,
    ar_lookups al_b,
    ra_customer_trx_all rcta,
    (SELECT hca.cust_account_id customer_id,
    hca.org_id org_id,
    hp.party_name customer_name,
    hca.account_number customer_number,
    hp.jgzz_fiscal_code
    FROM hz_cust_accounts_all hca, hz_parties hp
    WHERE hp.party_id = hca.party_id) rc,
    (SELECT site_use_id site_use_id,
    org_id org_id,
    cust_acct_site_id address_id,
    location location
    FROM hz_cust_site_uses_all) rsu
    WHERE araa.receivable_application_id = :1
    and acra.cash_receipt_id = araa.cash_receipt_id
    and al_a.lookup_type(+) = 'PAYMENT_CATEGORY_TYPE'
    AND al_a.lookup_code(+) = acra.TYPE
    AND acrha_a.cash_receipt_id = acra.cash_receipt_id
    AND acrha_a.current_record_flag = nvl('Y', acra.receipt_number)
    AND acrha_a.org_id = acra.org_id
    AND acrha_b.cash_receipt_id = acra.cash_receipt_id
    AND acrha_b.first_posted_record_flag(+) = 'Y'
    AND arm.receipt_method_id = acra.receipt_method_id
    AND al_b.lookup_type(+) = 'RECEIPT_CREATION_STATUS'
    AND al_b.lookup_code(+) = acra.status
    AND rcta.customer_trx_id(+) = acra.receivables_trx_id
    AND rcta.org_id(+) = acra.org_id
    AND rc.customer_id(+) = acra.pay_from_customer
    AND rc.org_id(+) = acra.org_id
    AND rsu.site_use_id(+) = acra.customer_site_use_id
    AND rsu.org_id(+) = acra.org_id
    2, I add the init func in VOImpl which is like this:
    the receiptApplicationId is 136877.
    public void initQuery(Number receiptApplicationId)
    setWhereClauseParams(null); // always reset
    setWhereClauseParam(0, receiptApplicationId);
    executeQuery();
    When executing the page, its value shows to be "現預金".
    And I used String receipt_type = (String)oaRow.getAttribute("ReceiptType"); in AMImpl, its value is "現預金".
    But when I execute above sql in pl/sql developer, its value is null.
    I am really confused with this.
    How could I get the whole running sql statement, and know why my issue is like this? It's very urgent, Thanks!

    This Query is Org Specific.(As this query using Ord_id attribute to fetch out row.)
    you need to set org_id at PLSQL Developer or Toad Level.
    Thanks, Avaneesh

  • To disable the calendar when executing query

    when executing the form the calendar is automatically displaying how to disable the calendar at querying the records
    thanks
    prasad

    Sorry but I could not understand clearly your question

  • Getting error "Column is not indexed " when executing query on ORACLE 10g

    Hi all,
    When executing the below query im getting the error "ORA-20000:Column is not indexed"
    query:
    select xmlelement("nexml:result",xmlattributes('http://namespaces.nextance.com/nex/xml' as "xmlns:nexml"),xmlelement("nexml:value",count(*))).getClobVal()
    from "permission"
    where ( ((contains(object_value,'(searchDocument) inpath(/permission/action)') > 0)) and ((existsNode(object_value,'/permission[resource/resourcekey/@type[. = "document"]]') = 1)) and ((contains(object_value,'(GeneralUser) inpath(/permission/principal/@name)') > 0)) and ((existsNode(object_value,'/permission[principal/@type[. = "group"]]') = 1)) and ((existsNode(object_value,'/permission[type[. = "allow"]]') = 1)) and ((contains(object_value,'(nexip) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Corporate) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(ProcurementAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Procurement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(SalesAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0)) )
    Then after checking some forum, i replaced "contains" with "ora:contains" and executed the query. Now im not getting the first error but got a new error "invalid relational operator"
    So please help me in resolving the errors?
    Thanks in advance.

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • Java.lang.StringIndexOutOfBoundsException when executing query on Oracle 9i

    SQL Deverloper Build 1467
    Windows XP
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    I have the following query being executed in SQL Worksheet.
    select * from address
    where address_id in (1, 2, 3, .... 1000, 1001);
    If I have <= 1000 expressions, it executes but if it has > 1000, the query does not return this error "ORA-01795: maximum number of expressions in a list is 1000". When I ran this it in console, it gave me this error. In oracle 10G it works fine.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 16058
    at java.lang.String.substring(String.java:1765)
    at oracle.dbtools.raptor.scriptrunner.SQL.run(SQL.java:73)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:116)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:186)
    I think this is a bug in the 9i module.
    -Nags

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • Calculated keyfigures not defined correctly error when executing query

    Hi Experts,
    I changed calculations in the calculated keyfigures and saved successfully.
    when I execute the query in BI7 Bex, I am getting errors like query element not defined correctly in the query. when I look into query in the designer its giving info messages for many calculated keyfigures saying reusable and saving can influence other queries.
    I reverted back the changes but the errors still coming up. I tried to copy the query and run it ..still didnt helped..
    Please suggest me with the solution..
    Quick replies are much appreciated and awarded.
    Thanks
    Vanaja

    Hi,
    The calculated keyfigure is the difference of two other calculated keyfigures...
    I tried to re-drag and drop into keyfigures column and didn't worked and still getting the errors.
    Please suggest some more..
    Thanks
    Vanaja

  • Java.sql.SQLException: ORA-00933: error when  executing query

    Hello,
    I am trying to execute the following query from a jsp page.
    String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";
    stmt.executeQuery(sqlUpdate);
    I get the follwoing error java.sql.SQLException: ORA-00933: SQL command not properly ended
    When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.
    Thanks,
    Nikky128

    Nikky128 wrote:
    Hello,
    I am trying to execute the following query from a jsp page.There's a big part of your problem. You shouldn't be doing database stuff in JSPs. If you must, you should be using JSTL and its <sql> tags.
    String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";Not using PreparedStatement here is just a silly noob error.
    When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.Probably a single or double quote that you can't see. PreparedStatement will eliminate that problem.
    %

  • Error when executing query its urgent

    hi,
    when iam executing my query in query designer through web morning i got the result in web.
    but when iam executing the same query in wad it is throughing an error like (System error in program SAPLRRK0 and form GET_FIELD_POSITION-01-))
    now again i check that one in querydesigner again it is showing the same error in querydesigner also
    vijay

    Hi,
    Refer Note 931975 - Problems when you execute a query
    Symptom
    At runtime, a query contains a generated ABAP program and a data structure, which is stored in the shared buffer. Due to the gap described here, the version of the ABAP program may not correspond to the version of the data structure.
    This causes several terminations when you execute this query:
    X299 Brain SAPLRRK0; Form GET_FIELD_POSITION-01-,
    X299 Brain SAPLRRK0; Form APPEND_KHANDLE_1-02-,
    ASSIGN COMPONENT L_FIELDNAME OF STRUCTURE C_SX_GVAR, and others.
    Other terms
    RSIX, SX_REPORT,
    Reason and Prerequisites
    The error can occur if one person changes a query and another person simultaneously executes the query. A query may also be changed implicitly if one of the objects used in the query is changed in another query.
    Solution
    The attached corrections apply only to Releases 3.X. An advance correction cannot be provided for NetWeaver 2004s.
    Before you implement the attached correction (in 3.X), you must change the two following method interfaces. Otherwise syntax errors occur in the CL_RSR_REPORT_RSIX class and the RRI0 function group when you implement the corrections.
    1. In Transaction SE24: Change the MODIFY method of the CL_RSR_REPORT_RSIX class as follows:
                  Insert the I_S_RKB1D import parameter with the type RSR_S_RKB1D.
    2. In Transaction SE24: Change the READ_SX_REPORT method of the CL_RSR_REPORT_RSIX class.
                  Delete all existing import parameters (that is, I_GENUNIID, I_DVERS, I_IDVERS and I_GENTIME) and insert the I_S_RKB1D import parameter with the type RSR_S_RKB1D.
    After you implement the corrections, you must delete the incorrect information in the shared buffer. To do this, enter '/$SYNC' in the command field in every application server. Alternatively, you can also call RSRT -> Environment -> Generate Queries. As a result, all queries are regenerated but all OLAP caches are rejected.
    BW 3.0B
               Import Support Package 31 for 3.0B (BW 3. 0B Patch 31 or SAPKW30B31) into your BW system. The Support Package is available when Note 0872272 "SAPBWNews BW 3.0B Support Package 31", which describes this Support Package in more detail, is released for customers.
    BW 3.10 Content
               Import Support Package 25 for 3.10 (BW 3. 10 Patch 25 or SAPKW31025) into your BW system. The Support Package is available when Note 0872274 "SAPBWNews BW 3.1 Content Support Package 25", which describes this Support Package in more detail, is released for customers.
    BW 3.50
               Import Support Package 17 for 3.5 (BW 3. 50 Patch 17 or SAPKW35017) into your BW system. The Support Package is available when Note 0872277 "SAPBWNews BW Support Package 17 NetWeaver'04 Stack 17", which describes this Support Package in more detail, is released for customers.
    SAP NetWeaver 2004s BI
               Import Support Package 08 for SAP NetWeaver 2004s BI (BI Patch 08 or SAPKW70008) into your BI system. The Support Package is available when Note 0872280 "SAPBINews BI 7.0 Support Package 08", which describes this Support Package in more detail, has been released for customers.
               In urgent cases, you can use the correction instructions.
    To provide information in advance, the notes mentioned above may be released before the Support Package is available. In this case, however, the short text of the notes still contains the words "preliminary version".
    Thanks

  • Select Last  X days when execute query

    Hello,
    ı need  last N stop date of machines in my query, ı have stop date and when ı execute the query ı want to see just last 3 stop. have can ı make it?
    the filters of my query  are: Fiscal Year and Fiscal Period.
    ı cant give any condition because stop date is not key figure,has anyone any ideas??

    you can create condition on the stop date irrespective of key figure or not.
    Create the formual which has condition
    ( A  = B) * C + D
    The above statment means:
    If A = B
    then Display C
    or Display D.

  • How to save html response when execute a siebel load test.

    First at all excusme for my english.
    I need help to manage html response. I use OpenScript Version: 9.3.1.0 Production.
    When i execute a siebel load test, some of the VU returns the error "12152 the server response could not be parsed". Mi boss asked me an image or html response to analize the error. But i dont now how to get it.
    I search in all logs but i didn´t find nothing usefull.
    Anyone know how to save the html response when execute a load test?
    Thanks.
    Gabriel.

    "First at all excusme for my english."
    => are you french? I am! So no problem of course ;-)
    Which ATS version do you use? Because starting with 12.1, you have a better VU Logging capabilities.
    From the OLT user guide:
    The virtual user logs window has the following toolbar options:
    Open - Opens an existing virtual user log.
    Save as CSV - Exports the current VU log to a comma-separated value file.
    Clear - Clears the virtual user logs.
    View Text - Displays the source HTML for pages accessed by the virtual user.
    Render HTML - Displays actual pages as accessed by the virtual user.
    Auto Display - Displays pages as they are received by the viewer.
    See if it can help.
    If not, maybe you could implement some logics in OpenScript, but i wouldn' advice that.
    JB

Maybe you are looking for

  • SQL Developer 1.5 - how to get stuff to develop extensions

    Sorry all, I'm sure this has been covered before but I can't find it: I'd like to write an extension or two for SQL Developer 1.5, but I can't get things off the ground using JDeveloper 11g preview 3. The stumbliung block seems to be getting the ESDK

  • Can characters be transposed converting InD to PDF?

    We got a 'final' version of a document which contained new errors. It was a PDF. In it, a name (let's call it Fred) appeared as Ferd. The designers have told our contact that this sometimes happens when converting InDesign to a PDF proof, and that th

  • Regarding SELECT FOR ALL ENTRIES AND DELETE ADJACENT DUPLICATES

    Hi, i got few doubts.....     1) Is it necessary to DELETE ADJACENT DUPLICATES when we perform a SELECT FOR ALL ENTRIES ? because for all entries itself eliminates the duplicate entries?    2) Wat Sy-subrc returns after a SELECT FOR ALL ENTRIES state

  • Inserting video

    Hi, We have a client that wants to insert a small demo movie that's in .mov format into their site. We've never dealt with video before. Is <embed> the best way to go to insert a QuickTime movie? Thanks. Fred

  • Downloading a Bianry File

    If suppose user has sent a Http request to get a binary file from the server, is it possible to send the required file throgh Http response in some way?