Unable to write more than 10 case statements in an object in designer

unable to write more than 10 case statements in an object in designer
XI 3.0 and XI 3.1
Please let me know, any known issues.

Hi,
yes this is the limitation you cant write more that 10 case statments but you can reduce the number of time you use the case in your object.
For ex:
If you are writing few conditions on one field then you can add the login in one case only.
case when SAL between 100 and 1000 then 'lowsal'
        when SAL between 1000 and 2000 then 'medsal'
        when sal between 2000 and 3000 then highsal
else
case when ...then ....
else
end
end
by following the above ex you can solve your problem.
But if you are writing case statement based on dofferent columns then write 10 case statements and remaining conditions you can add at the report level.
using if else condition.
Hope this will help you....
Cheers,
Ravichandra

Similar Messages

  • BufferedReader does not reset stream, unable to write more than one

    Hi,
    The following is a program that tries to read a file and write into 10 files.
    I am using bufferedReader.reset() to get to the starting position of the stream, but unfotunately it says mark not supported .
    Can anyone please tell me , why the stream does not reset, and do I have to close and then again reopen the input reader to write multiple times. Are there any other alternatives?
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class TestFile {
         public static void main(String args[]) {
              try {               
                                  FileReader fr = new FileReader("testinput.txt");
                   BufferedReader br = new BufferedReader(fr);
                   BufferedWriter out = null;                  
                   String line = null;
                   String name = "testoutput";
                   FileWriter fw = null;
                   for(int i=0;i<10;i++){     
                        String fname = name + i + ".txt";
                         fw = new FileWriter(fname ,false);
                         out = new BufferedWriter(fw);                    
                        while((line = br.readLine())!= null){
                             out.write(line);                         
                        out.close();
                        if(br.markSupported()){
                             br.reset();
              } catch (FileNotFoundException fnf) {
                   fnf.printStackTrace();
              } catch (IOException e) {               
                   e.printStackTrace();
    }Exception
    java.io.IOException: Stream not marked
         at java.io.BufferedReader.reset(BufferedReader.java:485)
         at TestFile.main(TestFile.java:30)

    but unfotunately it says mark not supported No it doesn't. It says
    java.io.IOException: Stream not marked
    No where in that code are you calling the method "mark" to set a mark and the API for reset says:
    Reset the stream to the most recent mark.And it says it throws an IOException
    If the stream has never been marked, or if the mark has been invalidated.

  • Is it possible to run more than one case at a time?

    Using a case structure, is it possible to have more than 1 case running at a time? I'm currently using a for loop's iteration terminal to select which case to run but each case contains a for loop with a timer delay. I want them all to run simultaneously somehow..?
    Maybe possible using a different type of loop?
    Thanks for any help.
    Rob

    > Using a case structure, is it possible to have more than 1 case
    > running at a time? I'm currently using a for loop's iteration terminal
    > to select which case to run but each case contains a for loop with a
    > timer delay. I want them all to run simultaneously somehow..?
    > Maybe possible using a different type of loop?
    >
    If it did this, we'd consider it a bug. By design, only one diagram of
    a case is supposed to run, the one the selector specifies. If you want
    them to run in parallel, put the contents into separate case statements
    and use a Boolean to either run or skip the code.
    For example, if you have cases run whenever their bit is set in an
    integer, then you would have cases for bit 0, 1, 2, and 3. Instead of
    putting them in one case, make fo
    ur cases. Put the AND logic in front
    of each for ANDing with 1, 2, 4, and 8, and wire the output Boolean to
    the case structure. Now take i and wire it to the logic. The 0 diagram
    will run on odd numbers, etc.
    Greg McKaskle

  • How to multiple/ parellal sets of books to generate more than one financial statement based on different (or the same) accounting principles.

    How to multiple/ parallel sets of books to generate more than one financial statement based on different (or the same) accounting principles.
    My Client needs Parallel Ledger in SAP B1 similar like SAP ECC. Is this functionality available ?

    Dear Mr. Nagrajan,
    Thank you for your response. I have already gone through documents but not able to understand. Is there any setup for this ? or its just work around i.e. using template and special field in JV i.e. Ref. 1 /2
    My doubts :
    I understand that Chart of Account structure is one and common for IFRS and other accounting method. We need to create only those account separately ( 2 times with prefix like IFRS revenue account, GAAP Revenue account).
    Now at time of entry, Assume some entries / adjustment are specifically for IFRS and not for other ledger. In this case, What need to do ?
    You have mentioned about DTW approach but do we need to insert all JV's again with other ledger ?
    Someone suggested that if any entry which are specific to IFRS Ledger, We need to user Ref.1 /2 column or Transcation code column and in which we can put IFRS
    Based on this, Need to create 2 seperate template for IFRS and other ledger for all report.
    This is my understanding of Solution in SAP B1. Please help me to clarify my though process
    Please do needful.If you have done implemenation and if you can share doucment, it would be great help.
    Email :[email protected]

  • When I read a pdf document using Safari I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    When I read a pdf document using Safari on my IPad  I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    Hi snoreaustralia,
    It sounds like you just need to associate the PDF filename extension with Acrobat, rather than Preview. Please see this document from the Microsoft Help for instructions on choosing the default program for opening a particular file type (in your case, PDF): Change which programs Windows uses by default - Windows Help
    Best,
    Sara

  • Can't open mail on Facebook, can't write more than 2 lines in the status on Facebook and there are no "older posts" showing on Facebook

    This is regarding Facebook: I can no longer open mailbox to receive or send. The result is a white page with the Facebook index on the left. I can no longer write more than 2 lines in status updates. Lastly, the "older posts" that is usually at the bottom of the page is no longer there. Incidentally, all these things work in IE. There's nothing in Facebook referring to these issues except to say it doesn't support Firefox 3.6.8.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Enter the name of the crashed application or process (Finder) in the Filter text field. Post the messages from the time of the last crash, if any — the text, please, not a screenshot.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Unable to sync more than one song at a time

    Hello,
    I am unable to add more than 1 song at a time to my iPhone. Previously I was able to add some music by drag and dropping a whole playlist of about 15 songs. However, now when I drag and drop a playlist to the iPhone section in iTunes, iTunes and the phone identify that its syncing for a second or two and then it stops. The playlist shows up on the iPhone, but no songs are in it...I can only add 1 song at a time. I have tried multiple usb ports on my computer and I also tried using msconfig and disabling all 3rd party services per this article http://docs.info.apple.com/article.html?artnum=302538
    Still the same result. Please help.
    Thanks

    Did you by any chance uncheck the the boxes beside any or all of the songs in the library? Unchecked songs won't play in a playlist or the library unless you select them individually: iTunes: Understanding the Symbols Next to Songs
    Holding down the Control key and clicking the checkbox next to a song in the library or a playlist will toggle the marks for all the songs on or off: : iTunes 7 Keyboard Shortcuts for Windows

  • Case structure with more than 200 cases, slower lab view app

    Problem Description :
    i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
    i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
    vi with more cases in a case structure)
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
    Could you attach the actual VI?
     Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
    (On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
    LabVIEW Champion . Do more with less code and in less time .

  • Printing BUT unable to print more than one copy

    When printing, I'm unable to print more than one copy

    Still need help, I want more than one print of one picture in a set.

  • Writing all the rows in one line but cannot write more than 32767 character

    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /

    user577300 wrote:
    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /Check your logic very carefully. You are using UTL_FILE.PUT() which should not automatically put end-of-line characters i n your file but you are reassigning l_seperator with p_seprator after the first time.
    What value are you pasising in as p_seperator?
    UTL_FILE.PUT() should allow you to write a string of bytes without newlines as long as its arguments are less than 32K, and you can control when the newlines get written. If your arguments are > 32K can you split them up without writing the newlines until you need to do so? Try something like (untested)
    --         UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE,1,32767));
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE),32767*2-1,32767));Edited by: riedelme on Sep 10, 2012 6:11 AM

  • Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild)

    Query on a table runs more than 45mins(after stats) and same query runs 19secs(before stats - rebuild) - Not sure what the cause is.
    - Analysed the explain the plan
    - different explain plan used afterr stats gather.
    Any idea what could be the cause with this kind of difference.
    Thank you!

    What is the difference you see in the explain plan ? Where it spends most time. All these needs to be analysed.

  • Can we write more than one routing rule in a RS?

    Can we write more than one routing rule in a RS?

    You can specify multiple routing rules for a single operation of a routing service. If no filter is applied, they are all executed. For routing rules with filters, only the target operations for which the filter condition holds are invoked. Priority is based on the order in which they appear in the routing rules window.
    Ronald

  • Short dump when we write more than 4 routines or formulas 4 one source fld

    Hi Experts ,
    We have one source field in a DSO which supplies data to 9 other characteristics present in the cube via formulas. But the system throws a short dump when we write more than 4 routines or formulas.
    Please let us know if there is any restriction in BI 7 as to let only 4 formulas to be written for one source field.
    The below is the description of the short dump
    RUNTIME ERROR : SAP SQL_ARRAY_INSERT_DUPREC
    EXCEPTION : CX_SY_OPEN_SQL_DB
    Help done would be assigned points ...
    Thanks,
    Santosh ...

    Hi,
    thanks for your input
    Rd, rt,re and rs are ranges.
    Select ranges
      RANGES: rd FOR ZMOBILEDATA-COMPID,
              rs FOR ZMOBILEDATA-SUBSCRIBERS,
              rt FOR ZMOBILEDATA-TURNOVER,
              re FOR ZMOBILEDATA-ENTRYDATE.
    thanks'

  • How can I write more than 32k file in oracle directory

    Hi experts,
    I am struggling while I write more than 32k file size in oracle directory, and throws an error ‘ORA-06502: PL/SQL: numeric or value error, like this.
    This is my procedure
    declare
    l_s_filename   UTL_FILE.file_type;
    begin
       l_s_filename := UTL_FILE.fopen ('INFO_MIGRATION', 'finfinne.txt', 'W');
    FOR rec
          IN ( SELECT SQL_REDO
                  FROM V$LOGMNR_CONTENTS
                 WHERE seg_owner <> 'SYS' AND username = 'GENTEST'
                 AND TABLE_NAME NOT LIKE '%_TEMP'
                       AND OPERATION IN ('UPDATE','INSERT','DELETE')
              ORDER BY TIMESTAMP)
       LOOP
          UTL_FILE.put_line (l_s_filename, rec.SQL_REDO);
       END LOOP;
       UTL_FILE.fclose (l_s_filename);
    end;can any please help me how can I overcome this problem
    Thanks,
    Arun

    You can write by breaking it into small chunks. Also you can try to use DBMS_XSLPROCESSOR.CLOB2FILE. For UTL_FILE the code snippets may looks like
    -- Read chunks of the CLOB and write them to the file
    -- until complete.
       WHILE l_pos < l_blob_len
       LOOP
          DBMS_LOB.READ (rec.l_clob, l_amount, l_pos, l_buffer);
          UTL_FILE.put_line (l_file, l_buffer, FALSE);
          l_pos := l_pos + l_amount;
       END LOOP;

  • BUG?  ViewObject contains more than one Row with equal Key objects

    JDeveloper 10.1.2.1 build 1913
    JClient app
    aView
    ----bView
    --------cView
    ------------dView
    BEFORE:
    cView's detail row set contains two dViewRowImpl rows, as expected:
    row 0: key = 100
    row 1: key = 101
    ACTION:
    An attribute, X, in dView is modified by the user, which results in a call to setX in dViewRowImpl.
    In setX we have:
    1) setAttributeInternal for X
    2) transaction.postChanges
    3) a call to a procedure in the database to update dependent fields in the same row
    4) clearEntityCache on the primary entity of dView
    5) setAttributeInternal on a calculated attribute
    AFTER:
    cView's detail row set contains three dViewRowImpl rows, two of which have the same primary key:
    actual:
    row 0: key = 100
    row 1: key = 101
    row 2: key = 101
    expected (no change, and unique primary keys):
    row 0: key = 100
    row 1: key = 101
    Any clues appreciated.

    If your procedure modifies only the current row, or predetermined rows, you can
    // see Row.refresh
    transaction.postChanges();
    // refresh current row
    refresh(REFRESH_WITH_DB_FORGET_CHANGES);
    // or iterate over procedure-modified rows and refresh eachas an alternative to clearEntityCache. This alternative has the major benefit of not resetting currency in all ViewObjects touched by the cleared Entity. Luckily, this alternative has avoided the problem for us. If your code cannot predict which rows will be updated by your procedure, then you're still in trouble since JBO is apparently more than willing to insert duplicate Row objects into a ViewObject's RowSet after a clearEntityCache.

Maybe you are looking for