Query...Little tricky!

Hi,
I have following columns in my query:
Cust_No     item_name qty
123     Item1 100
123     Item2     200
234     Item1     300
234     Item2     400
Case 1:
Here Item1 and Item 2 are standard. There will be no more Items.
I want the output like below:
Cust_No     item_name qty     Item2_qty
123     Item1 100     200
234     Item2     300     400
Case 2:
Here Item1,Item 2,Item 3....Item n . There will be n number of Items.
I want the output like below:
Cust_No     item_name qty     Item2_qty Item3_qty..........Item n Qty
123     Item1 100     200
234     Item2     300     400
Please send the queries for the both cases.
Thanks you...
Regards,
Suman S
Edited by: SSN on May 21, 2009 11:21 AM

Hi,
When you know exactly how many items there are, and what they are called:
SELECT       cust_no
,       MAX (CASE WHEN item_name = 'Item1' THEN qty END)     AS "Item1"
,       MAX (CASE WHEN item_name = 'Item2' THEN qty END)     AS "Item2"
FROM       table_x
GROUP BY  cust_no;When you don't know this, you have to do dynamic SQL, as Centinul said.
See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3340867&#3340867] for an example of how to do it.

Similar Messages

  • Output of Query--Little urgent

    Hi All,
    I had Emp Table as follows.
    Emp table
    Empid DeptId Hiredate Salary
    1 100 10/1/2006 80,000
    2 100 1/1/2007 100,000
    3 100 2/1/2007 100,000
    4 100 3/1/2007 90,000
    5 100 4/1/2007 200,000
    6 100 5/1/2007 80,000
    7 200 6/1/2007 10,000
    8 200 7/1/2007 20,000
    9 200 8/1/2007 30,000
    10 200 9/1/2007 40,000
    Pls provide the out put for the following queries.
    1)Select count(*),Empid,DepItd
    From EMP
    Groupby empid,DeptId;
    2)Select Count (*) ,EmpId,Depid
    from Emp
    Groupby DepiId;
    Thank You,
    rampa.

    Pls provide the out put for the following queries.Why don't you check it yourself ?
    Correct the queries first. There is no space between Group and By. EmpId is not in Group By in the second query.
    And what is that you want to achieve and what is the help you need?? Be more clear and specific.

  • Finding Pages a little tricky... any ideas?

    I'm new to Pages (being a recent PC) and I've been a little frustrated with these:
    - Finding a shortcut for the "insert" key (as in insert IN FRONT of the where the cursor is)
    - Finding a shortcut for inserting bullets
    - Saving my document only as a .doc and not .pages. See, I don't like that virtually all my documents will now have two copies - one in Pages and the other as .doc so I can open/ send it to Word users. Is there a way around this?
    Thanks!

    ldbw5 wrote:
    I'm new to Pages (being a recent PC) and I've been a little frustrated with these:
    - Finding a shortcut for the "insert" key (as in insert IN FRONT of the where the cursor is)
    I fail to see what the difference is between insert where the cursor key is and IN FRONT of where the cursor is. How far in front of where the cursor is the normal point of insertion of text on a PC?
    - Finding a shortcut for inserting bullets
    Bullets are • or option 8, but Pages has a List function on the toolbar to do this for you or anything else you want in its place.
    - Saving my document only as a .doc and not .pages. See, I don't like that virtually all my documents will now have two copies - one in Pages and the other as .doc so I can open/ send it to Word users. Is there a way around this?
    When you save your document the format option is down the bottom of the *Save as…* dialog box:
    +Save copy as: Word Document+
    In the long run I think you will find this a bad idea because Pages does stuff that don't translate well into Word Documents. If you just want to stick with MsWord, do so using MsOffice or NeoOffice. Don't use Pages.
    Thanks!
    I suggest you download the Pages09_UserGuide.pdf available from under the Help menu and read up on how Pages works.
    Peter

  • Query Resource Semaphore Max Memory

    Hi Folks,
    I'm on SQL2005 32-bit and am suffering from memory contention problem.
    I do have AWE setup for
    10485760 kb but it doesn't seem to suffice.
    Looking at dm_exec_query_resource_semaphores I see that my queries are queue'ing up to get memory allocated.
    Now, of course the correct direction here is to fix the queries that are eating all the resources but this is a very old environment with many bad queries which have just exceeded the tipping point.
    What's interesting is that despite having 10GB awe, the column max_target_memory_kb indicates only 750MB.
    Is there any way to grant more memory to the semaphore as a temporary solution?
    Related topic http://www.mssqltips.com/sqlservertip/2827/troubleshooting-sql-server-resourcesemaphore-waittype-memory-issues.
    Thanks,
    Lucas

    Hi Folks,
    I'm on SQL2005 32-bit and am suffering from memory contention problem.
    I do have AWE setup for 10485760 kb but it doesn't seem to suffice.
    Hi,
    Can you post output of
    Select @@Version
    You have 32 bit system which has biggest limitation of memory. So things get little tricky here. Have you set max server memory, if so how much ?
    What do you mean by 'AWE setup for 10' G are you referring to max server memory as AWE set memory ?
    AWE behaves differently in 32 bit. Only Data and index pages can use memory allocated by AWE. It actually helps SQL Server to access more memory than its VAS limit.
    The biggest problem creator for resource semaphore are Sort and hash joins. Memory grant is  memory used to store temporary rows for sort and hash join and query will use this memory till it finishes and resource semaphore is responsible for providing
    this memory to query. If resource semaphore is not able to provide memory it puts request in wait list till memory is free so as I see and know only way to resolve is either increase memory or tune query
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Query builder and multiple linked tables...

    Hi all,
    I have a database with a large table (50+ fields) and lots of tables (at
    least 10 tables) linked to the bigger one.
    I can link 7 or 8 tables using Query builder but after that, it gets slow
    and slower.
    I can't link other tables since it appear to hang.
    How can I solve this?
    Here is a sample of the large table (articles):
    - id_art
    - code_art
    - material_id_art (fk)
    - color_id_art (fk)
    - finishing_id_art /fk)
    - and so on... with other fields set as foreign keys.
    The color table is:
    - id_col
    - colid_col
    - name_col
    - language_col
    The table view is:
    id_col colid_col name_col language_col
    1 1 rosso it
    2 1 red uk
    3 1 rojo es
    The other tables follow the same color table specification.
    I would like to obtain all articles with color_id_art field equal to the
    color.colid_col field AND color.language_col equal to a session variable
    (language). This session variable contains 'it', 'uk', or 'es', depending
    on user selection on other pages.
    I can use query builder to do something similar with few tables but when
    the linked tables are 10 or more the query builder began to slow down too
    much and is totally unusable.
    Is there a way to create such a query manually?
    I'm not a SQl programmer so, I have not all the knowledge to do this.
    Can anyone point me in the right direction or point me to some tutorial
    about such a problem?
    I thank you in advance.
    tony

    Ciao Tony,
    Well, the main table is 4000+ records
    I´ve heard of other users having similar issues with this (or more) amount of data, what´s not surprising, because every time you´re making a change to your query, the Query Builder tries to refresh the browser
    I think that the problem is related to too much inner joins and too many WHERE clauses with AND condition
    maybe this might add to the problem, but I´m pretty convinced that the major bottleneck is the substantial amount of records your main table has.
    Günter, can I ask you how would you manage a multilingual product catalog where the main table (products) has lots of linked details tables (color, finishing, structure...) to be translated on a number of languages?
    this is indeed a little tricky by nature, however I think that storing e.g. all the international color names in a table is too complicated, when you could simply...
    a) check the currently running language session variable
    b) define a PHP if/else condition which will "virtually" translate the stored "id_col" values, example:
    if ($_session['language'] == "uk") {
    $pattern = array("1", "2", "3", "4");
    $replace = array("red", "blue", "black"', "green");
    $colors = str_replace($pattern, $replace, $row_queryname['columnname']);
    else {
    $pattern = array("1", "2", "3", "4");
    $replace = array("rosso", "blu", "nero"', "verde");
    $colors = str_replace($pattern, $replace, $row_queryname['columnname']);
    3. later in your page "echo" the alias variable $colors, which should return different results depending on the currently active language session variable
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Replace invalid XML characters using SQL query

    Hi,
       I am populating a dataset in .net with output from sql 2005 database. One of the columns in the table is a 'varchar(max)' type. This dataset is then converted to XML using WriteXml and written to a .xml document. But due to the presence of invalid characters, this process errors out.
    Is there any way using which these invalid characters can be replaced at the database level itself when querying on the table?
    The error that is produced is as follows:
    '', hexadecimal value 0x1C, is an invalid character. Line 32201, position 924. 
    Thanks,
    Nisha

    I see,
    So we have a certain character that the XML processor does not like. What do you want to do with this character? Even if you manage to make an XML file wth this some how, you will get the same problem when another application tries to read it.
    Probably you should replace those characters before converting the values to XML.
    Another option is to put the values to the CDATA. This will be tough because the query might be little tricky. Here is an example that might help you.
    Code Snippet
    CREATE TABLE CDataTest (SomeValue NVARCHAR(50))
    INSERT INTO CDataTest (SomeValue) SELECT 'Some Value ' + CHAR(25) + 'Some OtherValue'
    SELECT * FROM CDataTest FOR XML AUTO, TYPE
    error!!!
    FOR XML could not serialize the data for node 'SomeValue' because it contains
    a character (0x0019) which is not allowed in XML. To retrieve this data using
    FOR XML, convert it to binary, varbinary or image data type and use the
    BINARY BASE64 directive.
    -- option using CDATA
    SELECT
    1
    AS Tag,
    NULL AS Parent,
    (SELECT
    SomeValue AS 'data()'
    FROM CDataTest
    FOR XML PATH('')) AS 'SomeValue!1!SomeValue!cdata'
    FROM CDataTest
    FOR XML EXPLICIT, TYPE
    <SomeValue>
    <SomeValue><![CDATA[Some Value &#x19;Some OtherValue]]></SomeValue>
    </SomeValue>

  • Kill Query (exec phase) in OCI (windows app)

    How do I stop a query from being executed thru OCI? I have a windows application
    that starts another thread to execute a query. The worker thread basically parses
    the statement, executes and then fetches. I'd like to be able to stop the worker
    thread from executing immediately. In other words, if the user decides to cancel
    the query from the main thread, I'd like the worker thread to stop execution.
    I have tried Oracle "obreak" function, but that doesn't seem to do what I want. Alter
    session to kill the session is not an option since I don't have "alter system" privileges. I have
    thought about TerminateThread, but that seems to be a little tricky since there is no chance to clean up.
    null

    At one point, there was a problem with OCIBreak on NT. I believe that if you install the latest Oracle client patchkit and the latest NT service pack, you'll find that OCIBreak will work.
    Are you running an Oracle 7 or Oracle 8 client? obreak is an OCI 7 call, so I'm not sure whether it was fixed by the same bug fix that solved the problem in the Oracle 8 code stream.
    Justin

  • Find Unmatched Query Help

    Hello
    We'd like to make a "find unmatched query" (similar to Microsoft Access); so, we created an outer join via Discoverer Administrator, and in Discoverer Desktop we tried to include a condition were only the rows with null value for a field in the outer joined table were shown.
    The problem is that Discoverer also uses "(+)" for the null condition:
    outerjoined_field(+) is null
    This is why we are not getting the expected result.
    Even if i import the sql withouth the (+) for the null condition, Discoverer adds the (+)
    Is there a way to make a "find unmatched query"? (get all the information in table A where A.ID doesn't exist in B.ID)
    Thanks in advance
    More details:
    1. Version: 9.0.2
    2. Query generated by Discoverer:
    SELECT COUNT(RTR_LKP_CLIENTE.ID_CLIENTE), COUNT(RTR_MAT_MAESTRO_POL_2.DES_POLIZA)
    FROM RTR_ADMIN.RTR_LKP_CLIENTE RTR_LKP_CLIENTE, RTR_ADMIN.RTR_MAT_MAESTRO_POL_2 RTR_MAT_MAESTRO_POL_2
    WHERE ( ( RTR_MAT_MAESTRO_POL_2.DES_POLIZA = RTR_LKP_CLIENTE.DES_POLIZA(+) ) ) AND ( RTR_LKP_CLIENTE.ID_CLIENTE(+) IS NULL ) AND ( RTR_MAT_MAESTRO_POL_2.DES_PREF_DIVISION = 'C1' )
    3. Desired query:
    SELECT COUNT(RTR_LKP_CLIENTE.ID_CLIENTE), COUNT(RTR_MAT_MAESTRO_POL_2.DES_POLIZA)
    FROM RTR_ADMIN.RTR_LKP_CLIENTE RTR_LKP_CLIENTE, RTR_ADMIN.RTR_MAT_MAESTRO_POL_2 RTR_MAT_MAESTRO_POL_2
    WHERE ( ( RTR_MAT_MAESTRO_POL_2.DES_POLIZA = RTR_LKP_CLIENTE.DES_POLIZA(+) ) ) AND ( RTR_LKP_CLIENTE.ID_CLIENTE IS NULL ) AND ( RTR_MAT_MAESTRO_POL_2.DES_PREF_DIVISION = 'C1' )

    Ok, thank you very much
    I didn't know that Discoverer used (+) only in some cases; using "field is null" is generated as "field (+) is null", but using OR is a good alternative, also using "field in (null)" worked fine, although i find it a little tricky.
    Thanks again, bye

  • Query XML data for blanks

    Hi 
    I am try to see if there are any blanks in a node of a table that has xml data in one of the columns. The query I use is returning zero results. Any suggestions?
    Select COUNT(*)from ENTITY
    Where CONVERT(XML, Ent_root_xml, 0 ).value('(//UD_PQ_FLAG/node())[1]', 'VARCHAR(50)')= ' '

    This is a little tricky. When you don't use /text(), looking for space is the right thing. But when you use /text() you should look for NULL:
    DECLARE @x TABLE (id int NOT NULL, x xml NOT NULL)
    INSERT @x (id, x)
       VALUES (1, '<ROOT><Node>This node is intentionally not left blank.</Node></ROOT>'),
              (2, '<ROOT><Node></Node></ROOT>')
    SELECT id
    FROM   @x
    CROSS  APPLY x.nodes('/ROOT') AS T(x)
    WHERE  T.x.value('(Node/text())[1]', 'varchar(23)') IS NULL
    SELECT id
    FROM   @x
    CROSS  APPLY x.nodes('/ROOT') AS T(x)
    WHERE  T.x.value('Node[1]', 'varchar(23)') = ' '
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Tricky Scenerio in AS 3.0

    Hi Guys
    I am trying to accomplish something which I think is little
    tricky for me in AS 3.0. Please help me out if you guys have any
    idea how to solve it.
    I am putting multiple instances of UILoader (containing
    videos) on the main stage and we can put them anywhere over the
    screen(free flow). I have provided 1 grid button which will arrange
    the UILoaders in a grid format. I hardcoded my program to move
    children to specific coordinates. I did not use grid becaue i don't
    want to stuck user from using free flow mode of moving UILoaders.
    So far I am successful. Now my scenerio is that suppose I have 8
    UILoaders in grid format placed 4 in one row and 4 in second row,
    and if user put 9th UILoader in 2 nd row then all the UILoaders in
    2nd row will shrink and move to accomodate 9th UIloader. And all
    the UILoaders in row 2 including 9th UILoader should be of same
    size.
    In short in any row if I put UILoader on top of already
    existed UILoader, all the UIloaders shrink symmetrically to let the
    video accommodated and placed.
    For the time being I have no idea how to target this problem.
    Any help will be highly appreciated.
    Thanks
    Anuj

    Hi James
    I have code of 1600 lines and its not possible for me to
    paste it. Actually my code is not generating any rows. On auto
    arrange I am telling myUIloader1 to go to 0,0 and myUILoader2 to go
    to 100,100 and so on..
    Actually I am interested in creating rows and if user puts
    any UILoader in between the rows then those rows shrink
    Hope that helps
    Thanks
    Anuj

  • How to make a query which gives sales tax as output

    can any body help me, I am making a report for sales tax i only want the amount of VAT & CST in the output of the query, as we are manufacturer so we charge both excise duty & Sales tax from customer, i only want the system to retrieve cst & vat amount. when i am making a query on oinv table it is giving the total tax amt as output.

    Hi
    SELECT  T0.DocNum as 'SO. No.',
    T0.DocDate as 'SO. Date',
    T2.DocNum AS 'Del.Doc.No.',
    T2.DocDate AS 'Delivery Date',
    M.DocNum as 'A/R Invoice No.',
    M.DocDate as 'Inv. Date',
    M.CardName as 'Vendor Name',
    M.NumAtCard as 'Bill No. & Date',
    ISNULL(L.ItemCode,'Service Item') as 'Item Code',
    L.Dscription,
    L.Quantity,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
    (Select Sum(LineTotal) From INV3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
    M.WTSum AS 'TDS (Rs.)',
    M.DocTotal as 'Total (Rs.)'
    FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN ODLN T2 ON T2.DocEntry = T1.TrgetEntry
    INNER JOIN DLN1 T3 on T3.DocEntry = T2.Docentry
    INNER JOIN OINV M ON M.DocEntry = T3.TrgetEntry
    LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    WHERE M.DocDate >= '[%0]'
    GROUP BY
    T0.DocNum,T0.DocDate,T2.DocNum,T2.DocDate, M.DocNum,M.DocDate,M.CardName,M.NumAtCard,L.ItemCode,L.Dscription,L.Quantity,
    M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
    ORDER BY
    T0.DocNum,T0.DocDate,T2.DocNum,T2.DocDate, M.DocNum,M.DocDate,M.CardName,M.NumAtCard,L.ItemCode,L.Dscription,L.Quantity,
    M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
    U can modify this query little bit as per ur Need
    Giri

  • Tricky specs to be followed...help needed

    Hi,
    I'm going to send out a documentary I have just edited with FCPX. it was my first "real" experience with this amazing software...
    I'm going to submit it to a docufestival which ask for a specific type of format...it seems a little tricky to me so I'm asking for you help: which steps I have to follow in order to comply with its standards?
    These are the specs:
    DCP (2K/4K).
    all DCPs to be in XYZ
    colorspace encoded in JPEG2000
    Thank you!

    Thank you! Now everything is clearer!
    there is just a little problem left...
    the software you suggested to use costs 699$ this doesn't fit my low (almost to zero) budget...
    plus I woukd be use it just once...
    do you know if there is anything cheaper or a service which can do it?
    thank you
    NP

  • I need help with iTunes 7, but its a little more complex than that

    I share a computer with my brother, which makes my situation a little trickier than usual. You see, I want to install the new version of iTunes, but when the setup was done, and it as ready to install, an error occured. I forget the number of the error but it said that I had not given it verification of ownership and that the program could not be stopped. i have a vague idea of what i have to do, i have to wipe my comp clean of iTunes and then download the new version. The problem with that is that my brother is an arrogant idiot who has little patience for anything that he doesn't understand. That's why I'm reluctant to wipe iTunes clean. I know that we can just save our iTunes library in some folder or on a disk, but it'll take me a while to get it through to him that no harm will come. That being, does anyone know how to wipe iTunes off my account only, and then install iTunes 7 on my account only. I got my iPod video for X-mas and its proven to be utterly useless so far. I really hope that one of you can assist me because otherwise, i'll have to deal with a lumbering b

    a few questions before proceeding.
    are you getting an error message? if so, what does it say? include error message numbers if you're getting any.
    or are you getting no error messages whatsoever when you try to launch itunes?
    if you're getting no error messages whatsoever, do you just see the wee hourglass for a few seconds, and then nothing? if so, do you also have Norton Internet Security 2005 installed on that PC?
    or are you seeing a brief "flash" of the itunes license screen (and then nothing)? if so, do you also see similar behavior when you try to launch your QuickTime?

  • Need help in using replace function with special characters

    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK&#39;S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, '&#39;', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    George

    george91 wrote:
    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK'S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, ''', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    GeorgeHa! The codes you specified rendered in the HTML, but showed properly when I listed your original posting above. I didn't understand what you meant initially because the 5-character string represenation got rendered as the quote that you said you weren't able to get - a display problem.
    You're getting prompted for the substituon variable because of the ampersand; you appear to be doing this in SQL*PLUS. The first thing I would try is to SET DEFINE OFF when using the ampersands to see if that works. If That doesn't work check the docs to delmit the ampersand (I think its a backslash before it but can't remember offhand). Another, harder option might be to use the TRANSLATE function replacing the literal character instead of using REPLACE (though replacing a quote will be a little tricky). If you're on 10g also consider using the advanced quoting
    Good luck!
    Edited by: riedelme on May 22, 2009 12:45 PM

  • Bex Report with and without BIA . . Fails with a dump EXPORT_TOO_MUCH_DATA

    Hi Folks,
    We have a report thats has been running well in production for more about 18 months. This month it did not complete execution.
    We did implement BIA couple of 4 months back and the run times have drastically reduced after the BIA. Now this query execution results in a Dump with and without BIA.  FYI the underlying cube has 195,876,020 records only.
    Name of Runtime error: EXPORT_TOO_MUCH_DATA
    Short text:     Too much data for export.
    What happened?     Runtime error
        The current ABAP program "CL_RSR_CACHE_DO_SPID==========CP" had to be
         terminated because one     of the statements could not be executed at runtime.
    Error analysis: The dataset stored under an EXPORT/IMPORT ID is restricted
    by
    1. The maximum possible size of 2 GB
    2. The length of a data record and the capacity of the sequence counter. This error occurs only if the capacity of the
    sequence counter does not go beyond 255.
    Source Code Extract:
        1 METHOD if_rsr_cache_data_object~get_xstring.
        2
        3   FIELD-SYMBOLS:
        4     <l_xstring>            TYPE xstring,
        5     <l_sp>                 TYPE ANY,
        6     <l_spinfo>             TYPE ANY.
        7
        8   CREATE DATA r_r_xstring.
        9   ASSIGN r_r_xstring->* TO <l_xstring>.
       10   ASSIGN n_s_spid-r_sp->*     TO <l_sp>.
       11   ASSIGN n_s_spid-r_spinfo->* TO <l_spinfo>.
       12
       13 *... Sp has to be the first component
    >>>>>   EXPORT sp = <l_sp> spinfo = <l_spinfo>
       15          TO DATA BUFFER <l_xstring> COMPRESSION ON.
       16
       17 ENDMETHOD.
    Referred to the below note 0001232573
    which says to have 'RSRCACHE_ITAB_COMPR'  parameter using report SAP_RSADMIN_MAINTAIN
    Note say the below (It might be a little tricky, to find an appropriate value for 'RSRCACHE_ITAB_COMPR' as it heavily depends on the query-specific data structures that are stored in the cache. The general recommendation would be to start with a value of about 5000. Test this with a query, that dumped previously. In case the dump persists reoccurs, reduce the value of the parameter significantly. Otherwise, if no dump occurs but you face noticeably longer runtimes, increase the parameter.)
    We are trying not able to get to the right parameter value. (changed it from 5000, 4000, 3000, & 1000) without much  help.  Did any of you had to change this parameter. How low or High can this parameter be changed?
    We would like to understand if changing any other parameters would help in RSADMIN table would help?
    Any thoughts from the experts would be appreciated
    Thanks,
    FHF

    Hi,
    Are you running the report for all the selections(all the data )?
    execute the report with data selection and check?
    Is the data in the Ic - compressed?
    Regards
    KP

Maybe you are looking for