Possible to execute complex query in ExecuteSQL method in DI Server??

Hi All,
Is it Possible to execute complex query in ExecuteSQL Method in DI Server?
Regards,
G.Suresh

Hello Guru,
It is possible. Mostly if it can be done in DI, it will also can be done in DI Server except metadata operaiton, transation management etc.
I try the following complex query (join, nexted):
The SOAP Request
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
  <SessionID>4FFCFAA3-5493-456A-BC89-410B35AF096C</SessionID>
</env:Header>
<env:Body>
  <dis:ExecuteSQL xmlns:dis="http://www.sap.com/SBO/DIS">
   <DoQuery>SELECT OCRD.CardCode, OCRD.CardName, OCPR.Name FROM OCRD JOIN OCPR ON OCRD.CardCode = OCPR.CardCode WHERE OCRD.CardCode IN
(SELECT DISTINCT ORDN.CardCode FROM ORDN)</DoQuery>
  </dis:ExecuteSQL>
</env:Body>
</env:Envelope>
The SOAP Response:
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body><ExecuteSQLResponse xmlns="http://www.sap.com/SBO/DIS">
<BOM><BO><AdmInfo><Object>oRecordset</Object></AdmInfo><OCRD><row><CardCode>C002</CardCode><CardName>SAP</CardName>
<Name>2</Name></row><row><CardCode>C002</CardCode><CardName>SAP</CardName><Name>l</Name></row><row><CardCode>C002</CardCode>
<CardName>SAP</CardName><Name>Z</Name></row></OCRD></BO></BOM></ExecuteSQLResponse></env:Body></env:Envelope>
I think you can easily parse the result...
Kind Regards
-Yatseas

Similar Messages

  • IS IT POSSIBLE TO EXECUTE A QUERY BASED ON USER

    Hi,
    I need to restrict a set of queries to a user. Is it possible.
    Thanks
    Mini

    This is done by standard parametrization using query groups and user authorizations.

  • Function Module to Execute BEx Query and Save as work book.

    Hi
    I have a requirement for executing the Query after the data is loaded into the cube and save as Workbook and emailing to the user. Is there any Function module to Execute the Query and saving as Work book? . Please suggest me the way how to approach the problem.
    Thanks for your help in advance.

    Hi,
    It is possible to execute the Query and send the result as workbook vial email to the user.
    For that use should use Information Broadcaster.
    Steps:
    1. Goto information broadcaster.
    2. Choose object type as "Query"
    3.Click create new setting.
    4. Give description and choose distribution type as "Broadcast E-mail"
    5.Choose output format "XML(MS Excel)
    6.In recipient tab Give valid e-mail addres which you want to send.
    7.Save it. and give technical name
    8.Click schedule.
    9.choose "Execution with Data Change in the InfoProvider " correspondig infoprovider will be shown (check the check box)
    10. that's it. whenever data loaded in your infocube, it will be automatically executed and send to user mail.
    <removed> if u want more information let me know.
    Regards,
    Senthil Kumar.P

  • Possible to execute custom SQL query?

    Is it possible to execute a custom SQL query and get back a collection of
    objects with Kodo JDO? Query expression languages like JDOQL are all very
    well (I actually think JDOQL is pretty messy), but sometimes when you've
    got a complex query (and you know you're using a RDBMS) it is best
    accomplished in a SQL statement. I see Kodo has extended JDOQL, which is
    good, but developing custom extensions seems to be limited to implementing
    kodo.jdbc.query.JDBCFilterListener where you can customise the where
    clause. What I want to be able to do is to specify the entire SQL string.
    I am looking into using Kodo JDO for my organisation, and being able to
    use custom SQL is something i would expect (and something we can do with
    our current O/R mapping product (TopLink)).
    Regards,
    Alex

    Patrick Linskey wrote:
    On Tue, 30 Sep 2003 10:57:13 +0000, Alex wrote:
    being able to use custom SQL is something i would expect
    We absolutely agree. Take a look at the samples/customSQL example in the
    Kodo distribution.
    -Patrick
    Patrick Linskey
    SolarMetric Inc.Hi Patrick,
    I have downloaded kodo-jdo-3.0.0RC1 for windows for evaluation, but there
    is no samples/customSQL directory.
    Alex.

  • Is it possible to change the column headings when ever i execute the query

    in the runtime i want to change the column headings is that is possible.
    Ex: if write a timestampadd(.......) function in the table heading is that change the dates automatically whenever i execute the query?
    is this is possible?
    Product name 1-2-10 5-6-10
    aaaa 5 6
    bbfff 6 10

    Product name 1-2-10 5-6-10
    aaaa 5 6
    bbfff 6 10It looks like the dates are values in a column? Put that column in the Columns section of the Pivot Table and Product Name in the Rows section and it should produce what you are looking for.
    Edited by: David_T on May 19, 2010 2:33 PM

  • [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]

  • ADF how can i execute a query with parameters when the page renders

    hi
    i am using ADF web 11g
    i need to execute a query with parameters when the page renders
    thanks

    hello,
    I'm a fan of Java code, I really am.
    But when you use ADF, you decided to move to a more declarative environment.
    So why not do it declarative, the adf way?
    In your pagedef insert a action binding.
    This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
    Create an invokeAction in your pagedef and set the condition.
    This example refreshes(Action 2 is execute query) the data.
    First the method binding:
        <action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
                DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
        <invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
    -Anton
    PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.

  • Complex Query using findUsers()

    I have not run across any posting where the findUsers() or findUsersFiltered() methods were doing anything other than a simple query. Is it possible to do a complex query? For instance, find all users whose status is NOT Deleted. Or all users with a date attribute that is before a given date. Or all users with an attribute value of 'X' OR 'Y'. These are simple SQL queries. I can see how to do a series of simple queries and deal with merging or filtering the results. But wouldn't it be way more efficient to do it in the original query?
    If it is possible, can you point me to an example?
    Thanks,
    Bill

    Hi zhangbin,
    This message may be useful.
    Re: How can I make queries to DB?
    --mark                                                                                                                                                                                                                                                               

  • Problems executing vo query from am class

    Hi Gurus,
    I have a big one right now, when I'm trying to execute VO query throws me an exception "JBO-27122" I wonder if you could tell me what I'm doing wrong, I hope you can help me, I'll be pending to your answer... have a nice one.
    let me share you my code:
    this is my AM method:
    public ArrayList getPlazaSinAlta(RepIndicatorsBean bn) {
    ArrayList list = null;
    PromedioDiasBean bean = null;
    PlazaSinAltaVOImpl vo = null;
    try{
    vo = (PlazaSinAltaVOImpl)this.am.findViewObject("PlazaSinAltaVO");
    vo.clearCache();
    vo.setRangeSize(-1);
    vo.setWhereClauseParam(0,"'" + bn.getIdPlaza() + "'");
    vo.setWhereClauseParam(1,"'" + bn.getFechaSinIni() + "'");
    vo.setWhereClauseParam(2,"'" + bn.getFechaSinFin() + "'");
    vo.setWhereClauseParam(3,"'" + bn.getFechaAltaIni() + "'");
    vo.setWhereClauseParam(4,"'" + bn.getFechaAltaFin() + "'");
    System.out.println(vo.getQuery());
    vo.executeQuery();
    Utils.setVOSize(vo);
    Row[] row = vo.getAllRowsInRange();
    list = new ArrayList();
    for(int i = 0; i < row.length; i++){
    PlazaSinAltaVORowImpl vor = (PlazaSinAltaVORowImpl)row;
    bean = new PromedioDiasBean(vor);
    list.add(bean);
    }catch(Exception e){
    Utils.sendError(e);
    }finally{
    if(vo != null){
    vo.closeRowSet();
    return list;
    and here's my VO's query:
    SELECT se.IDSINIESTRO,
    se.IDSINIESTRO_ORIG,
    se.ID_ETAPA_SEGUIMIENTO,
    t.IDTIENDA,
    t.TIENDA,
    t.FORMATOTIENDA AS COMPANIA,
    p.IDPLAZA,
    p.NOMBREPLAZA,
    si.FECHACREACION,
    si.FECHASINIESTRO,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_sin_siniestro_comp d
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO_ORIG = s.IDSINIESTRO)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS PATRIMONIAL,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_seguimiento_denuncia d
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS DESPACHO_DENUNCIA,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_seguimiento_ctrl_tienda d
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS CONTROL_INGRESOS,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_seguimiento_admtvo d
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS ADMINISTRATIVO,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_seguimiento_tesoreria d
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS TESORERIA,
    (SELECT round(SUM(d.DIAS_TRANSCURRIDOS)/COUNT(*))
    FROM xxrlab.xxrlab_seguimiento_despacho d
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro ss
    ON (ss.IDSINIESTRO = d.IDSINIESTRO)
    INNER JOIN xxrlab.siniestro s
    ON (s.IDSINIESTRO = ss.IDSINIESTRO_ORIG)
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = s.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = s.IDTIENDA)
    WHERE p.IDPLAZA = :1
    AND s.FECHASINIESTRO BETWEEN :2 AND :3
    AND d.CREATION_DATE BETWEEN :4 AND :5 ) AS DESPACHO_TESORERIA
    FROM xxrlab.siniestro si
    INNER JOIN xxrlab.plaza p
    ON (p.IDPLAZA = si.IDPLAZA)
    INNER JOIN xxrlab.tienda t
    ON (t.IDTIENDA = si.IDTIENDA)
    INNER JOIN xxrlab.xxrlab_seguimiento_siniestro se
    ON (se.IDSINIESTRO_ORIG = si.IDSINIESTRO)
    Best Regards,
    mentor

    Did you check that the VO is set to Oracle Positional?
    And: You cannot use the same bind variable multiple times in the query. Older Oracle JDBC drivers allowed you to do that.
    But since the ... 10.2 or something drivers ... this is no longer possible.
    So, where you previously could do a:
    "WHERE STAFF_ID = :1 AND DEPARTMENT = :2 AND MANAGER_ID = :1"
    with:
    setWhereClauseParam( 0, id );
    setWhereClauseParam( 1, dept );
    you now need to:
    WHERE STAFF_ID = :1 AND DEPARTMENT = :2 AND MANAGER_ID = :3
    with a separate:
    setWhereClauseParam( 2, id );
    Alternatively, you could use named where clause params. There you can repeat the variable in the query.
    Sascha

  • Error executing a query with large result set

    Dear all,
    after executing a query which uses key figures with exception aggregation the BIA-server log (TrexIndexServerAlert_....trc) displays the following messages:
    2009-09-29 10:59:00.433 e QMediator    QueryMediator.cpp(00324) : 6952; Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    2009-09-29 10:59:00.434 e SERVER_TRACE TRexApiSearch.cpp(05162) : IndexID: bwp_v_tl_c02, QueryMediator failed executing query, reason: Error executing physical plan: AttributeEngine: not enough memory.;in executor::Executor in cube: bwp_v_tl_c02
    --> Does anyone know what this message exactly means? - I fear that the BIA-Installation is running out of physical memory, but I appreciate any other opinion.
    - Package Wise Read (SAP Note 1157582) does not solve the problem as the error message is not: "AggregateCalculator returning out of memory with hash table size..."
    - To get an impression of the data amount I had a look at table RSDDSTAT_OLAP of a query with less amount of data:
       Selected rows      : 50.000.000 (Event 9011)
       Transferred rows :   4.800.000 (Event 9010)
    It is possible to calculate the number of cells retreived from one index by multiplying the number of records from table RSDDSTAT_OLAP by the number of key figures from the query. In my example it is only one key figure so 4.800.000 are passed to the analytical engine.
    --> Is there a possibility to find this figure in some kind of statistic table? This would be helpful for complex queries.
    I am looking forward to your replies,
    Best regards
    Bjoern

    Hi Björn,
    I recommend you to upgrade to rev 52 or 53. Rev. 49 is really stable but there are some bugs in it and if you use BW SP >= 17 you can use some features.
    Please refer to this thread , you shouldn't´t use more than 50% (the other 50% are for reporting) of your memory, therefor I have stolen this quote from Vitaliy:
    The idea is that data all together for all of your BIA Indexes does not consume more then 50% of total RAM of active blades (page memory cannot be counted!).
    The simpliest test is during a period when no one is using the accelerator, remove all indexes (including temporary) from main memory of the BWA, and then load all indexes for all InfoCubes into ain memory. Then check your RAM utilization.
    Regards,
    -Vitaliy
    Regards,
    Jens

  • GO button to execute a query once report parameters are selected.

    I am familiar with the GO button depicted in chapter 10 of the 2 Day Developer manual that does not cause the report to be rendered until a user chooses a value from a select list of values. The GO button is used in conjunction with Null Value Text (ex. -Select-), Null Value (ex. -1), and Default (ex.-1).
    I need an alternative to the above method that will still force the user to pick a value from the List Of Values parameters prior to executing the query and rendering the report. Please provide.
    Thanks, Don From Maine

    Why don't you use a validation process?
    Denes Kubicek

  • Error in executing Std query -  Incorrect FRANGE row in FORM/DIM?FAC

    Hi,
    NOTE: We are on BI 7.0 Spport Pack 12 (SAPKW70012)...
    When I try to execute a query(one of the standard queries in HR - 0PA_C01_Q021), I got the following error messages:
    ABEND: Incorrect FRANGE row in FORM/DIM?FAC for InfoObject 0AGE
    ABEND: Incorrect FRANGE row in FORM/DIM?FAC for InfoObject 0ORGUNIT
    ABEND: Program error in class SAPMSSY1 method: UNCAUGHT EXCEPTION
    I searched the OSS and found a note 1001621 which said apply support package: SAP_BW_VIRTUAL_COMP - Rel 700 - Pkg name SAPK70012NVCBWTECH
    But, our basis guys came back with the reply that the solution suggested in OSS note is for SAPKW70011, but our system is already on SAPKW70012. So, this note cannot be applied.
    Is there any hidden solution out there? Please respond asap.
    Thanks

    Hi Raj and Sunny,
    Actually solution is very simple. You have to open this query in Query Designer and redefine the corresponding selection. The problem is that OLAP in BW 7.x is much more strict to query definition than in BW 3.x. Therefore queries from BW 3.x  are not accepted quite often. This error is just one example. So try to touch  the corresponding selection using hierarchy and save a query once again. For sure this will help. If not, create a message, we will look at the problem directly in your system.
    Best regards,
    Maxim

  • Receiving SQL Error: INTERNAL_ERROR  while executing the query

    Dear All,
    I am receiving the below error while executing a query.
    SQL Error: INTERNAL_ERROR
    Diagnosis
    The database system registered an SQL error. As available, the error number and a description are included in the short text. Possible causes for SQL errors include:
    Overflow of database objects such as buffers, temporary tablespaces, rollback segments or data containers/tablespaces.
    ->These problems can generally be eliminated by system administrators.
    Missing generated database objects such as tables or views based on inconsistent or inactive InfoCubes or InfoObjects. Examples of this include the view of the fact table for an InfoCube or the attribute SID table (X/Y table) of a characteristic.
    -> These problems can generally be eliminated by a BW administrator.
    SQL requests with incorrect content.
    -> Problems of this type are generally programming errors.
    System Response
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    If there is no error description, look for one in the reference from the database producer.
    Decide on the correct category for the SQL error and check if it can be eliminated. Generally the error can also be found in the syslog (transaction sm21). From there, transactions sm51 and sm50, the developer's trace log of the work process can be determined and the erroneous statement can be viewed in the log. This procedure is described in SAP Note 568768.
    Notification Number DBMAN 257 
    I verified the table spaces and also done RSRV Repair of InfoObjects and InfoCubes and didnt find any error. But I am receiving this error for one particular month and remaining months are executing fine. Any ideas why i am receiving this error.
    Regards
    Ravi Y

    OSS Note 1305568:
    Symptom
    A data mart query that
    you want to execute within a data transfer process (DTP), for example, terminates with the
    SQL error -1013 "Too many order columns".
    The following is displayed in the monitor log of the data transfer process:
    Error while extracting from source xxxxxx (type InfoProvider)
    Message number RSBK 242
    Exception CX_SQL_EXCEPTION occurred (program:
    CL_SQL_STATEMENT==============CP, include:
    CL_SQL_STATEMENT==============CM004, line: 32).
    Message number RS_EXCEPTION 000
    SQL error: POS(3306) Too many order columns
    Message number DBMAN 257
    Error reading the data of InfoProvider xxxxxx
    Message number DBMAN 305
    You have already implemented Note 1065380.
    Other terms
    CX_SQL_EXCEPTION, message number, RS_EXCEPTION 000, DBMAN 257,  RSBK 242,
    RS_EXCEPTION 000
    Reason and Prerequisites
    The MaxDB internal limit of 4016 bytes or 128 fields for GROUP BY columns was exceeded.
    Solution
    When you implement these corrections, no aggregation is performed for the data (GROUP BY) if the limits of the MaxDB database have been exceeded.
    The limit values for the aggregation bahavior can also be manually reduced if there are problems with the default values.
    Two RSADMIN parameters are provided for this.
    MAXDB_MAX_GROUP_BY_FLDS is the maximum number of GROUP BY fields. The default value is 128.
    MAXDB_MAX_GROUP_BY_LEN is the maximum total length of the GROUP BY fields. The default value is 4000.
    SAP NetWeaver BI 7.00
               Import Support Package 21 for SAP NetWeaver BI 7. 00 (SAPKW70021) into your BI system. The Support Package is available when Note 1270629"SAPBINews NW 7.00 BI Support Package 21", which describes this Support Package in more detail, is released for customers.

  • Error while executing the query-VIMP

    Dear alll
    I am executing the query in production i am getting this below error message
    BRAIN 629 Specify a value for variable companycode(single values,entry,mandatory)
    BRAIN  629 specify a values for variables Simulkation ID1Individal values,requireed entry)
    RSBOL 000 Program error in class SAPMSSY1 Method UNCAUGHT_EXCEPTION
    BRAIN 633 varibale contain invalid values
    It have been worked untill yesterday
    Please suggest me in futhuru its very very imp to deliver the reports

    Hi,
    Try one of these
    1. Take of the infoobject from the query definition and see if the query is working.
    2. Try saving this Query as another one and try executing it.
    REgards
    Govind

  • Error while executing the query

    Hi all,
    I am facing two errors while executing my query namely
    1)The validity interval has initial value as lower limit.
    2)Diagnosis
    Query  uses non-cumulative key figures. It requires calculation for non-cumulative values for more than 2000 periods in time. The most common reason for this is that the non-cumulative InfoCube has a very large validity interval and the query has no time restrictions. With exception aggregation AVERAGE (AV1 or AV2) in particular, this lack of time restriction would result in considerable memory and performance problems.
    System Response
    Query  cannot be executed in this way.
    Please suggest a possible reason for these errors.
    Thanks and Regards.
    Mudit Khanna

    Hi,
    See
    Refer Notes 496638,571364
    210432
    528202
    1318741
    208546
    and also see simila thread
    Problem getting data from BF cube in report (Non cummulative keyfigures)
    Thanks
    Reddy

Maybe you are looking for