Execute_query error

Hi master
Sir
I use enter_query through button and give 10 in deptno textbox
But I execute_query through button no give result
An use form menu then give result easily what happen
Enter_query code
Go_block(‘emp’);
Enter_query;
execute_query code
Go_block(‘emp’);
execute_query;
and
execute_query code
execute_query;
and how use option button
please give me idea
thanking you

Hi Karen,
We have just run into this issue...trying to find out more, but the Crystal Report developer stated...
"When I alias a table in crystal and use a field from that alias I get the following error:"
Database connector error: /CRYSTAL/OSQL_EXECUTE_QUERY returned: subrc: 4. message "CONTENT-0-0" has already been declared.
Was this the same  OSQL_EXECUTE_QUERY error you received? and by chance did you get it resolved.
Also having the resource go through the checks on the transports per Ingo.
Thanks.
Kevin

Similar Messages

  • See error Frm-40105 : unable to resolve reference to item 20.

    hi master
    sir when i put this code on when_button_press then give this error
    go_block('emp');
    enter_query;
    :emp.deptno := 10;
    execute_query;
    error
    Frm-40105 : unable to resolve reference to item 20.
    sir please give me idea
    Thanking you

    Frm-40105
    Cause:  Runtime error. A GO_ITEM statement references a nonexistent item.
    Which suggests that there might be some code in your form which causes this error (in)directly.

  • Execute query when post text item

    Anybody can help ?
    I create 2 block, first a data block and another is a control block with field customer_search field,
    after inputing customer id in search field on control block,
    I want to execute query.
    my code :
    set_block_property('customer',default_where,'custid=:control.customer_search');
    execute_query;
    error : frm-407 : illegal restricted procedure execute_query in post-text-item trigger.
    How to solve this problem ?
    notes: If I create one push button and put execute_query in there, every thing is fine.
    but the my user does not like that.
    Thank.

    hi,
    first of all change ur statement as
    set_block_property('customer',default_where,'custid='||:control.customer_search);
    means u must use pipe sign while using bind variable
    secondly
    u should use key next item trigger
    go_block(user desired item or block);
    --and then use this satemant
    clear_block(no_validate);
    execute_query(no_validate);
    i hope it wil slove ur peoblem if it will NOT then please acknowledge otherwise we will go for a other solution
    thanks
    imran
    manager IT
    www.masoodtextile.com

  • Execute Query not working on custom forms

    Hi
    After upgrading from 11.5.10.2 and Oracle 9.2.0.5 to ATG6, AD6, oracle 10.2.0.4, Forms 6.0 (Form Compiler) Version 6.0.8.28.0 . The execute query (F11 & CTRL F11) is not working on custom forms. But after tabbing from one column to another column then press CTRL F11 is working.
    Please any one help me on this issue.
    Thanks
    sva

    Hi
    I found this error in the trace file. Please help me what is the problem, the data is there in the table.
    Out Argument 0 - Type: String Value: ORA-01403: no data found
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: parameter.G_query_find
    Out Argument 0 - Type: String Value: NULL
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND MESSAGE_CLEAR
    MCXQPBULKINVOICEENTER, -1, Built-In, Entry, -1196178744, USER_EXIT
    TSE FSERVER_START -1 1407 1279530838565801000
    TSE FSERVER_END -1 0 1279530838579778000MCXQPBULKINVOICEENTER, -1, Built-In, Exit, -1196091744, USER_EXIT
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_debug.clear
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_GROUP Built-in:
    In Argument 0 - Type: String Value: APP_DEBUG
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_debug.free.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing MESSAGE Built-in:
    In Argument 0 - Type: String Value: FRM-41003: This function cannot be performed here.
    In Argument 1 - Type: Number Value: 121
    Unhandled Exception ORA-100501
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Exit, -1190876744, ON-ERROR
    ##### CTIME STARTS HERE
    # 8 - MCXQPBULKINVOICEENTER:BLOCKNAME.RADIO_BUTTON81.1279530839956685000
    KEY Execute_query
    Error Message: FRM-41003: This function cannot be performed here.
    N-ERROR Trigger Fired:
    Form: MCXQPBULKINVOICEENTER
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Entry, 181183256, ON-ERROR
    MCXQPBULKINVOICEENTER, -1, Prog Unit, Entry, 181304256, /MCXQPBULKINVOICEENTER-3/P58_07_DEC_200909_04_40
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_standard.event. Event is ON-ERROR.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing ERROR_TYPE Built-in:
    Out Argument 0 - Type: String Value: FRM
    Executing ERROR_CODE Built-in:
    Out Argument 0 - Type: Number Value: 41003
    Executing ERROR_TEXT Built-in:
    Out Argument 0 - Type: String Value: This function cannot be performed here
    Thanks
    sva

  • FRM-92100 error when performing execute_query

    Hi,
    I know that the connection loss symptom is common, but after reading several posts here in this forum, i didn't find any valuable explain to my problem.
    I'm using Forms 6i under Oracle 8i database. My application is used on web environment. I encounter the FRM-92100 in a form that tries to refresh a block after a save.
    For that, in the post_forms_commit trigger, i create a timer and when the timer is expired, I only perform a go_block('IQM') and then execute_query. The first time i do that in the same session, all works great, but when I navigate in the 'IQM' records, modify data, and save, here the FRM-92100 raises.
    After investigations, the screen fails when trying to do the execute_query. I don't understand why this can be done the first time save but not the second even if the query can be performed in one or 2 seconds ("IQM" is not a huge block).
    Is there anyone that already encounters this symptom?. Please help, i'm disappointed

    It is just to notice that what i suspected was wrong: Since i modified the 8th record and i have only 5 records displayed in the screens, i thought that the property of the block "IQM" "Number of records buffered" is the responsible of such a bug. I increased this number to 12 to allow the 8th record to be in memory, but no way, FRM-92100 still be raised.
    Also, I've tested to remove the GO_BLOCK('IQM') and perform clear_block before performing execute_query. This is to allow the block to position at the begining (since first_record also involves such a bug), and it seems working (no FRM-92100). I will continue working on that to understand why what i am doing fixes the problem. Can anyone have an idea?

  • Error while updating or deleting a record

    Hi to all...
    i have created atable group_master with 2 fields Group_id and Group_name
    the user will specify a group_name in a text box and press save. Before commiting a seq number will be generated
    inside the form procedure and it will be inserted.
    The insert is working fine.
    But when i select a record i.e a group_name and change it contents and commit it, it is not commiting.
    when i checked the display error it showed Ora-01400 cannot insert null values into the table.
    Iam not inserting a value here iam updating the group name only.
    even when i delete a record it shows same error....
    can any one help to solve this....
    thanx in advance........

    I have when button pressed trigger whick helps to show the lov which contains the group_id and group_name;
    a := show_lov('lov27');
    if a then
    go_block('group_master');
    execute_query;
    end if;
    it is correctly fetching the delected data. but propmpts a message box asking Do u want to save the record?
    if i ignore it n modify the group_name and save it,still it shows unable to insert null value.
    i jus want a simple way to solve this....
    i want to fetch that particular record and modify or delete it.
    group_id n group_name cannot be null.
    i will be using Buttons for add,delete,update and save record. i will be using lov to fetch records for modification or deletion.
    how to avoid the message box which prompts when i call lov with execute_query.....
    * I tried Key-listval...but i didnt get any solution. i will try again....
    thanx for ur replies....

  • Getting error 40405 , NO CHANGES TO APPLY

    SOMEHOW THE ERROR IS DISPLAYED IN MY TIGGER WHEN I DO
    EXECUTE_QUERY COMMAND. SEE MY TRIGGER BELLOW.
    CLEAR_BLOCK(DO_COMMIT);
    GO_BLOCK('CW_ENTRIES');
    EXECUTE_QUERY;
    GO_BLOCK('CW_CHANGES');
    EXECUTE_QUERY;
    GO_BLOCK('TIME_DETAIL');
    This message appeared after I have made some changes but I do
    not know when. I have version that works, but it is only fmx
    file.
    Thanks, for any info.

    I think in this case, you issued a commit without actually changing any data, so the commit was not necessary. Many Times I had to do this and did not want to see this error.
    What you can do to overcome this is to create a forms 'on error' trigger. Then trap the error like follows -
    DECLARE
    errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN
    IF errnum = 40301 THEN
    Message('Your search criteria identified no matches... Try Again.');
    ELSIF errnum = 40350 THEN /* no records found */
    null;
    ELSIF errnum = 41026 THEN /* FIELD OUTPUITING*/
    Message('This field is calculated');
    ELSif errnum=40401 then /* double commit somewhere */
    null;
    ELSif errnum=40505 then /* double commit somewhere */
    null;
    ELSif errnum=41050 then /* Record has been saved already */
    null;
    ELSIF errnum=41008 then /* Undefined Keys */
    null;
    ELSIF errnum=40100 then /* beyond first record */
    null;
    ELSIF errnum=40200 then /* field protected against update */
    null;
    ELSIF errnum=40352 then /* beyond last record */
    endif;

  • How to remove the actions of ON-ERROR trigger.

    Hi to All,
    I have this problem. In my form this is the code in ON-ERROR trigger:
    DECLARE
    Cur$Item           VARCHAR2(100) ;
    Cur$NumMsg     NUMBER := MESSAGE_CODE ;
    Cur$TxtMsg       VARCHAR2(80) := MESSAGE_TEXT;
    BEGIN
       IF Cur$NumMsg = 40202 THEN
           Cur$Item := GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, PROMPT_TEXT) ;
           Disp_Alert(5, Cur$Item) ;
       END IF ;
    END ;In my Toolbar I have a Button for delete_record and in the WHEN-BUTTON-PRESSED trigger this is the code
    DECLARE
    btn$Ret Number ;
    BEGIN
       Go_Block('MYBLOCK') ;
       IF Get_Record_Property(:system.cursor_record,'MYBLOCK',STATUS) IN('NEW','INSERT','CHANGED') THEN
           SET_RECORD_PROPERTY(:SYSTEM.CURSOR_RECORD,'MYBLOCK',STATUS,QUERY_STATUS) ;
          CLEAR_FORM(NO_VALIDATE) ;
          Go_Block('MYBLOCK')) ;
          EXECUTE_QUERY ;
      ELSE
         DISP_ALERT(btn$Ret,101,'MYITEM');
         IF btn$Ret = ALERT_BUTTON1 THEN
             DO_KEY('DELETE_RECORD') ;
             commit;
         END IF ;
      END IF ;
    END ;The Button DELETERECORD work correctly, but (before exit) the trigger ON-ERROR is executed if the item where the cursor is located is empty.
    Exit a method in order to disable the effect of this trigger when the button DELETERECORD is pressed ? If yes, how ?
    I hope that someone can help me .
    Thank You
    Gaetano

    Set a parameter or global variable in the beginning of your delete procedure. Check the value in the on-error trigger. If it is set then don't do anything in the on-error trigger. Unset the parameter or global variable just before you exit your delete procedure.
    NumbNutz

  • Error in a search screen

    i have designed a search query screen with four fileds-empno,ename,hiredate1,hiredate2 . .if i enter some empno in empno field it has to retrieve all the emps belong to that number . .the same applies to remaining also . . in order to do this requirement i have tried a key next item on ename field . . just to see whether it works or not . . .
    declare
    cri varchar2(20);
    begin
    cri:='ename='||:block3.ename;
    set_block_property('emp',default_where,cri);
    go_block('emp');
    execute_query;
    end;
    there are no errors but when i enter the ename in field and run it is displaying as   FRM-40505: ORACLE error: unable to perform query.Can anyone rectify this.

    Since ename is varchar2 field :block3.ename must be enclosed in quotes in the 'cri:=' statement
    Something like that cri:='ename='||''''||:block3.ename||''''; and will be ok

  • Invalid column Index error - While consuming Calculation view via Native SQL

    Hi Experts,
    I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
    Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
    Thanks in Advance,
    Suma
    REPORT ZTEST_HANA2.
    *Report to consume Calculation view (script based) from ABAP
    PARAMETERS: ip_docnr type BELNR_D,
                ip_gjahr type GJAHR,
                ip_bukrs type BUKRS,
                ip_blgr type FAGL_RLDNR.
       DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
              LO_CONN     TYPE REF TO CL_SQL_CONNECTION,
              LO_RESULT   TYPE REF TO CL_SQL_RESULT_SET,
              LV_SQL      TYPE STRING,
              LR_DATA     TYPE REF TO DATA.
        DATA: LX_SQL_EXC           TYPE REF TO CX_SQL_EXCEPTION,
              LT_SEPMAPPS_CLSDINV  TYPE TABLE OF SEPMAPPS_CLSDINV,
              LV_TEXT              TYPE STRING.
        TRY.
    lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
                     |WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
                      |'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
                      |,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
                      |,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
             LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
             "Create an SQL statement to be executed via the connection
              LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
             "Execute the native SQL query
             LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
             "Read the result into the internal table lt_sepmapps_clsdinv
             GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
             LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
             LO_RESULT->NEXT_PACKAGE( ).
             LO_RESULT->CLOSE( ).
             LO_CONN->CLOSE( ).
        CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
             LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
             MESSAGE LV_TEXT TYPE 'E'.
        ENDTRY.

    Hi Suma,
    Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
    Check there if the parameters case is working properly... Is it really this confusing options:
    p_GJAHR
    S_BUKRS
    p_base_ledger
    Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
    Regards, Fernando Da Rós

  • Gettig "Record has been modified" error while opening a window

    Hi,
    I have a window 'A' and window 'B'. On click of a button from 'A' window 'B' is opened. There are 3 fields in the window 'B' and these 3 fields are the part of the query which gets executed in window 'A'.
    Now on click of the button I am executing a proc which is setting window 'B' field values again.After this when you open the window 'B' it gives the error saying "Record has been modified". I tried giving commit_form after setting the fields but still it throws the error.
    Please advice on this.
    Thank you

    Deepak Jambhekar wrote:
    Hi,
    I have a window 'A' and window 'B'. On click of a button from 'A' window 'B' is opened. There are 3 fields in the window 'B' and these 3 fields are the part of the query which gets executed in window 'A'.
    Now on click of the button I am executing a proc which is setting window 'B' field values again.After this when you open the window 'B' it gives the error saying "Record has been modified". I tried giving commit_form after setting the fields but still it throws the error.
    Please advice on this.Just add
    EXECUTE_QUERY;after the commit_form;
    Hope this works..
    Hamid

  • Frm-41380 error - cannot set the blocks query data source

    Fairly new forms so bare with me. I am creating a form based on one table. This table has one column that is a nested table.
    table name: szrtime
    table columns: szrtime_code, szrtime_styp_list
    szrtime_styp_list is a table of varchar2(1).
    main block is szvtime_block
    the block that contains the nested table is szvtime_styp_block
    I read that I could use a WHEN_NEW_RECORD_INSTANCE trigger on the main block to display the related nested table. I have tried the folllowing:
    Declare
    select_stmt Varchar2(512) ;
    Begin
    If :szvtime_block.szvtime_code Is not null Then
         select_stmt := '(SELECT column_value FROM TABLE ( SELECT szrtime_styp_list FROM szrtime WHERE szrtime_code = ''' || :SZVTIME_BLOCK.SZVTIME_CODE || '''))';
         Go_Block('SZVTIME_STYP_BLOCK' );
         Clear_Block ;
         message('select_stmt = '||select_stmt);
    Set_Block_Property( 'SZVTIME_STYP_BLOCK', QUERY_DATA_SOURCE_NAME, select_stmt ) ;
    Execute_Query ;
    Go_Block('SZVTIME_BLOCK') ;
    Else
    Go_Block('SZVTIME_STYP_BLOCK' );
    Clear_Block ;
    Go_Block('SZVTIME_BLOCK') ;
    End if ;
    End ;
    The result is the frm-41380 error.
    I have tried change the query data source type on the nested table block to Table or From-clause but did not help. The select statement that is valid and returns the correct result in Toad.
    Any suggestions on what to look for? Thank you.
    Todd

    > But what is giving me pause is that the user will be updating, deleting, and inserting
    into this table and, of course, the nested table column.
    It would give me pause, too. I've never used nested tables, so I poked around in Forms on-line help. In Forms 6i, it specifically states that Forms does not support the Nested Table structure.
    In Forms 10g help, it describes Nested Table structures, but says NOTHING about how a form would handle it. And that implies to me that it is still not supported. So good luck.
    In addition to creating the view, you may need to provide your own nested table updating procedures via a package on the server which your form can call. I know Forms supports passing pl/sql tables ("indexed by binary_integer"), so you could pass your nested table back and forth between the package and the form in that format.

  • Oracle forms 6i error FRM-42401

    i have created a master detail module and when trying to run it, it doesn't come with data when clicking on "execute query"
    Instead it displays error
    "FRM-42401 Performing program trigger ON_CLEAR_DETAILS on form"
    can someone pls help to get rid of this error

    Try out,
    after you compile all again your form:
    in WHEN-NEW-FORM-INSTANCE
    Go_block('your-MASTER-block');
    Execute_query;
    and see what happen(I think, your focus go on Detail-block and when you click F8(excute-query) error happen )
    Regards .. hope helps

  • Error in query ABAP using HANA as secundary data base

    Hi Experts,
    I have an error when I run a query from ABAP using HANA as alternative database. The query results empty, I do not know if something is missing or if additional error to the connection created by the BASIS consultant.
    The example I'm using is:
    ****Create the SQL Connection and pass in the DBCON ID to state which Database Connection will be used
       DATA lr_sql    TYPE REF TO cl_sql_statement.
       DATA lr_result TYPE REF TO cl_sql_result_set.
       DATA lr_adrc   TYPE REF TO data.
       DATA it_adrc   TYPE STANDARD TABLE OF adrc.
       DATA lv_oref   TYPE REF TO cx_root.
       DATA lv_text   TYPE string.
       CREATE OBJECT lr_sql
         EXPORTING
           con_ref = cl_sql_connection=>get_connection( 'HBT' ).
    ****Execute a query, passing in the query string and receiving a result set object
       TRY.
           lr_result = lr_sql->execute_query( 'select * from "PRD_300"."ADRC"' ).
           GET REFERENCE OF it_adrc INTO lr_adrc.
    ****Get the result data set back into our ABAP internal table
           lr_result->set_param_table( lr_adrc ).
           lr_result->next_package( ).
           lr_result->close( ).
         CATCH cx_sql_exception INTO lv_oref.
           lv_text = lv_oref->get_text( ).
           MESSAGE lv_text TYPE 'I'.
       ENDTRY.
    Regards.
    Richard.

    I resolved the problem myself.
    Regards,
    Richard.

  • FRM-40505 ORACLE error: unable to perform query

    I have a block based on a table but when I issue an execute_query in "WHEN_NEW_BLOCK_INSTANCE" I get the above error.
    I know can access this table because immediately after this I select some fields from the table into variables and display them. However when I try and assign them to the fields in the block I get "FRM:41051 You cannot create records here."
    Can you please help.

    If I set "Insert Allowed" and Update Allowed" to yes I can assign values I've selected form the table to the fields but the execute_query still fails.
    By the way, I have a where clause in the property block to limit the number of rows brought back to 1

Maybe you are looking for

  • Member formula IF statement syntax

    Hi guys Can someone assist me with the syntax of the IF statement on a member formula. On the measure "Total Cost", i would like to apply a formula which calls value loaded to a series of other measures (m1, m2, m3, etc) such that if the Number of ba

  • 1041N-A-K9 help in doing some basic setup

    Hi, I'm new with setting up CISCO AP, I'm used to GUI and that's what I'm using to set this AP. How my network set is : ISP Modem/Router (disable radio and set it where DHCP start at 192.168.15) ----> CISCO SG300-28P (Set static IP, upgrade fimware)

  • TS3202 This is frustrating and irritating..

    My iPhone will not sync with my iTunes on my MAC, it just keeps saying sync not started because there was a failure to sync. I've closed it and used different iphone cables that I have and nothing seems to be working and it is quite frustrating. Why

  • Backend ODATA channel missing

    Hi, I have installed all the required components for the SAP Netweaver Gateway 2.0 on Solution Manager systme in my landscape. Now as per the process  i need to go to:  In transaction SPRO open the SAP Reference IMG and navigate to: SAP NetWeaver ->

  • Model Form Creation

    Hi, I would like to create a model form that contains the basic element, such as company heading and standard button such as "About" as the standard layout of the system. All forms in the system are base on this standard form. What I do is create a c