Repeating char  in qury output

I have created query on a cube,see cube is at aggregated level andso we may get multiple values for a char A and that is right for the reason of key fields value differ.
How to avoid such kind of probs for characteristics.
We know the option to avoid the same in keyfigures by creating exception aggregation.
Dont reply with the option of deselecting hiding the repeated key values.
Experts can understand the prob here.
thanks all,
shana

Yeah it is clear visible that, the same combination might have available in different plants.
So to avoid the duplicate entries, always select all the primary key fields available in all the tables in the output.
If not atleast try restricting based on plant in the selection screen or any possible duplicate entreis.
So add the key fields at Infoset level in SQ02

Similar Messages

  • Creating a String with repeated chars

    Is there a way to create a String with N repeated chars without using a loop?
    I want to create something like "aaaaaaaaaa" without having to do:
        StringBuffer s = new StringBuffer();
        for(int i = 0; i< 10; i++){
          s.append("a");
        }

    Ahh, Groovy.
    #! /usr/bin/groovy
    s = 'a' * 10
    assert s == 'aaaaaaaaaa'http://groovy.codehaus.org/
    :o)

  • Nested Tables Repeat Header Row RTF Output Not Working v5.6.2(PDF does)

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

  • Write (char)147 to output file become (char)63 when read.

    Hi,
    I was doing an encryption for my assignment. And here I found a problem.
                   FileWriter fstream = new FileWriter("output.out");
                   BufferedWriter dos = new BufferedWriter(fstream);
    dos.write((char)147);
    dos.close(); fstream.close();
    When I tried to read the output.out file using this function:
                   File inputFile = new File(filename);
                   FileInputStream fis = new FileInputStream(inputFile);
                   BufferedInputStream bis = new BufferedInputStream(fis);
                   BufferedReader dis = new BufferedReader(new InputStreamReader(bis));
    char test = dis.read();
    dis.close(); bis.close(); fis.close();
    It shows that the test character is representing (char)63 (question mark). Any idea on how to solve this? I want to write (char)147 to the file and read it as (char)147, not as (char)63.
    Thanks in advance,
    Dennis A.

    dennis_lin007 wrote:
    Ok thanks a lot!!
    I'm using RSA encryption, and if the mod is > 255, there are probabilities that its result may contain a value greater than 255. The implication of this is that you are encrypting byte-by-byte which does not make sense. Assuming that you are writing the RSA code from scratch and not using the JCE then consider using BigInteger. BigInteger has all the ancillary methods you will need to implement RSA.

  • How to repeat rows based on column value

    Hi all,
    I have a query that gives me a result with a column value for example 4.
    I now want to repeat this row 4 times with a new column that calculated from 1 - 4.
    Or when column value is 3 I want to repeat row 3 times with new column name 1-3
    Can anyone help me with this please? :)

    Hi Yvanlathem,
    To achieve your requirement, you can reference the recursive approach as below.
    DECLARE @T TABLE(Col1 CHAR(1),Col2 INT)
    INSERT INTO @T VALUES('A',1),('B',2),('C',3)
    ;WITH Cte([Char],[Repeat]) AS
    SELECT Col1,Col2 FROM @T
    UNION ALL
    SELECT [Char],[Repeat]-1 FROM Cte
    WHERE [Repeat]>1
    SELECT * FROM Cte ORDER BY [Char],[Repeat]
    OPTION(MAXRECURSION 0)
    /* Output
    Char Repeat
    A 1
    B 1
    B 2
    C 1
    C 2
    C 3
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Bluetooth keyboard K810 and mouse T630 at the same time, repeating keys and mouse starts to stutter

    I use a Lenovo Thinkpad Tablet 2, Windows 8.1(core edition), x86 (32bit).
    If I pair a Bluetooth keyboard K810 and mouse T630 at the same time, with Wifi On, the keyboard starts repeating the keys and the mouse starts to stutter. Especially if WiFi is under load (when downloading something).
    This doesn’t happens if I pair only the keyboard, or if I pair mouse and keyboard with Wifi OFF.
    If I pair a Bluetooth keyboard and use a USB mouse with Wifi ON, everything works fine.
    If I pair a Bluetooth mouse and use a USB keyboard with Wifi ON, everything works fine.
    I think it is an issue with two Bluetooth devices paired at the same time with Wifi ON.
    So here is a summary:
    BT mouse and BT keyboard / Wifi ON ----> repeating chars and the mouse starts to stutter (bug)
    BT mouse and BT keyboard / Wifi OFF ----> works fine
    Only BT keyboard / Wifi ON ----> works fine
    Only BT mouse / Wifi ON ----> works fine
    USB mouse and BT keyboard / Wifi ON ----> works fine
    USB keyboard and BT mouse / Wifi ON ----> works fine
    Where is the problem? Is there any solution?
    Solved!
    Go to Solution.

    I have solved the problem. In the Wlan-Drives-Settings there is the "Bluetooth Collaboration" option. I put the value to "Disable" and now works everything like charm.
    Best regards, jC
    Broadcom manual:
    Bluetooth Collaboration
    Bluetooth Collaboration enables general purpose input/output transmit suppression protocol between the IEEE 802.11 media access control (MAC) and an external Bluetooth chip to minimize transmit interference. Bluetooth Collaboration is enabled by default.

  • Report Output for Currency Field--EKBE-WRBTR

    Hello ABAP Experts
    Since the Issue is related with Related Report output. Thought ABAP General Forum would be right place to post.
    If not Suggest an appropriate forum for the same. I shall post them in Correct Forum.
    Currently the report display Currency value From EKBE- WRBTR field
    Actual Record Stored in EKBE is like this
    0,00
    400,00
    1.600,00
    client requirement is
    0, 00
    400,00
    1600, 00
    Option-1
    I have tried option for conversion to CHAR & printing in Output, the issue I face is when I export to Excel I am getting an ABAP Error CONVT_NO_NUMBER(Short Dump)-This dump is due to conversion while exporting to excel.
    Option-2(from SDN)
    Give a logic based on T005 table i.e. this table has the decimal place setting for a each country (this I need to Verify)u2014But the I fear that report output can be confusing.
    Expecting all your expert inputs!!
    BR
    Bharath

    Hi Bharat,
    You can set it using user--profile I guess.
    For own data go to
    system>user profile>own data---> defaults.
    There you can select the currency format.
    Hope this helps you.
    Thanks,
    Arun

  • HOw Do I count and identify the number of groups in a groups output.

    I have a query that reads like this..
    SELECT s.spec_Sort,s.spec_ID, s.spec_Name, b.bus_Name,
    b.bus_ID
    FROM (tbl_businesses as b INNER JOIN tbl_SpecBusRel as sb ON
    b.bus_ID = sb.specbus_busid) INNER JOIN tbl_specialties as s ON
    sb.specbus_specid = s.spec_ID
    ORDER BY s.spec_Sort, b.bus_Name
    and then I am outputing like this...
    <cfoutput query="rsGetSpecialties" group="spec_Name">
    <cfif THIS IS WHAT I
    NEED)></td><td></cfif>
    <h2><a class="specialty" href="javascript;"
    onclick="dwfaq_ToggleOMaticDisplay(this,'#spec_ID#');return
    document.MM_returnValue">#spec_Name#</a></h2>
    <div id="#spec_ID#" style="display:none">
    <cfoutput><p><a
    href="#request.details#?bus_ID=#bus_ID#">#bus_Name#</a></p></cfoutput>
    </div>
    </cfoutput>
    This displays in this manner...
    Specialty
    dealer
    Specialty
    dealer1
    dealer2
    Etc...
    What I am trying to do is find out how many specialties there
    are, figure out where the middle is so I can insert a new table
    data cell and start a new column.
    Basically - two columns with the data divided in half by
    specialty NOT by the number of dealers.
    I hope that makes sense. Of course I am trying to do it w/ as
    little query action as possible. My only solution may be to have
    more than one query and the second only finds a list of the
    sepcialties that contain the dealers and then find the middle one
    and simply say if current specialty = middleSpecialty then start a
    new column.
    Thanks all,
    Chris

    Thanks for the replies. I don't need the number of occurances
    of each specialties - I simply need to know how many specialties
    there are and then split them in half.
    This may be the long way around -but it is what I did...
    <cfquery name="rsGetSpecialties" >
    SELECT s.spec_Sort,s.spec_ID, s.spec_Name, b.bus_Name,
    b.bus_ID, b.bus_Pcity, b.bus_PState
    FROM (tbl_businesses as b INNER JOIN tbl_SpecBusRel as sb ON
    b.bus_ID = sb.specbus_busid) INNER JOIN tbl_specialties as s ON
    sb.specbus_specid = s.spec_ID
    ORDER BY s.spec_Sort, b.bus_Name
    </cfquery>
    <cfset specs = valuelist(rsGetSpecialties.spec_ID)>
    <cfquery name="rsListSpecialties">
    SELECT spec_ID,spec_Name
    FROM tbl_specialties
    WHERE spec_ID in(#specs#)
    ORDER BY spec_Name
    </cfquery>
    <cfset middle = int(rsListSpecialties.recordcount/2)>
    <cfset specs = valuelist(rsListSpecialties.spec_Name)>
    <cfset middle = listgetat(#specs#,middle)>
    then displayed like this...
    <td valign="top" width="50%">
    <cfoutput query="rsGetSpecialties" group="spec_Name">
    <h2><a class="specialty" href="javascript;"
    onclick="dwfaq_ToggleOMaticDisplay(this,'#spec_ID#');return
    document.MM_returnValue">#spec_Name#</a></h2>
    <div id="#spec_ID#" style="display:none">
    <cfoutput><a
    href="#request.details#?bus_ID=#bus_ID#">#bus_Name#
    (#bus_PCity#, #bus_PState#)</a><br /></cfoutput>
    </div>
    *****This is the line that does the splitting *****
    <cfif spec_Name EQ middle></td><td
    valign="top" width="50%"></cfif>
    </cfoutput>
    </td>
    As for removing the extraneous cfoutput --> I thought that
    I needed that in order to show the material within the grouped
    data. HOw does CF know what data to repeat and what data to not
    repeat in a grouped output? I will have to look this one up some
    more.
    thanks for the help

  • Multiple Input and Output from a 6534

    Hello
    I am after some advice regarding my PCI 6543 digital I/O card and the best way to achieve my desired results. I am programming in Visual C++ with Ni-DAQ 7.
    I want to generate a pattern output from one of the ports, Port A, following a software command. This pattern consists of a 10uS pulse on DIOA0, that repeats 200 times with a period of 100uS. I want this DIOA0 output line to initiate an input on ports C and D, possibly through the REQ pin. Consequently the input should acquire 200 times for each call to the pattern output.
    I want this to repeat, so the pattern output goes again (as in a FOR loop), and the input occurs again for an as yet undetermined number of times.
    I have managed to get something worki
    ng for 1 iteration, and I can generate multiple pattern outputs, but the inputs only seem to acquire for the 1st iteration. However, if I step through the code in debug mode I can get the input to work correctly.
    Any ideas would be gratefully appreciated.
    I am still trying to get some earlier problems with this application solved.
    Kind Regards
    Jamie

    Hi Jamie,
    There are a couple different ways you can loop from a buffer. You can either use the onboard memory of the 6534 and loop from there or you can specify as a software configuration that the board loop through the PC memory buffer.
    For the onboard looping you need to specify the following:
    iStatus = Set_DAQ_Device_Info (1, ND_PATTERN_GENERATION_LOOP_ENABLE, ND_ON);
    For software, PC memory looping, the following function specifies this:
    iStatus = DIG_DB_Config (iDevice, iGroup, 1, 0, 1);
    I attached a couple programs that might be of use. Check this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008BA10000&USEARCHCONTEXT_CATEGORY_0=_31_%24_12_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_31_%24_1
    2_&UCATEGORY_S=0
    Hope that helps. Have a good day.
    Ron

  • Documaker : How to set the overflow repeated 3 times always.

    Hi Experts,
    I have 3 forms as follows.
    1. FormA (contains Subform1)
    2. Subform1 (contains Subform2)
    3. Subform2
    Subform1 on FormA is setting the overflow with the trigger by the XML.
    Search Mask (counter) : !/xxx/data/Repeats/Repeat
    I want to output always 3 times Subform2 on Subform1.
    I tried to set the trigger "ALWAYS" and '3' at "Records per overflow Section", but the setting is not working.
    Can I set to repeat the number of times that I specify always?
    Thanks,

    Hi,
    Here's one option:
    1. Create a new DAL script called "REPEAT_3_TIMES" and add it to your existing DAL library. The DAL SCRIPT should consist of one line: "RETURN(3);"
    2. Add a single trigger (yellow) on Subform2 and change the trigger name from "ALWAYS" to "REPEAT_3_TIMES", the name of the DAL script you just created.
    3. Check-in your changes and run a unit test to see that Subform2 repeats exactly 3 times for every occurrence of Subform1.
    Good luck and let me know (if)/how it works out!
    Edited by: 1003412 on Apr 30, 2013 2:09 PM

  • DOUBT IN REPEATING FRAMES

    IN MY REPORT I AM CREATING 2 QUERIES,1 THROUGH LAYOUT.
    AND 2ND QUERY IN DATA MODEL.I USED REPEATING FRAMES FOR THE 2ND QUERY BUT WHEN I RUN MY REPORT I CANNOT VIEW THE REPEATING FRAMES IN MY OUTPUT.PLS HELP ME TO SOLVE THIS PROBLEM.

    You have to ask it in other forum related to Applicaton topic my friend.
    Joel P�rez

  • FileInputStream's read() outputs differently when not stored in a variable

    Here's my original code:
    import java.io.*;
    class ShowFile {
         public static void main(String[] args)
         throws IOException{
              FileInputStream fin = new FileInputStream(args[0]);
              int i;
              do {
                   i = fin.read();
                   if (i != -1) System.out.print((char) fin.read());
              }while (i != -1);
    }When i do a "java ShowFile test.txt", it outputs characters that's not the same as the ones in test.txt.
    But when I changed the code
    if (i != -1) System.out.print((char) fin.read()); to if (i != -1) System.out.print((char) i); everything outputs fine. Why is that?

    ajushi wrote:
    Thanks laginimaineb.You're welcome.
    ajushi wrote:
    So when I assign the resulting value from read(), is read() called? Is that the reason why I'm reading 2 chars per loop?Exactly, when you "assign the resulting value from read()" you actually call read, it performs what it needs to, and it returns some value, which you then use.
    laginimaineb.

  • Looping part of 6534 output buffer

    I need to loop a 16 bit output pattern that is only 1000 samples long. I want to loop this continuously but do not want to have to fill the buffer completely. Is it possible to loop only these 1000 samples in the buffer?

    Coxy,
    Yes, this is definitely possible. You don't need to fill the board's memory to perform onboard looping. Below, I have included links to a couple of example programs that you may want to examine:
    LabVIEW Example
    Continuously Generating Repeat Data from Digital Output Channels (Loop From Onboard Memory)
    NI-DAQ Function Calls Example
    Pattern Generation with Onboard Looping for the NI 6534 and C++
    Good luck with your application.
    Spencer S.

  • Editable ALV- I need to increase curr to be 12 chars from 8 chars in o/p.

    I am getting problem in Editable ALV, I wanted to increase the currency field from 8 chars to 12 chars at the output.
    But after the output i am able to enter only eight chars.
    I want '123456789012'  but i am able to put only '12345678'.
    Plz have alook.

    hi !
    check the length of field in your data declaration
    you can set the length of o/p field in alv for that just check
    intlen or outputlen in fieldcat
    but by using these you can not update these in your internal table b'coz of your type declaration for that field

  • Char conversion problem

    Hi all
    in the following query:
    select to_date('31-JUL-12', 'dd-MON-yy') res from dual;we have error:
    ORA-01843: not a valid month
    01843. 00000 -  "not a valid month"
    *Cause:   
    *Action:...this is the first strange error/for me :) /...
    After this conversion - i want to convert it to char.
    Expected output:
    2012/07/31 00:00:00Any ideas?
    Version: 11g
    Thanks in advance,
    Bahchevanov.

    bahchevanov wrote:
    Hi all
    in the following query:
    select to_date('31-JUL-12', 'dd-MON-yy') res from dual;we have error:
    ORA-01843: not a valid month
    01843. 00000 -  "not a valid month"
    *Cause:   
    *Action:...this is the first strange error/for me :) /...
    After this conversion - i want to convert it to char.
    Expected output:
    2012/07/31 00:00:00Any ideas?
    Version: 11g
    Thanks in advance,
    Bahchevanov.post results from following SQL
    select to_char(sysdate-1,'YYYY-MON-DD') FROM DUAL;

Maybe you are looking for

  • Creating 'app' launcher?

    I use Synapse to launch all my programs in Awesome WM... my question is, can I make a link or something, so that I can just type 'mail' into Synapse, and that will launch Google Chrome as an app with gmail as the url? Basically, the command I'd like

  • Annoying sound settings...

    Hello people, I've been mostly using my speakers on my iBook, but I've been recently using headphones to listen to what ever I'm using my iBook for. It seems that everytime I reboot my computer or even when I don't sometimes, I always have to rebalan

  • Dependent requirements distribution via Operations time

    Good Day SAP expert! Can we set up the system (Distribution key) so that Dependent requirements distribution will be based on Operations time instead of just Order start date and Order finish date and spread evenly? For example, my planned order star

  • Airplay Video quality and buffering

    I'm new to apple TV and am trying to watch my home movies (holidays etc) over airpay. However, I've found that if I try to watch in Full HD there's a considerable amount of buffering (2-3 mins) before the movie will start to play, and if I skip if bu

  • How can I set my computer to not go blank when I am trying to read on adobe digital editions???

    I have a windows 7 computer. And I do not remember how to set my programing to stop shutting down the display every 20 seconds or so. So I Must be going senile or something.