Summing multiple time

I've got a query that looks like this
SELECT C.NAME CUSNAME, E.FIRST_NAME||' '||E.LAST_NAME SALESPERSON, SUM(S.TOTAL) SALES, R.DESCRIPTION PRODUCTDES,
(R.VALUE/SUM(S.TOTAL))*100 TOTAL
FROM ITEM I, SALES_ORDER S, CUSTOMER C, employee e,
(SELECT * FROM (select S.CUSTOMER_ID, P.DESCRIPTION, SUM(I.TOTAL) VALUE,
ROW_NUMBER() over (partition by S.CUSTOMER_ID ORDER BY SUM(I.TOTAL) DESC) AS RN
FROM ITEM I, SALES_ORDER S, PRODUCT P
WHERE P.PRODUCT_ID = I.PRODUCT_ID
AND S.ORDER_ID = I.ORDER_ID
GROUP BY
S.CUSTOMER_ID,P.DESCRIPTION) WHERE RN = 1) R
WHERE S.ORDER_ID = I.ORDER_ID AND C.CUSTOMER_ID = S.CUSTOMER_ID AND E.EMPLOYEE_ID = C.SALESPERSON_ID
AND R.CUSTOMER_ID = S.CUSTOMER_ID
group by c.name, e.first_name, e.last_name, r.description, r.value;
Every thing is fine in it apart from the fact that the Sum(s.total) in the first line returns a value that is 4 times the value it should be. I don't know why this is, it must be entering the same table 4 times. Can anyone solve this problem.

You could put your text between [ pre ] and [ / pre ] in order to preserve the format.
Something like below.
SELECT C.NAME CUSNAME,
       E.FIRST_NAME||' '||E.LAST_NAME SALESPERSON,
       SUM(S.TOTAL) SALES,
       R.DESCRIPTION PRODUCTDES,
       (R.VALUE/SUM(S.TOTAL))*100 TOTAL
FROM ITEM I,
     SALES_ORDER S,
     CUSTOMER C,
     employee e,
     (SELECT * FROM
         (select S.CUSTOMER_ID,
                 P.DESCRIPTION,
                 SUM(I.TOTAL) VALUE,
                 ROW_NUMBER() over (partition by S.CUSTOMER_ID ORDER BY SUM(I.TOTAL) DESC) AS RN
          FROM ITEM I,
               SALES_ORDER S,
               PRODUCT P
          WHERE P.PRODUCT_ID = I.PRODUCT_ID
          AND S.ORDER_ID = I.ORDER_ID
          GROUP BY S.CUSTOMER_ID,
                   P.DESCRIPTION
      WHERE RN = 1
     ) R
WHERE S.ORDER_ID = I.ORDER_ID
AND C.CUSTOMER_ID = S.CUSTOMER_ID
AND E.EMPLOYEE_ID = C.SALESPERSON_ID
AND R.CUSTOMER_ID = S.CUSTOMER_ID
group by c.name,
         e.first_name,
         e.last_name,
         r.description,
         r.value;

Similar Messages

  • Unable to filter the data for multiple time selections by dimensions

    Hi to all,
    I am new in MDX, i have a problem with my MDX query.
    Calculated Member Logic:
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember),[Measures].[Paid Amt])
    Mdx Logic EX:
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Date].[YQMD].[Year].members On Rows
    From [Financial]
    If i select multiple time periods in Rows, the query working fine.
    but if select multiple periods in where clause it is not responding.
    With Member [MEASURES].[Received_Amount]
    AS
    SUM((OPENINGPERIOD([Date].[YQMD].[Year],[Date].[YQMD].[Month].&[2010-12-01T00:00:00]):[Date].[YQMD].Currentmember)
    ,[Measures].[Paid Amt])
    SELECT {[MEASURES].[Received_Amount]} On Columns
    ,[Speciality].[Specialty Name].[Specialty Name].members On Rows
    From [Financial]
    Where {[Date].[YQMD].[Year].&[2012-01-01T00:00:00],[Date].[YQMD].[Year].&[2013-01-01T00:00:00]}
    Note:
    Each of them is considered from the minimum date in the database to the selected time.
    And also the data has to be filtered with respect to each drill down dimension.
    If select multiple time periods the same formula has to be applied with respect to the dimensions.
    Kindly help me to get out of this problem
    Best Regards,
    Nagendra

    Hi David,
    Thanks for your response.
    I have a measure, i have to get received_amount in the database from the database starting period to my selection period. Later i have to check by dimensions using same measure. if i select any one period by dimension it's coming, but if i select multiple
    periods in filter level by dimensions it's showing no records.
    For Ex: 
    I have four years data in my database (2010-2013).
    In 2010
    Bill_Amt
    Bill_Date  
    Specialty received_amount
    1000
    10/01/2010 4
    600
    2000
    04/08/2010 2
    1000
    In 2013
    Bill_Amt
    Bill_Date Specialty
    received_amount
    1500
    22/02/2013 2
    1200
    2000
    14/03/2013 1
    800
    In the above scenario,
    By Period:
    if i go by period i should get,  
    Jan'13  ---> 1600
    Feb'13  ---> 2800
    Mar'13  ---> 3600
    Specialty By Single Period:
    If i select Jan'13 by specialty
    Specialty
     received_amount
    2 1000
    4 600
    If i select Feb'13 by specialty
    Specialty
     received_amount
    2 2200
    4 600
    If i select Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 2200
    4 600
    Specialty By Multiple selection Periods:
    The result should be sum of the individual selection periods by specialty as follows,
    If i select Jan'13 & Feb'13 by specialty
    Specialty
     received_amount
    2 3200
    4 1200
    If i select Jan'13 , Feb'13 & Mar'13 by specialty
    Specialty
     received_amount
    1 800
    2 5400
    4 1800
    Regards,
    Nagendra

  • Amount comes multiple times against document number

    Hi,
    I have a query in my report that where the A/c Document numbers have the multiple line items, it goes in loop..means it print the value multiple times like: -
    5500004344...............4500
    5500004345...............5000
    5500004345...............5100
    5500004345...............5200
    5500004346...............5100
    It is taking the 5500004345 value 5100, in the 5500004346 document number.(saw in debugging time)..
    But when it have the single document number, it is showing the correct value...
    please check my code:----
    REPORT  zak_mat_pur_rudrapur_new NO STANDARD PAGE HEADING LINE-SIZE 125  .
    TABLES : mseg, ekpo, mkpf, rseg, bkpf, bseg, lfa1.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab OCCURS 0,
           belnr LIKE bkpf-belnr,
           gjahr LIKE bkpf-gjahr,
           budat LIKE bkpf-budat,
           awkey LIKE bkpf-awkey,
           belnr1(10) TYPE c,                             " LIKE rseg-belnr,
           gjahr1 LIKE rseg-gjahr,
           ebeln LIKE rseg-ebeln,
           ebelp LIKE rseg-ebelp,
           wrbtr LIKE rseg-wrbtr,
           menge LIKE rseg-menge,
           bstme LIKE rseg-bstme,
           lfbnr LIKE rseg-lfbnr,
           ebeln1 LIKE ekpo-ebeln,
           ebelp1 LIKE ekpo-ebelp,
           txz01 LIKE ekpo-txz01,
           mblnr LIKE mseg-mblnr,
           lifnr LIKE mseg-lifnr,
           lfbnr1 LIKE mseg-lfbnr,
           rate TYPE p DECIMALS 2,
           name1(40) TYPE c , " like lfa1-lifnr,
           dmbtr LIKE bseg-dmbtr,
           dmbtr1 LIKE bseg-dmbtr,
           sum TYPE p DECIMALS 2,
           sum1 TYPE p DECIMALS 2,
           rate1 TYPE p DECIMALS 2,
           lfpos LIKE rseg-lfpos,
           END OF itab.
    DATA : BEGIN OF itab2 OCCURS 0,
           belnr LIKE bkpf-belnr,
           gjahr LIKE bkpf-gjahr,
           budat LIKE bkpf-budat,
           awkey LIKE bkpf-awkey,
           belnr1(10) TYPE c,                             " LIKE rseg-belnr,
           gjahr1 LIKE rseg-gjahr,
           ebeln LIKE rseg-ebeln,
           ebelp LIKE rseg-ebelp,
           wrbtr LIKE rseg-wrbtr,
           menge LIKE rseg-menge,
           bstme LIKE rseg-bstme,
           lfbnr LIKE rseg-lfbnr,
           ebeln1 LIKE ekpo-ebeln,
           ebelp1 LIKE ekpo-ebelp,
           txz01 LIKE ekpo-txz01,
           mblnr LIKE mseg-mblnr,
           lifnr LIKE mseg-lifnr,
           lfbnr1 LIKE mseg-lfbnr,
           rate TYPE p DECIMALS 2,
           name1(40) TYPE c , " like lfa1-lifnr,
           dmbtr LIKE bseg-dmbtr,
           dmbtr1 LIKE bseg-dmbtr,
           sum TYPE p DECIMALS 2,
           sum1 TYPE p DECIMALS 2,
           rate1 TYPE p DECIMALS 2,
           lfpos LIKE rseg-lfpos,
           END OF itab2.
    DATA : w_container TYPE scrfname VALUE 'CL_GRID',
           w_cprog TYPE lvc_s_layo,
           g_repid LIKE sy-repid,
           w_save TYPE c,
           w_exit TYPE c,
           cl_grid TYPE REF TO cl_gui_alv_grid,
           cl_custom_container TYPE REF TO cl_gui_custom_container,
           it_fld_catalog TYPE slis_t_fieldcat_alv,
           wa_fld_catalog TYPE slis_t_fieldcat_alv WITH HEADER LINE ,
           layout TYPE slis_layout_alv,
           col_pos  LIKE sy-cucol ,
           alvfc TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS   : belnr FOR bkpf-belnr.
    *SELECT-OPTIONS   : gjahr FOR bkpf-gjahr OBLIGATORY.
    PARAMETERS       : gjahr LIKE bkpf-gjahr OBLIGATORY.
    *SELECT-OPTIONS   : budat FOR bkpf-budat.
    SELECTION-SCREEN : END OF BLOCK b1.
    PERFORM fill_catalog1 USING:
    'LIFNR'    'ITAB2'    'Vendor',
    'NAME1'    'ITAB2'    'Name1',
    'BELNR'    'ITAB2'    'MIRO Doc. No.' ,
    'BUDAT'    'ITAB2'    'Posting Date',
    'GJAHR'    'ITAB2'    'Year',
    'BELNR1'   'ITAB2'    'A/c Doc. No.',
    'LFBNR'    'ITAB2'    'Ref. Document(103)',
    'MBLNR'    'ITAB2'    'Material Doc.(105)',
    'EBELN'    'ITAB2'    'PO Number',
    'EBELP'    'ITAB2'    'Line Item',
    'TXZ01'    'ITAB2'    'Material Text',
    'MENGE'    'ITAB2'    'Quantity',
    'BSTME'    'ITAB2'    'Unit',
    *'RATE'     'ITAB2'    'Rate',
    'RATE1'    'ITAB2'    'RATE1',
    'WRBTR'    'ITAB2'    'Amount',
    'DMBTR'    'ITAB2'    'Variance A',
    'DMBTR1'   'ITAB2'    'Variance B',
    'SUM'      'ITAB2'    'Total Amt.',
    'SUM1'      'ITAB2'    'Total Amt.1'.
    SELECT belnr gjahr budat awkey INTO CORRESPONDING FIELDS OF TABLE itab FROM bkpf WHERE belnr IN belnr AND gjahr = gjahr.
    IF sy-subrc <> 0.
      MESSAGE 'DATA NOT FOUND.' TYPE 'I'(001).
    ENDIF.
    SORT itab BY belnr.
    LOOP AT itab.
      SPLIT itab-awkey AT space INTO: itab-belnr1 itab-gjahr1.
      SELECT belnr gjahr ebeln ebelp wrbtr menge bstme lfbnr lfpos FROM rseg INTO (itab2-belnr1, itab2-gjahr1, itab2-ebeln,
                        itab2-ebelp, itab2-wrbtr, itab2-menge, itab2-bstme, itab2-lfbnr, itab2-lfpos) WHERE belnr = itab-belnr1 AND gjahr = itab-gjahr .
        itab2-belnr = itab-belnr.
        itab2-gjahr = itab-gjahr.
        itab2-budat = itab-budat.
        itab2-awkey = itab-awkey.
        SELECT SINGLE ebeln ebelp txz01 FROM ekpo INTO (itab2-ebeln1, itab2-ebelp1, itab2-txz01) WHERE ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
        SELECT SINGLE mblnr lifnr FROM mseg INTO (itab2-mblnr, itab2-lifnr) WHERE lfbnr = itab2-lfbnr AND bwart EQ '105'.
        SELECT SINGLE name1 FROM lfa1 INTO itab2-name1 WHERE lifnr = itab2-lifnr .
        SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'S' AND ebelp = itab2-ebelp.
        itab2-rate = itab2-wrbtr / itab2-menge.
        itab2-sum = itab2-wrbtr + itab2-dmbtr + itab2-dmbtr1.
        itab2-rate1 = itab2-sum / itab2-menge.
    *itab2-sum1 = itab2-wrbtr + itab2-dmbtr1.
        APPEND itab2.
      ENDSELECT.
    ENDLOOP.
    DATA : cnt TYPE i value 1.
    LOOP AT itab2.
    cnt = cnt + 1.
      SELECT dmbtr FROM bseg INTO itab2-dmbtr1 WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'T' AND mwart = 'V'.
        MODIFY itab2 INDEX cnt TRANSPORTING dmbtr1.
        cnt = cnt + 1.
      ENDSELECT.
    ENDLOOP.
    layout-zebra = 'X' .
    layout-colwidth_optimize(1) = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = 'ZAK_MAT_PUR_RUDRAPUR_NEW'
        is_layout          = layout
        it_fieldcat        = it_fld_catalog
        i_default          = 'X'
        i_save             = 'A'
      TABLES
        t_outtab           = itab2
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  FILL_CATALOG1
          text
         -->P_FIELDNAME  text
         -->P_REF_TABLE  text
         -->P_SCRTEXT    text
    FORM fill_catalog1  USING   p_fieldname TYPE any
                                p_ref_table TYPE any
                                p_scrtext   TYPE any.
      CLEAR : wa_fld_catalog.
      wa_fld_catalog-fieldname  = p_fieldname.
      wa_fld_catalog-tabname    = p_ref_table.
      wa_fld_catalog-seltext_s  = p_scrtext.
      wa_fld_catalog-seltext_m  = p_scrtext.
      wa_fld_catalog-seltext_l  = p_scrtext.
    wa_fld_catalog-do_sum     = 'X'.
      wa_fld_catalog-outputlen = 15.
      wa_fld_catalog-no_zero   = 'X'.
      APPEND wa_fld_catalog TO it_fld_catalog.
    ENDFORM.                    " fill_catalog1
    please help me....

    Thanks for reply....
    But same problem is still here...
    I copied ur code:----
    LOOP AT itab.
      CLEAR itab2.                                              "INSERT STATEMENT
    SPLIT ITAB-AWKEY AT SPACE INTO: ITAB-BELNR1 ITAB-GJAHR1. "DELETE STATEMENT
      itab-belnr1 = itab-awkey+0(10).                           "INSERT STATEMENT
      itab-gjahr1 = itab-awkey+10(4).                           "INSERT STATEMENT
      SELECT belnr gjahr ebeln ebelp wrbtr menge bstme lfbnr lfpos
        FROM rseg INTO (itab2-belnr1, itab2-gjahr1, itab2-ebeln, itab2-ebelp, itab2-wrbtr, itab2-menge, itab2-bstme, itab2-lfbnr, itab2-lfpos)
       WHERE belnr = itab-belnr1
         AND gjahr = itab-gjahr .
        itab2-belnr = itab-belnr.
        itab2-gjahr = itab-gjahr.
        itab2-budat = itab-budat.
        itab2-awkey = itab-awkey.
        SELECT SINGLE ebeln ebelp txz01 FROM ekpo INTO (itab2-ebeln1, itab2-ebelp1, itab2-txz01)WHERE ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
        SELECT SINGLE mblnr lifnr FROM mseg INTO (itab2-mblnr, itab2-lifnr)WHERE lfbnr = itab2-lfbnr AND bwart EQ '105'.
        SELECT SINGLE name1 FROM lfa1 INTO itab2-name1 WHERE lifnr = itab2-lifnr .
        SELECT SINGLE dmbtr FROM bseg INTO itab2-dmbtr WHERE belnr = itab2-belnr AND gjahr = itab2-gjahr AND buzid = 'S' AND ebeln = itab2-ebeln AND ebelp = itab2-ebelp.
        itab2-rate = itab2-wrbtr / itab2-menge.
        itab2-sum = itab2-wrbtr + itab2-dmbtr + itab2-dmbtr1.
        itab2-rate1 = itab2-sum / itab2-menge.
    *itab2-sum1 = itab2-wrbtr + itab2-dmbtr1.
        APPEND itab2.
        CLEAR itab2. "INSERT STATMENT.
      ENDSELECT.
    ENDLOOP.
    Not working....plz suggest...

  • Help - HP Pavilion a6030.uk desktop. Have to press the power button multiple times to start up?

    Hi, 
    I have a HP desktop computer. The model is HP Pavilion a6030.uk, Opertating system: windows vista.
    My computer has had no problem at all until yesterday for some reason i  had to push the power button multiple times to start it until it finally turned on and did the normal start up. Such as i would press the power button as normal to start it, but all of a sudden, it would turn off after about 2 seconds, and so I would press the power button several times and each time it would not start up and turn off, so the power button would be pressed again until it would finally turn on and start up and run as normal and seems to work fine. And it was the same today, i pressed the power button mutiple times (e.g. 6 times) until it finally started as normal.
    As im not very knowledgeable or very computer/technology savvy wise in this area, please will someone help me and give me some advice/help to fix/solve this.
    Thankyou for taking time to read this and any help would be much appreciated to resolving this problem.
    Thanks.
    This question was solved.
    View Solution.

    Vonbon90, welcome to the forum.
    When I see these symptoms on an older computer, I believe that it may be a failed/ing power supply unit (PSU).  Here is a guide that will help your troubleshoot it.
    Also, you could test the memory.  This can be done by removing all of the memory modules and replacing them one at a time and booting.
    Please click the " Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • I am trying to print a snapshot taken from a PDF multiple times on one page.

    Reader Will not print multiple copies of a snapshot on one page. I read the help files for Acrobat itself and all it said was take the snapshot and print it. Does anyone know if Acrobat can print multiple copies of the snapshot on one page?
    From some reading in another forum page it looks like Acrobat can do it by saving the snapshot repeatedly with different names and the printing all of them at once. I really hate that workaround as I need to do this often.
    Message was edited by: duckles10

    I tried to do it using Reader. I have a one page PDF document with a UPS shipping label on one side and a special box label with a barcode on the other. This is designed to print on a standard 8.5 x 11 sheet of paper. There are many times when I need to be able to print the box labels more than once. At home, I do it by taking a snapshot of the box label and printing it to a Label printer as many times as I need it. The distributor who also ships items for me only has a full page printer but he can print 4 on a page labels on UPS provided stock. Reader won’t print a snapshot multiple times, the option is grayed out. What I wanted to know is if Acrobat itself can print that snapshot multiple times. I don’t think it can without being able to cut and save that PDF multiple times as separate files. That would be a slow and cumbersome operation. If it would take a snapshot or a single cut and save and print that PDF 4 times on a page it would be a reason to spend the money to buy the program because we need to perform this operation OVER and OVER on a regular basis. On some shipments we might need to print 12 or more extra box labels. We tape smaller boxes together for one UPS label and need to make sure EACH box gets a separate label. Otherwise they sometimes get lost on the other end.
    Doing the save 4 separate PDFs process we might actually need TWO copies of Acrobat unless reader can print 4 on a page if it has 4 PDF’s to work from. I have not yet found a good way to save those snapshots from reader. I have tried since I found that it was possible to cut and save them in other formats but not PDF’s as reader can’t save them. The quality of the saved items in other formats is not acceptable. I recently discovered that Microsoft publisher which I have can save a document as a PDF. I’m going to see if I can import to that program next.

  • A music album is listed multiple times in my library but each listing only has a few songs in it-not the full listing.  How can I combine them into one album and get rid of other duplicate listings?

    Several music albums listed in my IPhone 5 music library are listed multiple times, but each one only has a portion of the songs listed.  How can I combine them to make one album?

    First....Thank you so much for your prompt reply.  I am sorry for not getting back to you regarding your suggestion-I had computer issues that just got resolved.  Also, this is my first foray into online chat rooms so I have a lot to learn to precisely state my issue!  I did as you suggested and all the songs list the same album when I go into each song's "get info".  However, I am not sure how to edit as you suggested. When I downloaded this album originally, for some reason it broke up into several albums each with different songs from the original album.  I am trying to consolidate them back into one album in my library.  I would greatly appreciate further assistance if you can.  Also, I do not use "the cloud" to store any data and would like a good source of info on how to do this.  Thanks so much for your patience!
    SueZoo

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to play one clip multiple times at the same time?

    I am writing a little game where a certain sound has to be played quite frequently. I load it as a Clip and play it with
    myClip.setFramePosition(0);
    myClip.loop(0);If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?
    Edited by: andrasz on Feb 27, 2009 12:37 AM

    If the sound has to be played again but is still being played by another event, the setFramePosition() method resets the sound and the first playing instance is cut off.
    A workaround would be that each object that needs to play this sound would get its own copy, but that is not feasible due to heavy memory consumption.
    So here it goes: How can I play a single sound multiple times at the same time? Is that possible?Ummmm, if you're using a clip, you'll have to maintain one copy per object that needs to play the sound concurrently. You could keep one master copy, and then create copies of the clip as necessary to play them, and then just dump the copies to decrease memory consumption.
    A second idea would be to write your own Clip class. Esentially, all you would need to do is dump some sound data onto a TargetDataline to play it. It'll handle the buffering and playing at the correct speed itself. If that's all you did, you should be able to dump multiple times from the same instance and play it multiple times.
    Obviously, that's just a theory. In practice, it may not work that way...

  • A single photo in Aperture smart album shows multiple times on Apple TV2.

    Sometimes a random photo in my Aperture smart albums displays on my ATV2 multiple times..can I fix this? For example, currently a single picture shows up on the Apple TV in the photos taken "in the past week" smart album 124 times, and the same picture shows up in the "in the past month" smart album 15 times.
    When I double check the picture in the original smart album on the computer, it appears correctly, i.e. only one time.
    Suggestions?

    I'm having the same problem.  I deleted all the photos in the photostream then tried to drag a couple new ones in to see if they'd synch.  Nothing is happening.  I recently installed aperture (have about 125 gb in the library).  If anyone has an idea what to do, i'm open to try something.

  • Calling stored procedure multiple times in the JDBC receiver

    Hi,
    I am calling the stored procedure(SP) to update a DB table in the JDBC receiver.
    SP has 10 input parameters, and SP can receive one value for each parameter at a time.
    In my case, i will have multiple rows to insert using SP.i.e multiple values for each parameter.
    Its working correctly for a single value for each parameter, but when i have multiple values i want to call the SP multiples times.
    Is this possible and how?
    Thanks,
    Varghese.

    Varghese,
    I think you can have multiple statements in the JDBC Adapter's XML, as in http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm.
    Here the StatementName1 node can be inserted into your JDBC XML as often as you want.
    Kind regards,
    Koen

  • Photoshop is opening multiple times...WHY??? (please help).

    When I double click on an image (from Bridge for example) to open in Photoshop it will open up CS6 and then sometimes when I open another image, instead of opening up in the same open Photoshop program, it will open up an additional Photoshop program.  Both CS6, Version 13.0.6 x64.  Super frustrating when sitting with a client and trying to add an image to a document and it opens up in a different program...   Is there a way to see where Photoshop is opening from?  Why would CS6 be opening multiple times???
    I don't think I noticed this happening before I upgraded to Mavericks (yes, this has been happening for a while).  I also have a back-up program called SuperDuper that mirrors my system on a separate hard drive.  Could Photoshop be opening from there, too?
    Thanks for any possible help!
    Deron

    Use Lion Recovery to reinstall the Mac OS X.

  • Hard lock ups multiple times a day - How can I troubleshoot?

    My machine locks up hard multiple times a day. If I happen to be sitting in front of it, I observe that the image on the monitors stops changing. Mouse and keyboard will not work at all (including Magic key SysRq sequences). I cannot ping the box from another machine. The system has not made it to 24 hours of uptime for some weeks.
    I am beginning to suspect that this may be an issue with the NVIDIA driver, but that's only a guess since it's the only thing I've seen before that can lock up a machine hard like this. I have checked journalctl and the Xorg logs, but don't see anything telling.
    What should be my next steps toward solving this issue?

    When it locks up, do any indicators on the keyboard blink?  That would be an indication of a kernel panic. 
    If there are no blinking lights, does it unlock eventually?
    Has the machine ever been stable?
    Have you tried installing a RAM test in your boot loader and running it?
    Next, I would start blacklisting any kernel module you don't absolutely need to see if you can isolate it that way.
    Also, this looks ominous:
    Apr 29 07:49:48 lore kernel: This system BIOS has enabled interrupt remapping
    on a chipset that contains an erratum making that
    feature unstable. To maintain system stability
    interrupt remapping is being disabled. Please
    contact your BIOS vendor for an update
    I redouble my suggestion you pare down loaded modules to try and isolate this.
    Also, I see that it looks at the microcode
    Apr 29 07:49:48 lore kernel: microcode: CPU0 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU1 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU2 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU3 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU4 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU5 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU6 sig=0x106a5, pf=0x1, revision=0x11
    Apr 29 07:49:48 lore kernel: microcode: CPU7 sig=0x106a5, pf=0x1, revision=0x11
    But I don't see it being updated.  That might be normal for your processor, but double check that and ensure you have the microcode update stuff installed in the boot loader correctly.

  • Jabber for Windows 10.5 shows contacts from Address Book multiple times?

    What would cause Jabber for Windows 10.5.1 to show a contact multiple times from the address book when searching?  See attached screenshot. 

    I tried removing firefox and rebooting/reinstalling Jabber with no luck.  I reimaged my machine and loaded 10.5.2 fresh install with no previous versions and still getting the random crash.  Also, I have users who say it has crashed on them during a WebEx and have had installation problems when upgrading from 9.x to 10.5.x.  Version 9 is very solid, sticking with 9.7.5.  I have about 10% of my test users having varying problems with version 10.5.x, waiting till the next release.  Hopefully Cisco will spend a few more weeks testing the next one before publishing it on their site.
    --edit--
    Also, when you finally get frustrated and want to downgrade, Jabber 10.5.x doesn't uninstall completely and you end up with an error like the image attached when you try to install v9.7.5 for example and can't install Jabber even after rebooting.  I had to run Microsoft Fix It install/Uninstall option and tell it to uninstall Jabber before Windows allowed me to install an older version of Jabber.  Not too happy with this release.  Strange enough though, some of my users have the exact same laptop I do, same windows build, same patches, etc, and it works fine for them.  Anyway, not deploying this one.  Good luck.

  • How to get the values multiple times for the specified element - ABAP IXML.

    Hi all,
             i have requirement to get the values for the specified elements multiple times. eg:., if the element is used in the xml 4 times then i need to get all the 4 values.  here is the sample xml,
    <View mmRelease="6.30" mmVersion="2.0" mmTimestamp="1180099591892" name="Comp_viewtestView" package="sap.com" masterLanguage="en">
    <AbstractView.InboundPlugs>
    <InboundPlug name="ip2">
    <ParameterizedFeature.Parameters>
    <Parameter name="ippara2">
    <Parameter.Type>
    <Core.ForeignReference modelName="DtDictionary" package="com.sap.dictionary" name="binary" type="DtSimpleType"/>
    </Parameter.Type>
    </Parameter>
    </ParameterizedFeature.Parameters>
    </InboundPlug>
    <InboundPlug name="hi">
    <ParameterizedFeature.Parameters>
    <Parameter name="hipara">
    <Parameter.Type>
    <Core.ForeignReference modelName="DtDictionary" package="com.sap.ide.webdynpro.uielementdefinitions" name="Visibility" type="DtSimpleType"/>
    </Parameter.Type>
    </Parameter>
    </ParameterizedFeature.Parameters>
    </InboundPlug>
    Here i need to store the following values in internal table, the element to get the values are,
    (1) InboungPlug name and the respective values of "Parameter name" and "Parameter type" name value.
    The output will be of 2 records & values should be
    Inbound plug name = ip2
    Parameter name    = ippara2
    Parameter type      = binary
    2nd record
    Inbound plug name = hi
    Parameter name    = hipara
    Parameter type      = Visibility
    These 2 records should be in internal table and then i will be passing to database table...
    Can anyone provide me the code for the above......
    Thanks in advance,
    Vishnu.

    I didn't get ur requirement..
    As per my understanding, upload the XML file into an internal table and then loop over the internal table and get the values for ptype and pname..
    XML ABAP  -  may b helpfull
    Edited by: Veeranji Reddy on May 7, 2009 2:10 PM

  • When I try to download an app it comes up with no connection URL and it says I've typed in my password wrong multiple times when I haven't changed the password

    So I have tried to download several apps and it asks for my password. I type in my password and then it comes up failure to find service connection URL. After clicking retry multiple times it comes up and say my password is incorrect. When I logged in here my password is correct. How do I fix this

    Hi, Taterbug17. 
    I would recommend signing out of the iTunes Store on your iOS device and sign back in.  Here are the steps on how to process these steps. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Cheers,
    Jason H. 

Maybe you are looking for