Runtime Error in SQL command ..

Hi everybody
I have a report wich terminates with a dump message.
The error is in an SQL command, here the program aborts:
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL
    INTO TABLE I_KNKK
    FROM KNKK
   WHERE KUNNR IN R_KUNNR
     AND KKBER IN R_KKBER
     AND SBGRP IN S_SBGRP.
DATA: BEGIN OF I_KNKK OCCURS 0,
      KUNNR LIKE KNKK-KUNNR,
      KKBER LIKE KNKK-KKBER,
      KLIMK LIKE KNKK-KLIMK,
      SAUFT LIKE KNKK-SAUFT,
      SKFOR LIKE KNKK-SKFOR,
      SSOBL LIKE KNKK-SSOBL,
      SBGRP LIKE KNKK-SBGRP,
      END OF I_KNKK.
In first moment, i saw the table and SQL filter have the SBGRP field but the SQL fields selection has not this field. But, these same program works good with others selection parameters, in fact this SQL only terminates the program for the bigest company, wich causes the program make many BD access because all previous SQL.
The dump log says:
Runtime errors         DBIF_RSQL_INVALID_RSQL
Exception              CX_SY_OPEN_SQL_DB
Occurred on            23.05.2006 at   17:27:15
Error in the module RSQL accessing the database interface.
An exception occurred. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB',  neither caught nor passed along using a RAISING clause, in the procedure "(FORM)" . Since the caller of the procedure could not have expected this except to occur, the running program was terminated.
The reason for the exception is:
The SQL statement generated from the SAP Open SQL Statement violates restriction imposed by the database system used in R/3.
Possible errors:
o The maximum size of an SQL statement has been exceeded.
o The statement contains too many input variables.
o The space needed for the input data exceeds the   
    available memory.
o ...
How can i be sure the dump is for a lot of BD access for all the SQL commands ?
If these is the error, does somebody knows how can i eliminate this error ?
Please help ..
Regards
Frank

I think the field discrepancy is a red herring here. Not guilty! I agree that using the 'CORRESPONDING FIELDS OF' is safer though.
The error could be happening because your range variables have lots of entries in them which makes the generated sql huge.
To break it up you could use the 'package size' option of the select. This will work it's way through the input in chunks (or packages) of the size you specify.
You could change it to:
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL 
INTO TABLE I_KNKK package size 2000 "or a variable value      
FROM KNKK                                  
WHERE KUNNR IN R_KUNNR                     
AND KKBER IN R_KKBER                       
AND SBGRP IN S_SBGRP.                      
process current contents of i_knkk here                                           
endselect.     
or ,
SELECT KUNNR KKBER KLIMK SAUFT SKFOR SSOBL 
appending TABLE I_KNKK package size 2000       
FROM KNKK                                  
WHERE KUNNR IN R_KUNNR                     
AND KKBER IN R_KKBER                       
AND SBGRP IN S_SBGRP.                      
endselect.

Similar Messages

  • Diadem runtime error while executing command "SchemeMeasStar"

    Hello:
    I used DIAdem9.0 and DAQCard6062E to acquire 16 channel data. I collected 65536 data for every channel. Whereas After the data acquisition stopped, an Error Message would poped up, but the data is still stored in data portal. the Error is like follows:
    -Error- DIAdem
    Runtime Error While Executing Command "SchemeMeasStar"
    Error Type: UNKNOWN
    Error Address:00001720
    Module Name:GFSBase.Dll
    Would you like to give me some suggestions?
    thanks very much
    jing

    Dear MarcusP:
    Thank you very much.
    your solution really works. The attached is the detailed information of the problem. Would you like to tell me more about the prolem and how to solve the problem thoroughly.
    Thank you very much.
    yours
    Jing
    Attachments:
    DIAdem_Error.doc ‏305 KB

  • Error creating SQL Command - Database Expert

    I am creating a command however when I go to save the SQL I get two errors.
    "Failed to retrieve data from database" and "Failed to execute SQL Statement"
    I am working on an Oracle database. 
    Why would these errors be occuring?

    SELECT
    "CI_ACCT_PER"."ACCT_ID", "CI_ACCT_PER"."ACCT_REL_TYPE_CD", "CI_ACCT_PER"."PER_ID", "CI_ACCT_PER"."MAIN_CUST_SW", "CI_ACCT_PER"."FIN_RESP_SW", "CI_ACCT"."ACCT_ID",
    "CI_PER"."PER_OR_BUS_FLG", "CI_PER"."CITY", "CI_PER"."POSTAL", "CI_PER"."GEO_CODE", "CI_PER"."STATE", "CI_PER"."COUNTRY", "CI_PER_NAME"."PER_ID", "CI_PER_NAME"."ENTITY_NAME", "CI_PER_NAME"."NAME_TYPE_FLG", "CI_PER_NAME"."PRIM_NAME_SW",
    "CI_SA"."SA_ID", "CI_SA"."SA_TYPE_CD", "CI_SA"."SA_STATUS_FLG", "CI_SA_REL"."SA_REL_ID", "CI_SA_REL"."SA_ID", "CI_SA_REL"."SA_REL_STATUS_FLG", "CI_SA_REL"."SA_REL_USAGE_FLG", "CI_SA_REL"."SPR_CD", "CI_SA_REL"."SA_REL_TYPE_CD", "CI_SA"."CHAR_PREM_ID",
    "CI_SPR"."SA_ID", "CI_SPR"."PER_ID",
    "CI_PREM"."ADDRESS1", "CI_PREM"."PREM_ID",
    "CI_SA_RS_HIST"."EFFDT", "CI_SA_RS_HIST"."RS_CD"
    FROM ((((((("CISADM"."CI_SA" "CI_SA" LEFT OUTER JOIN "CISADM"."CI_ACCT" "CI_ACCT" ON "CI_SA"."ACCT_ID"="CI_ACCT"."ACCT_ID")
    LEFT OUTER JOIN "CISADM"."CI_SA_REL" "CI_SA_REL" ON "CI_SA"."SA_ID"="CI_SA_REL"."SA_ID")
    LEFT OUTER JOIN "CISADM"."CI_PREM" "CI_PREM" ON "CI_SA"."CHAR_PREM_ID"="CI_PREM"."PREM_ID")
    LEFT OUTER JOIN "CISADM"."CI_SA_RS_HIST" "CI_SA_RS_HIST" ON "CI_SA"."SA_ID"="CI_SA_RS_HIST"."SA_ID")
    LEFT OUTER JOIN "CISADM"."CI_ACCT_PER" "CI_ACCT_PER" ON "CI_ACCT"."ACCT_ID"="CI_ACCT_PER"."ACCT_ID")
    LEFT OUTER JOIN "CISADM"."CI_PER" "CI_PER" ON "CI_ACCT_PER"."PER_ID"="CI_PER"."PER_ID")
    LEFT OUTER JOIN "CISADM"."CI_PER_NAME" "CI_PER_NAME" ON "CI_PER"."PER_ID"="CI_PER_NAME"."PER_ID")
    LEFT OUTER JOIN "CISADM"."CI_SPR" "CI_SPR" ON "CI_SA_REL"."SPR_CD"="CI_SPR"."SPR_CD"
    WHERE "CI_PER_NAME"."PRIM_NAME_SW"='Y'
    AND "CI_ACCT_PER"."MAIN_CUST_SW"='Y'
    AND "CI_ACCT_PER"."FIN_RESP_SW"='Y'
    AND "CI_SA_REL"."SA_REL_STATUS_FLG"='A'
    and "CI_SA_RS_HIST"."EFFDT"<date(2009,1,1)
    ORDER BY "CI_SA_REL"."SPR_CD", "CI_SA"."SA_ID", "CI_ACCT_PER"."ACCT_ID", "CI_ACCT_PER"."PER_ID"

  • Runtime error on sql script

    Hi
    i have a filed start_time in table has NUMBER(38).the number is in seconds format. I am converting this into HH24:MI:SS filed.
    in sql, i have statement like this:
    to_char(to_date(start_time,'sssss'),'hh24:mi:ss')
    when i run script i am getting error ORA-01853: seconds in day must be between 0 and 86399           
    I think when start_time exceeds 24:00:00 time period. it is giving error. 1 days = 60*60*24=86400
    If it is bellow 23:59:59 it is working fine. How can i get to run this script evern if start time is more than 24 hours.
    pl help.
    thx, M.

    SQL> with t as (
      2             select 86400 + 1 start_time from dual union all
      3             select 86400 + 3600 + 55 * 60 from dual
      4            )
      5  select  start_time,
      6          trunc(start_time / 3600) ||
      7          to_char(trunc(sysdate)+numtodsinterval(start_time,'second'),':MI:SS')
      8    from  t
      9  /
    START_TIME TRUNC(START_TIME/3600)||TO_CHAR(TRUNC(SYSDATE)
         86401 24:00:01
         93300 25:55:00
    SQL> SY.

  • Runtime error in  SQL statement

    hello,
    I have a runtime during selection from database table due to large ranges in where condition. for example:
    select * from cosp into corresponding
      fields of table gt_cosp 
      where objnr in r_objnrs               
      and lednr = lv_lednr                
      and versn = p_vercost               
      and wrttp = lv_wrttp                
      and gjahr in r_gjahr                
      and kstar in r_kstar.
    The suggested solution is to use internal table instead of a range and use "for all entries" or to divide the ranges to smaller units.
    As you see I have few ranges and this solution could be not effective in this case.
    Do you have a better idea?
    Thanks in advance,
    Far

    Hi Fariba
    You can tried to limit the number of records are loaded in table range.
    So I don't know how you fill those range, but you do it in more steps than one.
    For example:
    LOOP AT ITAB.
    R_RANGE(3) = 'IEQ'.
    R_RANGE_LOW = ITAB-FIELD.
    APPEND R_RANGE.
    ENDLOOP.
    SELECT * FROM <TABLE> INTO TABLE MY_TABLE
                                WHERE FIELD IN R_RANGE.
    You could do:
    DESCRIBE TABLE ITAB LINES MAX_LINE.
    INDEX_FROM = 1.
    INDEX_TO    = 100.
    DO.
    LOOP AT ITAB FROM INDEX_FROM
                 TO   INDEX_TO.
    R_RANGE(3) = 'IEQ'.
    R_RANGE_LOW = ITAB-FIELD.
    APPEND R_RANGE.
    ENDLOOP.
    SELECT * FROM <TABLE> APPENDING INTO TABLE MY_TABLE
                                WHERE FIELD IN R_RANGE.
    INDEX_FROM = INDEX_TO + 1.
    IF INDEX_FROM > MAX_LINE.
      EXIT.
    ENDIF.
    INDEX_TO   = INDEX_TO + 100.
    ENDDO.
    In this way you select for all 100 hit.
    How to solve your problem depend on how you have to fill the range.
    Max

  • Error with sql commands with ms access

    hi!
    I'm having problems with sending commands like "create group x" and "alter database password" these aren't working.
    I'm using the jdbcodbc bridge. Simply doing this:
    Statement stmt = con.createStatement();
    stmt.executeUpdate ("alter database password a null");
    doesn't work.
    create group also don't work. Surely other stuff also don't work. But things like create table, drop table, create proc, do work.
    I can't do all the stuff that appears here.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/acadvsql.asp
    What may be happenning?
    can all that really work from java just like this or it don't?
    I'm using Access 2002 with access 2000 db format.
    Thanks.
    Greeting from chile.

    Well may be I am ignorant. I'm doing a real thing (for somebody) for the first time. They will buy few pcs. Also I think I would like they update to access 2000 or 2002 from 97 because of the semi stored procedures... They will do a lot of effort to just buy that but they really need it.
    I just actually wanted the ability to mantain users and assign permissions to do stuff from the same application. That would have been nice but it is not critical, at least execute procedures does work.

  • Create captive runtime error in adt command line

    Hi i go to
    cd C:\Program Files\Adobe\Adobe Flash CS6\AIR3.2\bin
    adt -package -keystore D:\Games\MAFIL\VSS\Production\Proto\tisApk.p12 -storetype pkcs12 -target bundle D:\fromexamplarr\9thmarch\MAFIL_GoldAppraisalGame D:\fromexamplarr\9thmarch\GoldAssessmentGame-app.xml D:\fromexamplarr\9thmarch\GoldAssessmentGame.swf D:\fromexamplarr\9thmarch\docs D:\fromexamplarr\9thmarch\assets
    file ...  .swf is not      relative to directory ..\bin
    also i need to add complete folder for resources and doc folder for all the icons.
    how do i do this.
    Please help.

    Try it like this:
    cd D:\fromexamplarr\9thmarch
    "C:\Program Files\Adobe\Adobe Flash CS6\AIR3.2\bin\adt" -package -keystore D:\Games\MAFIL\VSS\Production\Proto\tisApk.p12 -storetype pkcs12 -target bundle MAFIL_GoldAppraisalGame GoldAssessmentGame-app.xml GoldAssessmentGame.swf docs assets

  • Error in SQl Query - SQl Command not properly ended

    Hi All
    I have this SQL query that returns the following error when I run it in TOAD:
    SELECT
    VC.CAMPAIGN_NUMBER,VC.CAMPAIGN_TITLE,VC.CAMPAIGN_DESC,
    VCV.START_DATE, VCV.END_DATE,VC.CAMPAIGN_TYPE,VC.APPLICABILITY,
    VC.CAMPAIGN_PRIORITY
         FROM
         VM_CAMPAIGN_VIN VCV ,VM_CAMPAIGN VC
         WHERE
              VCV.VIN = 'US'
              AND
    VCV.CAMPAIGN_NUMBER = VC.CAMPAIGN_NUMBER AND VC.COUNTRY_CODE = 'E'
              AND VC.LANGUAGE_CODE = 'L' AND VC.CAMPAIGN_TYPE = null
    AND SYSDATE BETWEEN VCV.START_DATE AND VCV.END_DATE
    AND SYSDATE BETWEEN VC.START_DATE AND VC.END_DATE)
    A ORDER BY A.CAMPAIGN_PRIORITY DESC, A.END_DATE
    The error is:
    SQl Command not properly ended
    Any help is highly appreciated. Thanks

    Thanks a lot to everyone. It helped me run the query without any problem. Now I have another issue. This may not be the right place to post this question, I think.My apologies for that. The problem is, Weblogic posts an error as follows:
    java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    I am wondering if this is an Java related error or an SQL related error.
    Well, I am using the SQL Statement which you helped debug, and it is inside something called "XXSQLConstants.java consisting of the following SQL statement:
    public static final String XX_ALL_CAMPS_SELECT = "SELECT * FROM" +
         "(SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc, vc.start_date," +
         "vc.end_date, vc.campaign_type, vc.applicability, vc.campaign_priority" +
    "FROM vm_campaign vc" +
    "WHERE vc.applicability = 'Y'" +
    "AND vc.country_code = ? " +
    "AND vc.language_code = ? " +
    "AND vc.campaign_type = ? "+
    "AND SYSDATE BETWEEN vc.start_date AND vc.end_date" +
    "AND NOT EXISTS (" +
    "SELECT 'X'" +
    "FROM vm_campaign_vin vcv" +
    "WHERE (vcv.vin = ? " +
    "AND vcv.campaign_number = vc.campaign_number" +
    "))" +
         "UNION" +
         "SELECT vc.campaign_number, vc.campaign_title, vc.campaign_desc," +
         "vcv.start_date, vcv.end_date, vc.campaign_type, vc.applicability," +
    "vc.campaign_priority" +
    "FROM vm_campaign_vin vcv, vm_campaign vc" +
    "WHERE vcv.vin = ? " +
    "AND vcv.campaign_number = vc.campaign_number" +
    "AND vc.country_code = ? " +
    "AND vc.language_code = ? " +
    "AND vc.campaign_type IS NULL" +
    "AND SYSDATE BETWEEN vcv.start_date AND vcv.end_date" +
    "AND SYSDATE BETWEEN vc.start_date AND vc.end_date)";
    The SQl runs fine when tested (well, it does not return any data for the rows returned, but there are no errors), but in my application server I get the following error (pointing out the same SQL code pasted above:
    java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    Any suggestions? Thanks in advance. I appreciate all replies

  • Runtime error 4605 and word application crashing

    Hello Everyone,
    I wrote a script to add TAGs as comments of word document. The criteria of adding tag is based on outline numbering as document do not follow word styles, I had to use outline numbering for this purpose.
    There are couple of issues I am facing.
    1.) script is very slow and sometimes my word application crashes.
    2.) sometimes I get a runtime error 4605 'This command is not available' for line "Selection.Comments.Add Range:=Para.Range, text:="[" & sIdLabel & sCurrentNumber & "]" & vbCrLf  ' ID‘}"
    Here is my updated code
    'script to insert TAGs as comment based on word document outline.
    ' The format of TAG is provided by user and also the step by which TAG number need to be incremented
    Public Sub CreateOutline()
    Dim sIdLabel As String
    Dim sCurrentNumber As String
    Dim sStepNumber As String
    Dim Para As Paragraph
    Application.Templates.LoadBuildingBlocks
    'get the TAG format from user.
    sIdLabel = InputBox("Provide the TAG ID", "TS_FS_")
    sCurrentNumber = InputBox("Provide the Current number", "001")
    'get the step by which the TAG number is to be incremented everytime.
    sStepNumber = InputBox("Provide the step", "1")
    For Each Para In ActiveDocument.Paragraphs
    If Para.Range.ListParagraphs.Count = 1 Then
    Para.Range.Select
    Selection.Move wdParagraph, 1
    Selection.Comments.Add Range:=Para.Range, text:="[" & sIdLabel & sCurrentNumber & "]" & vbCrLf ' ID‘}
    sCurrentNumber = Format(Val(sCurrentNumber) + Val(sStepNumber), String(Len(sCurrentNumber), "0"))
    End If
    Next Para
    End Sub

    Hi Ashishk15,
    Since you were not able to reproduce the error every time, I suspect this issue maybe relative to the context of document you were handling.
    I am also trying to reproduce this issue in Word 2013 however failed. The code works well for me like figure below:
    >>2.) sometimes I get a runtime error 4605 'This command is not available' for line "Selection.Comments.Add Range:=Para.Range, text:="[" & sIdLabel & sCurrentNumber & "]" & vbCrLf  ' ID‘}"<<
    What's version of Word are you using and the exact error message? Can you add the comment manually? If yes, would you mind sharing with us a reproducible document to help us narrow down this issue. 
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Runtime error --sql command

    Hi All,
    I'm not familar with sql command, thus get this error when put into abap, can anyone help ?
    I use db connection, & the connection is fine, just that when I test append a line to the table AWB , it failed, is that sytax error ?
    WA_AWB-SHIPID = '1582271'.
    WA_AWB-SHIPNO = '2144399'.
    WA_AWB-COURIERID = 'XXX'.
    WA_AWB-COURIER = 'XXX'.
    INSERT WA_AWB INTO TABLE it_awb.
    EXEC SQL.
    APPEND AWB FROM TABLE IT_AWB
    ENDEXEC.
    Thanks in advance.
    Janice

    Hi Janice,
    what's the error your getting..,
    Anyhow let's see below the complete code example for creating table, inserting values and fetching the records.
    data: begin of itab,
            shipid type i,
            shipno type p,
            awb(50) type c,
            courierid(3) type c,
            amount type p,
            courier(20) type c,
          end of itab.
    itab-shipid = '1582273'.
    itab-shipno = '2144340'.
    itab-awb = 'mahesh'.
    itab-courierid = '123'.
    itab-amount = 44444.
    itab-courier = 'DHL'.
    */ Table creation in Oracle DB */
    *EXEC SQL.
    *CREATE TABLE mahi_temp(shipid NUMBER, shipno DECIMAL(18,0), awb VARCHAR(50), courierid CHAR(3), amount DECIMAL(18,0), courier VARCHAR(20))
    *ENDEXEC.
    */ Insert records into table*/
    EXEC SQL.
    INSERT INTO MAHI_TEMP VALUES (:itab-shipid, :itab-shipno, :itab-awb, :itab-courierid, :itab-amount, :itab-courier)
    ENDEXEC.
    */ Fetching records from table */
    exec sql performing list_itab.
    select * from mahi_temp into :itab
    endexec.
    form list_itab.
    write:/ itab-shipid, itab-shipno, itab-awb, itab-courierid.
    endform.
    Hope this helps you.
    Cheers\
    Mahesh

  • Member acces profile error(A table name, specified in an sql command)

    Hi friends,
    In my bpc application(A) below 3 dims are secure dims.
    1. entiiy  (std)
    2. category (std)
    3. location (custom dim)
    while defining one member access profile,
    Read Only      : CATEGORY 100
    Read & Write      : CATEGORY 200,500
    for whatever combinatio i use, for other secure dims (eg: category,location where base member,or parent members ) i'm getting below error  message
    A table name, specified in an sql command, is unknown.
    We are on bpc75nw sp04.
    Pls suggest us .
    dump(st22):
    Short text
        A table name, specified in an SQL command, is unknown.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_UJE_MEMACCESS_CACHE========CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
         not caught in
        procedure "REMOVE_MEMACCESS" "(METHOD)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An invalid table name "/1CPMB/RDWCSUMAS" was specified in an Open SQL command:
        Due to one of the following reasons, the error occurs only at runtime:
        - the table name was specified dynamically, or
        - the SELECT clause, WHERE clause, GROUP-BY clause, HAVING clause, or
          ORDER-BY clause was specified dynamically.
    Thanks,
    naresh
    Edited by: Naresh P on Feb 19, 2011 10:40 AM

    Hi Naresh,
    As far as I know You have specify Explicit Access to all the dimensions mentioned as Secured in your Application.
    You can't skip the secured Dimesions.
    In your case if you want to restrict only one dimension for 1 Member Access Profile then give Read & Write access to other 2 Dimensions and select ALL members.
    This might solve your problem.
    Hope it helps.
    Chaithanya

  • Read from sql task and send to data flow task - [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.

    I have created a execut sql task -
    In that, i have a created a 'empidvar' variable of string type and put sqlstatement = 'select distinct empid from emp'
    Resultset=resultname=0 and variablename=empidvar
    I have added data flow task of ole db type and I put this sql statement under sql command - exec emp_sp @empidvar=?
    I am getting an error.
    [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
    [SSIS.Pipeline] Error: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC02092B4.

    shouldnt setting be Result
    Set=Full Resultset as your query returns a resultset? also i think variable to be mapped should be of object type.
    Then for data flow task also you need to put it inside a ForEachLoop based on ADO.NET recordset and map your earlier variable inside it so as to iterate for every value the sql task returns.
    Also if using SP in oledb source make sure you read this
    http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Runtime error while connecting from SAP to MS-SQL DB

    Hi,
    I am writing a program to send data from SAP to MS SQL DB.
    The stored procedure when run alone works fine.
    I have defined connection 'C04' in DBCO with correct attributes.
    But the 'CONNECT TO C04' statement gives me runtime error DBIF_DSQL2_CONNECTERR saying that 'Connection to Database system with the identifier C04 is not possible;.
    First of all, I am not very clear if it is a ABAP problem or BASIS problem.
    I did a lot of research but could not find a solution.
    Please help me.
    Thanks & Regards,
    Shubha.

    Hi shubha,
    1. If your application server
       is unix/aix,
       then connection to MSSQL db
       is not possible.
    (Bcos both OS are different,
      and the connector is not provided
      by sap / not available)
    2. After making an entry in DBCON Table,
       probably something may be required to
       be done on the application server,
       by the basis team.
    3. If this connection is required
       to be made to oracle server,
       then basis definitely requires
       to make a connection string
       on the application server
       (apart from the dbcon entry)
    regards,
    amit m.

  • Runtime error SQL error 3114 occurred when accessing program CX_ w

    Hi Friends,
    Iam in a big mess . I have one query based on one my Zinfocube.This query ia attached in the workbook .. Previuolsy all was fine , but now whever iam executing this query it is throwing me the exception
    Query 0: Runtime error SQL error 3114 occurred when accessing program CX_ with parallel processing via RFC.
    and
    Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
    I am not able to get the cause of error ..
    Can anybody help me in this regrd as its a bit urgent.
    Thanks in advance..

    Hi , thanks for replying ,
    I have tried running query through RSRT also , its not working still it is giving me the same error .
    In st22 it is showing me the follwing dump.
    DBIF_REPO_SQL_ERROR
    Short text
        SQL error 3114 occurred when accessing program
    What happened?
        The system is no longer linked to an ORACLE instance.
        No further operations can be performed on the database.
    What can you do?
        You cannot eliminate this error yourself.
        Please inform your database administrator.
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The system attempted to access an ORACLE instance to which
        it is no longer linked.
        This situation may arise because the ORACLE instance
        has been stopped due to an error or an external operation.
    How to correct the error
        Database error text........: "ORA-03114: not connected to ORACLE"
        Triggering SQL statement...: "CX_SQL_EXCEPTION==============CP "
        The current status of the ORACLE instance cannot be determined.
        It may be still inactive or the database administrator may have
        restarted it.
        In any case, all systems that have accessed the ORACLE instance
        must be restarted after the ORACLE instance has been restarted.
        If you were working on a central system, inform
        your system administrator.
        If you were working on an external local system, inform
        the person responsible for this system.
        If you were working on your own local system, restart
        the system yourself.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DBIF_REPO_SQL_ERROR" " "
        "CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
        "NEXT_PACKAGE"
        If you cannot solve the problem yourself and want to send an errornotification to SAP, include the following information:
    1. The description of the current problem (short dump)
       To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
       Display the system log by calling transaction SM21.
       Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_REPO_SQL_ERROR" " "
    "CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
    "NEXT_PACKAGE"
    Thanks in Advance..

  • CallableStatement error: SQL command not properly ended

    I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
    //String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
    String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
    CallableStatement csth = Connection.prepareCall(query);
    csth.setString(1, wipNumber);
    csth.setInt(2, PacCarousel.getCarouselNumber());
    csth.execute();
    using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
    java.sql.SQLException: ORA-00933: SQL command not properly ended
    This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
    Has anyone run into this problem before or perhaps have some suggestions?
    Thanks in advance

    I am getting a strange error using CallableStatement and Oracle 7.3.4 with PL/SQL 2.3 using Classes12 JDBC driverset from Oracle. Here is the code we are using, which is almost verbatim from several Java/Oracle CallableStatement examples for Oracle 8. I am wondering what I am missing to make this work on Oracle 7 and am unable to find a reference online:
    //String query = "begin PAC.PAC_WIP_WIPHEADER_PKG.GetWipNumPartList(?,?); end;";
    String query = "{ call PAC.PAC_WIP_WIPHEADER_PKG.GETWIPNUMPARTLIST(?,?) } ";
    CallableStatement csth = Connection.prepareCall(query);
    csth.setString(1, wipNumber);
    csth.setInt(2, PacCarousel.getCarouselNumber());
    csth.execute();
    using either the Begin or the call query (Begin commented in above code snip) is returning the following error from the JDBC driver:
    java.sql.SQLException: ORA-00933: SQL command not properly ended
    This identical 'begin' query works fine in TOAD or the PL/SQL console for Oracle, but just won't work using this set of JDBC drivers.
    Has anyone run into this problem before or perhaps have some suggestions?
    Thanks in advance

Maybe you are looking for