Problem in execute query?

hello all,
table structure:
create table cor_dept_mst (dept_locn_code varchar2(6) not null,
dept_code varchar2(2) not null, dept_name varchar2(200), constraint cordeptmst_pk primary key(dept_locn_code,dept_code));
in form all 3 feilds dispaly.
when i save new record.. save successfully.
but when i execute query records not display (do not pass any value)
records are display after execute if and only if i pass value to dept_code. in this case i pass 01 for dept_code and all records displaying...
this very silly error.. i use block where clause.
please help
thanks
yash

oopss.....
there was a silly code which halt the execute query...

Similar Messages

  • Problem in executing query in browser and bex analyzer

    i am not able to execute query in browser nor bex analyzer...
    problem is that i dont have option to run in bex analyzer in query designer (menu bar seems missing in query designer and how can i get enabled
    and when execute the query in browser using bex query designer ..it prompts me with following error
    URL http://saperpdev.saperpdev.com:8002/sap/bw/BEx call was terminated because the corresponding service is not available
    Note
    ■The termination occurred in system ERD with error code 403 and for the reason Forbidden.
    ■The selected virtual host was 0
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:SAPERPDEV_ERD_02-v:0-s:403-r:Forbidden
    and i tried to open the query from bex analyzer  level
    it prompts me as follows
    macros are disabled because the security level is set to high and digitally signedtrusted certificate is not attached to the macros,to run the macros change the security level to lower settings
    pls suggest me

    hi suman,
    thanks for your response.. but let me be more clear
    i am using sap gui 7.20 front end and when i execute rrmx i am able to navigate to BEx analyzer but when i tried to open a report which i create i get following error message..
    you do not have sufficient authorization for infoprovider zic_proj
    function module  /SDF/AL_MAP_TRANSID_LOGH doesnt exit
    second thing is that i tried from bex query designer to execute the report ..but i am not able to execute the report...
    i hope some connections seems missing..please let me know what to do ASAP..
    and where can i post this question to get fast reply

  • Problem in Execute query on non-database block and database block together

    Hi All,
    In my form,i have
    1. First block is Non-database block with one non-database item.
    2. Second and third blocks are database blocks.
    Now the problem is that i want to perform execute-query for all the blocks.
    If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
    If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
    But i don't want to do in this way.
    My cursor will be on the First block only and then it should perform execute-query.
    I am using this non-database item to copy value of this item to the item of the database block item.
    I think i make you understand about my problem.
    I am using forms 10g on Window xp.
    Please help me.

    Hi!
    Simply create a enter-query trigger on the non-database-block:
    begin
    go_block ( 'database_block' );
    enter_query;
    end;If your search criteria is in the non-database-item in the first block,
    you actually do not need the enter_query build-in.
    Just create a execute-query trigger on the first block like:
    begin
    go_block ( 'database_block' );
    execute_query;
    go_item ( :System.trigger_item );
    end;And in a pre-query trigger on the database-block copy the
    value of your seach item into the item you want to search for.
    Regards

  • Problem in executing query in RSCRM_BAPI  & output in application server!

    hi Experts,
    We executed a query using RSCRM_BAPI transaction and write it to the application server.We found the following problem.
    In the query we have restricted the keyfigures such that each have 2 decimal places but when we execute the query using RSCRM_BAPI and writing into the application server the more than 2 decimal places are coming in to the file.
    For example:
    In the query the value is 12.12 but in the application server its written as 12.1200000
    So the width gets elongated and some of the keyfigures are truncated.
    We have already have gone through the restrictions in the SAP Note Number 605208
    Please help us to find a solution to get output of keyfigures same as whatever coming in the output of query.
    Thanks in advance
    Somenath

    sorry, i mistakenly sent it in different id....this is my id.......if it is useful assign points to this id...
    Using RSCRM_BAPI, RSCRM_REPORT, suitable for simple query.
    In your query you are using Restricted, calculated keyfigure.in that case RSCRM_BAPI, RSCRM_REPORT has some restriction.
    Check OSS 605208 which describes RSCRM_BAPI restrictions .
    Re: Master Data Datasources
    You can Modify the Wrtiequery abap program for your requirement.
    or
    Create a ABAP program for extracting a bw query and upload it in Application server in csv format.
    Thanks,
    senthil kumar

  • BI 7.0 Problem while executing query on Infoset containing Infocubes

    Hi All,
    While executing quey on infoset containing infocubes we are getting following error message.
    EError while reading data; navigation is possible
    EError reading the data of InfoProvider A2PPI103
    EError when generating the SQL statement
    E[IBM][CLI Driver][DB2] DSNT408I SQLCODE = -204, ER ROR:  SAPR3.T00001 IS
    I>> Row: 11 Inc: RAISE_READ_ERROR Prog: CL_RSDRV_VPROV_BASE
    any idea what could be the reason ?

    Hi All,
    it's very interesting the question of HariPrasad because from yesterday i have the same problem in  a similar environment:
    @5C\QError@     Error reading the data of InfoProvider ZC1ITS02
    @5C\QError@     Error when generating the SQL statement
    @5C\QError@     [IBM][CLI Driver][DB2] DSNT408I SQLCODE = -204, ERROR:  SAPBWD.T00002 IS AN UNDEFINED NAME  DSNT41 8I SQLSTATE   = 42704 SQLSTA
    May the SQL generator does'nt work well whit cube and DB2 ??
    If i execute the Infoset with the debbugging option i can see the SQL code:
    ...........FROM "/BIC/PZC1CPROD0" "T00001",
    "T00002"
    WHERE................
    the first table is an infoobject, the second one is the "missing" cube...............
    Hari, did you solve the problem in the meantime ??
    Thank's to all, Ray.

  • Problem in executing query

    Hi
    I am executing a query where the query gets data from a source system through infosets. So query fetch the data by Infosets using synonym concept.We have structure in BW system and synonym is created in the source system pointing to the BW structure. data is not existed physically in BW system. There will be structure in BW but we wonu2019t store any data in BW system. We create link between source system and BW system through database.
    When i execute the query with certian parameters i am not able to pull the data for a particular posting date. But the data for that particular posting date is available in source system. If i execute without poating date or period i am able to see the data for all the posting date except the posting date which earlier i was looking for.
    Can anyone help me out with this, any possible reasons for the issue,
    Thanks in advance
    RRN-KAR

    So , are you searching for a solution still or not ? It is confusing to see 'Pls Ignore' and 'Not answered'.

  • ABAP For HANA as secondary DB problem in execute query decleration.

    Hello Experts,
    I am fetching data from HANA DB as secondary database using ADBC. When I am going to concatenate native SQL query its geting more than 255 char and here is the problem.
    Please suggest how can I deal with more than 255 char string query.
    GV_SQL is query which is string.
    e.g.  GO_RESULT = GO_SQL->EXECUTE_QUERY( GV_SQL ).
    Regards,
    Amol

    Hi Fernando,
         1.Actually I am not facing any problem with ADBC. Just ABAP predefined type STRING is not accepting more than 255 character length.
         2.At the time of concatenating fields, HANA view path and where conditions it is getting more than 255 character, hence at the time execution of query getting failed.
         3.  GV_SQL type string.
    GV_SQL =  |SELECT MANDT....(more than 255 character length)| &&
                       |FROM _SYS_BIC."dev.re.e10.cal.fi.tr/CV_COSTELEMENT_TEST" |
                 && |('PLACEHOLDER' = ('$$IP_BUKRS$$', '{ P_WERKS }')) |.
    GV_SQL storing only 255 character, I wanted a string to store more than 1000 character length.
    Regards,
    Amol

  • Problem while executing query in BEX

    Hello Experts .
    Whenever I execute the standard query based on info cube 0PA_C01 in bex it gives following message for first time , but if excute the same query second time it wont gives the msg . Pls it is very urgent .
    msg :
    Characteristic 0CALMONTH was changed in InfoCube 0PA_C01. Adjust the query
    Characteristic 0EMPLOYEE was changed in InfoCube 0PA_C01. Adjust the query

    Hello Raghavendra,
    welcome aboard!!
    You need to make the change globally and save it by going in the change mode.
    when u next time execute the same after relogin u wont face this issue.
    Hope it helps...
    thanks,
    (pls. dont forget to assign points for helpful answers)

  • Problem with execute query

    Hi all,
    I am modifying a form,
    when i ran this form, in enter query(F7), i enter the value and do F8 but it returns no value
    but value exist in table in database,
    i do not know if i modifyed something related to (F7) and (F8)
    Do you have any idea?
    Thanks!
    Edited by: Tabit7 on 2012-02-27 15:31

    Tabit7 wrote:
    Hi all,
    I am modifying a form,
    when i ran this form, in enter query(F7), i enter the value and do F8 but it returns no value
    but value exist in table in database,
    i do not know if i modifyed something related to (F7) and (F8)
    Do you have any idea?
    Thanks!
    Edited by: Tabit7 on 2012-02-27 15:31In normal stage, i mean, when you press F8 in fresh form does it execute data ?

  • Problem In Executing Query In JSP-Oracle

    I have one Query with some conditions in it. It showing error in JSP page when Run it like FROM keyword not found where expected, but this query running well in Oracle SQL Developer. The query is given below.
    SELECT SCC.STACK_ID, S.SEVERITY_LOWER AS SEVERITY, S.LOWERSPECLIMITRISK AS RISK, SCC.SENS, S.NMBR || ' - ' || S.DESCRIPTION AS STACK, 'LSL = ' || S.DESIGNLOWERSPECLIMIT AS "SPEC LIMIT", SCC.ROW_IN_STACK AS "STACK ROW" FROM STACKS S, STACK_CONT_C SCC WHERE S.STACK_ID = SCC.STACK_ID AND (SCC.CONT_ID = :c_id) AND (SCC.SENS < 0) AND (S.DESIGNLOWERSPECLIMIT IS NOT NULL) UNION SELECT SCC.STACK_ID, S.SEVERITY_UPPER AS SEVERITY, S.UPPERSPECLIMITRISK AS RISK, SCC.SENS, S.NMBR || ' - ' || S.DESCRIPTION AS STACK, 'USL = ' || S.DESIGNUPPERSPECLIMIT AS "SPEC LIMIT", SCC.ROW_IN_STACK AS "STACK ROW" FROM STACKS S, STACK_CONT_C SCC WHERE S.STACK_ID = SCC.STACK_ID AND (SCC.CONT_ID = :c_id) AND (SCC.SENS >= 0) AND (S.DESIGNUPPERSPECLIMIT IS NOT NULL) ORDER BY SEVERITY DESC

    Your sql string contains double quotes in it. Are you escaping them properly in Java?
    Please show your code for invoking this sql statement?
    What jdbc driver are you using? oracle thin? oci8? ODBC?

  • CANT execute query with parameter on user defined tables using query genera

    Dear All,
    I have problem when executing query with parameter on user defined tables using query generator.
    It seems SBO cannot accept parameter to query user defined tables.
    I've tried these:
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
    I try to pass the value directly without using parameter and It works
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
    This one works
    SELECT * FROM RDOC T0 WHERE T0.width =[%0]  --- this SUCCESS
    and this one works too
    SELECT * FROM RDOC T0 WHERE T0.width = 595  --- this SUCCESS
    Is there anyone can help me ....???
    Thanks,
    Alfa

    I  generated this code using query wizard ....
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = (N'2' )
    and replaced the (N'2' ) with [%0]
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = [%0]
    and It worked ......
    Thanks 4 all .....

  • Problem use SQL query in coding report with SBO

    Hi everyone!
    I have problem in execute query to delete and create a report with SQL 2000 in SAP.
    Try
            oForm.DataSources.DataTables.Item(0).ExecuteQuery("DELETE FROM rptReport")
    Catch ex As Exception
    End Try
             oForm.DataSources.DataTables.Add("TestReport")
             oForm.DataSources.DataTables.Item(0).ExecuteQuery("SELECT     Number, RefDate, Memo        into  rptReport   FROM         dbo.OJDT")
             oTable = oForm.DataSources.DataTables.Item("TestReport")
    This code is error. I don't know how to execute 2 this sql command. Hope everyone help me hix hix!  .

    /Invalid query tree  [300-33]. The SQL error is 8180/
    But search in SQL book hasn't got that err. Some person spoke ExecuteQuery property wasn't support Table Delete and Create, it only support simple Select... I tried to use Recordset but don't success. Can I use "Delete" and "Select ... Into..."   query another style??? Help me, please...!!!

  • Executing query error: System error in program SAPLRRI2 and form REP_A

    Hello Experts,
    I am facing problem while executing query.
    I have activated a query from BI content. The query is activated successfully in development and running successfully in development, so I transported the same into QA.
    When I execute this query into quality, automatically debuger opens. After I come out of debuger I get following error message:
    " >> Row: 82 Inc: LRRMSU13 Prog: SAPLRRMS
    System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01- (see long text)
    Error when generating dataProvider "
    This query is using some standard structures, which are running successfully in other queries in QA.
    what would be an issue?
    Regards,
    Nirav Shah

    Hi,
      Try to regenerate the query in RSRT t.code.
       ie) RSRT - give the query name - Generate report ( icon will be there near to Execute + debug) .
    After generating the report, (logoff and login )try to execute the query again ..if the above solution doesn't work, check the below OSS notes which may help for you.
    OSS notes : 1. 1121766
                       2. 1117966
                       3. 1225856
    Regards,
    Siva.

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Execute Query Problem (Urgent)

    Hi,
    I have created customized horizontal toolbar. There I placed the buttons
    1. Enter Query
    2. Execute Query
    3. Cancel Query
    When I press the Enter Query Button "Go_Block(My_Block) ; Enter_Query ;", it works fine and goes into enter query mode, but when i click Execute Query button "Go_Block(My_Block) ; Execute_Query ;" it does not work and show me the message Press Ctrl+F11 to execute or F4 to Cancel query.
    any solution plz.
    Faisal.

    I am assuming you are using FORMS6i Client/Server (big assumption these days I know but here goes...!!)
    From your reply I think you misunderstood my suggestion!
    When you moved the button into your query block, you discovered the problem! As the button (and current focus) is in the query block, the query can now execute successfully.
    When the button is in the button block with MOUSE_NAVIGATE property set to TRUE, pressing the button will move CURRENT FOCUS back to this block and therefore the query cannot execute.
    You have to set MOUSE_NAVIGATE property on the button to FALSE.
    If you are still struggling, email me to save time!!
    [email protected]

Maybe you are looking for

  • MMREF Magnetic Media Files Download/Saved from Tax Reporter

    Often times when we go to download the MMREF Federal File and various state files that are generated in PU19, they are not in the correct format.  Please explain how these should be downloaded.  Is the process to take the temse file and just download

  • Calling an Applet from a JSP

              Hi,           I need help with this, I want to invoke an applet from a JSP page. The applet code           is compiled and resides in a separate jar file. The question is, how do I deploy           this applet in weblogic 6.1 and then have

  • Quicktime 7.2 (and up) slow playout from network drive

    Does anybody has a problem with all versions of Quicktime 7.2 (and up) where Quicktime Player doesn't play or open files very slowly from network drives? 7.1.6 works fine. This happens on all my machines.

  • Create a transaction

    Hi all, How do I create a transaction for a report created using the report painter. I believe that you can't do it using se93. Any help will be appreciate it. Fidel

  • I signed up for pdf to word conversion in December and paid a yearly subscription. Not working?

    Today when I go to convert a pdf (haven't done one in a long while) it keeps sending me to the subscription page.  I can't figure this out.    What am I missing here.  I should have several months left.  Where is the account info?