Running totals help required. Total PartNumber when in Date Order / Group.

I am trying to create a shortages list of our order book for all our customers orders outstanding. I want a running total of the orders which works until I group the orders in date order, not PartNumber order. It needs to be in date order so the users has a priority order for jobs. What is the best ways to do a running total of the quantity required where the PartNumbers match but keep it in date order.

Hi,
Welcome you post on the forum.
Do you need query for one selectable PartNumber or all PartNumbers?
Thanks,
Gordon

Similar Messages

  • Optimizer run error - COM error 2 1 when deleting transportation orders

    Hi Experts,
    Optimizer run job (program /SAPAPO/RMSNPOPT) gets failed with following error: -
    COM error 2 1 when deleting transportation orders
    Can anybody let us know why this error occurs and how to resolve it. Thanks a lot.
    Regards,
    Chandan

    Hi Chandan,
    Could you check SAP note 1232670 whether applicable
    for you
    Regards
    R. Senthil Mareeswaran.

  • Query Grand Total help required

    Hi all ,
    I have make the following query with followin output:
    SELECT asset, SUM(decode(abc_ccy, 'PR1', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR1,
    SUM(decode(abc_ccy, 'PR2', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR2,
    SUM(decode(abc_ccy, 'PR3', (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) PR3,
    SUM(decode(abc_ccy, 'PR1', 0, 'PR2', 0, 'PR3', 0,
    (nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)))) OTHERS,
    SUM(nvl(abc_accr_lab, 0) + nv(abc_market_lab, 0)) total
    FROM   test_table
    GROUP  BY asset
    Asset       PR1    PR2    PR3  OTHERS TOTAL
    Bonds       100     50    75     100    425
    Shares      50      50    75     100    475
    Accounts    50     100    100    50     350My required output is also Grand Total below the field...is it possible in sql ????
    Asset       PR1    PR2    PR3  OTHERS TOTAL
    Bonds       100     50    75     100    425
    Shares      50      50    75     100    475
    Accounts    50     100    100    50     350
    Grand Ttl   200    200     250    250   1250Regards

    I don't think it'd accept that,
    Here's a quick demo of what might work tho'
    DROP TABLE TEST_TABLE PURGE;
    create table test_table(Asset varchar2(20),PR1 number,PR2 number,PR3 number,OTHERS number, TOTAL number);
    insert into test_table values('Bonds',100,50,75,100,425);
    insert into test_table values('Shares',50,50,75,100,475);
    insert into test_table values('Accounts',50,100,100,50,350);
    insert into test_table values(NULL,50,100,100,50,350);
    SELECT DECODE(ASSET,NULL,DECODE(GROUPING(ASSET),1,'GRAND TOTAL','NONE'),ASSET), SUM(PR1), SUM(PR2), SUM(PR3), SUM(OTHERS), SUM(TOTAL)
    FROM TEST_TABLE
    GROUP BY ROLLUP(ASSET);

  • Help required in understanding when to use encodeChildren() method

    I am new to Java Server Faces. I am a little bit confused in understanding the uselfulness of encodeChildren() method in renderers? Can any one explain how a datatable component gets rendered?how is it that that row by row processing takes place?

    TableRenderer.encodeChildren() is something you can easily imagine:while(there is the next row) {
      UIData.setRowIndex(++rowIndex);
      write("<tr>");
      while(there is the next column) {
        write("<td>");
        while(there is the next component in the column) {
          nextComponent.encodeBegin();
          nextComponent.encodeChildren();
          nextComponent.encodeEnd();
        write("</td>");
      write("</tr>");
    }

  • Help required for importing a repository data file in the B2B console

    I am trying to import a repository data file with the delivery-channel element
    and attributes as below.
    <delivery-channel
    name="GM_DC"
    syncReplyMode="none"
    nonrepudiation-of-origin="false"
    nonrepudiation-of-receipt="false"
    secure-transport="true"
    confidentiality="false"
    routing-proxy="false"
    document-exchange-name="GM_DE"
    transport-name="GM"/>
    I have modified the WLC.dtd present in the lib\dtd subdirectory of the WebLogic
    Integration installation directory to add the syncReplyMode attribute.
    When i import the xml file,i get the following error
    com.bea.b2b.B2BException: ERROR: Invalid document, file 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\B2B_COV_Export.xml'.
         at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown Source)
         at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown Source)
         at com.bea.b2b.bulkloader.BulkLoader.load(Unknown Source)
    Please advise,
    Aruna

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • Help with disk failures when transfering data

    I keep receiving data treansfer errors "Attempting to copy to the disk [my iPod's name] failed. The disk can not be read from or written to". But I can read from it and I can load some videos and music. Help!

    The iPod firmware, uninstall the current one you have. For Windows go to Start -> Control Panel -> Add/Remove Programs. scroll down to 'iPod Updater 2005-10-12' and click Uninstall.
    Download it again (just incase it was corrupted). And install it,
    Plug in your iPod and go to Start -> All Programs -> iPod -> iPod Updater 2005-10-12 and click 'Restore' Note: This deletes all your music and files on your iPod, so you'll have to put those on again after, something will popup saying like that, click 'OK'. And let it go through, if theres any iPod Updater errors, post back.

  • Help Required ---  TO_CHAR function for formatting DATE

    Tue, 20 Jan 2004 17:39:11 GMT.
    I want the output in the above mentioned format . Can any one help me ,Please.
    I tried some thing like this.......
    select to_char(sysdate,'Dy, DD Mon yyyy HH24:MI:SS') from dual; and them Append GMT to it. Is this correct the way ? :D.

    You can append the results of the following (assuming the database timezone is GMT):
    select dbtimezone from dual;

  • LO Extraction - Help required to load missing Purchasing data

    Hi,
    We are using 2 Data Sources: 2LIS_02_ITM & 2LIS_02_SCL to load the Purchasing data in to Info Cube: ZPUR_C01. While comparing the Invoice Amount for the periods 11.2007 & 12.2007, we found the variation between BW and SAP R/3 data.
    In this scenario, do we need to delete the set up tables and fill the set up tables in R/3 side and perform RE-INIT of InfoCube in BW side?
    OR
    There is possibility to load the data in set up tables in period wise in R/3 side? If it is possible, i can delete the data from InfoCubes for the periods 11.2007 & 12.2007 using Selective deletion and load the data in to InfoCube for the same periods. Please let me know.
    Thanks & Best Regards,
    Venkata

    Hi Venkat,
    First you need to know how ur period is derived, is it based on  (EKKO-AEDAT) or (EKPO-AEDAT). If period is derived from EKKO-AEDAT you can delete data from cubes period by period and have to fill setup tables based on Doc. date for those periods. And you have to do full repair loads. Make sure that during that time no one creates/changes/GR/IR for those period PO's. Otherwise they again comes in delta load and values will be summed up.
    hope this will help.
    Thanks, Vamsee

  • Cumulative Sum/Running Total Help

    I have searched through the existing questions for some help, but cannot find a similar question.
    I am attempting to do a running total on a field where one week could not have anything to "add" to the running total.  Is there a way to get the running total to show for a group that does not have data in the set?  The data, received results and desired results are below.  I only get the running total to show when there is data, but I would like to show the running total regardless. 
    ex data:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         0         0         3         2          0          1
    received results:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         0         0         4         6          0          7
    desired results:
    groups
    39       38       37       36       35        34        33
    counts for running total
    1         1         1         4         6          6          7

    I take it that under Received Results, the groups with zero counts are not actually showing, not that they are showing zeros, right?  If that is the case...
    You have to ensure that you get a record from your data set for every group.  For example, if your data is currently returning the group and the count, you could use a database command as your data source that looks something like this (MS SQL):
    select groups.code, isnull(data.counter, 0) as Counter
    from groups
    left outer join (
      select data.code, count(*) as counter
      from data
      where data.date between dateadd("d", -7, getdate()) and getdate()
      group by data.code
    ) data on groups.code = data.code
    This will return records like:
    Code   Counter
    39     1
    38     0
    37     0
    36     3
    35     2
    34     0
    33     1
    Now that you're getting a record for each group, your report should then show the running total for each group.
    HTH,
    Carl

  • When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice.  What now?

    When I try to run iTunes I receive the following error message: "Apple Application Support was not found.  Apple Application Support is required to run iTunes helper.  Please unistall iTunes, then install iTunes again". I have done this twice and continue to get the error message.  What now?

    Hi texasslagle,
    It sounds like you are having issues installing iTunes on your Windows 7 PC, a frustrating situation I am sure.
    There is an article that you may want to use to try to complete your install here -
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/ts5376
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Why can't i empty my trash bin? it prompts me to dele ''all locked items'' or ''unlocked items''...when i click delete ''all''...it runs up to a total of approx 29000 items, yet it does not remove it securely or at all!

    why can't i empty my trash bin? it prompts me to dele ''all locked items'' or ''unlocked items''...when i click delete ''all''...it runs up to a total of approx 29000 items, yet it does not remove it securely or at all! I am running OS X YOSEMITE

    Trash – Empty When File is Locked or in Use
    Try holding down the option button while trying to delete the Trash. If that doesn’t work, here is some more information.
    Trash FAQ          
    Trash Permission Error
    Trash Permission Error (2)
    Trash Permission Error (3)

  • Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please.

    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!

    Grum12 wrote:
    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!
    Hi Grum,
    If the formulas aren't filling to the new column, you must have changed something in the template since you first opened it. Numbers is rather fussy about filling row content in columns as they are added. Only rows with the same expression in every Body Column will fill when a column is added. Just as an experiment, start a new Employee Schedule document from the Template Chooser and then add a column by clicking the Add Column handle in the upper right corner of the table. If that works, as it should, then think about what might have changed in your working document to disconnect that feature. Maybe we can figure it out together.
    Jerry

  • Running Aggregate on grand totals

    Hi,
    We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
    Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
    This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
    Current report
    Branch        W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total  100   11        16       51
    Expected report with Running aggregate on grand total
    Branch            W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total 100 11 16 51
    Running Total   100    111    127     178
    ---------------------------------------------------------

    So having this:
    Branch W1 w2 w3 w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
    In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
    Let me know if it works.

  • Short dump when I do total or sub total in the ALV report

    Hi,
    When I do total or sub-total on the currency field in the ALV report, it'll give a short dump like
    " The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X)".
       Short text of error message:
       Technical information about the message:
       Message classe...... "0K"
       Number.............. 000
       Variable 1.......... " "
       Variable 2.......... " "
       Variable 3.......... " "
       Variable 4.......... " "
       Variable 3.......... " "
       Variable 4.......... " "
    Trigger Location of Runtime Error
        Program                                 SAPLSLVC
        Include                                 LSLVCF36
        Row                                     2,726
        Module type                             (FORM)
        Module Name                             FILL_DATA_TABLE
    sometime when I do the page down on the ALV report, the same short dump is coming.
    Can anyone help me out.
    Thanks
    Selva

    Hi,
    I'm getting this short dump in the standard program.
    I'm getting ALV report display perfectly. the problem is, when I do total or subtotal on the currency fields.
    2704
    2705 ************************************
    2706 * Column per Fieldcat Entry
    2707 ************************************
    2708         ls_lvc_data-value = space.
    2709         clear ls_lvc_data-style.
    2710         loop at it_fcat_local assigning <ls_fcat>
    2711                 where tech ne 'X' and no_out ne 'X'.
    2712           if l_invisible eq 'X'.
    2713             clear l_invisible.
    2714             if <ls_fcat>-do_sum is initial.
    2715               continue.
    2716             else.
    2717               clear ls_lvc_data-col_pos.
    2718             endif.
    2719           endif.
    2720
    2721           add 1 to ls_lvc_data-col_pos.
    2722
    2723           assign component <ls_fcat>-fieldname
    2724                            of structure <ls_data> to <l_field_value>.
    2725           if sy-subrc ne 0.
    >>>>>             message x000(0k).
    2727           endif.
    2728
    in this standard program, I'm getting the dump. the line is mentioned above in the code.

  • Jsp newbie - quantity*price=�total - help!

    Hi, im new to jsp and have made a few pages, and can display them using Tomcat, ive made a page counter and managed some validation of a form, but i cannot get this to work:
    i have a form where you can select a product, then type in the price and quantity, so when you press order, it should display a page showing you what you chose and the total cost, (tryin to also use dp2??) , but im gettin in a right mess! i have ziped the two pages here: http://www.severnvalebathrooms.co.uk/ordermarbrex.zip
    if someone could have a look, any help would be great!
    thanks

    what level feedback do you have on your server.
    look at variable names,
    you have:
    <%
        String quantity    = request.getParameter( "quantity"    ); 
        String price       = request.getParameter( "price"      );
                                                 // Create a convert for 2 decimal places
        java.text.DecimalFormat dp2 
                            = new java.text.DecimalFormat( "�#,##0.00" );
                                            // convert a string to type int                
        int    quantity = Integer.parseInt(   quantity ); 
                                            // convert a string to type double         
        double price    = Double.parseDouble( price    );
        String strips      = request.getParameter( "strips"      );     
        String whofor      = request.getParameter( "whofor"      );
        String bluemosaic  = request.getParameter( "bluemosaic"  );         
        String greenmosaic = request.getParameter( "greenmosaic" );         
        String beigemarble = request.getParameter( "beigemarble" );         
        String delivery    = request.getParameter( "delivery"    );
        if( bluemosaic  == null ) bluemosaic  = "";
        if( greenmosaic   == null ) greenmosaic   = "";
        if( beigemarble == null ) beigemarble = "";     
    %> you should have like;
    <% 
        String quantity    = request.getParameter( "quantity"    ); 
        String price       = request.getParameter( "price"      );
                                                 // Create a convert for 2 decimal places
        java.text.DecimalFormat dp2 
                            = new java.text.DecimalFormat( "�#,##0.00" );
                                            // convert a string to type int                
        int    quantities = Integer.parseInt(   quantity ); 
                                            // convert a string to type double         
        double dPrice    = Double.parseDouble( price    );
        String strips      = request.getParameter( "strips"      );     
        String whofor      = request.getParameter( "whofor"      );
        String bluemosaic  = request.getParameter( "bluemosaic"  );         
        String greenmosaic = request.getParameter( "greenmosaic" );         
        String beigemarble = request.getParameter( "beigemarble" );         
        String delivery    = request.getParameter( "delivery"    );
        if( bluemosaic  == null ) bluemosaic  = "";
        if( greenmosaic   == null ) greenmosaic   = "";
        if( beigemarble == null ) beigemarble = "";     
    %> then change output vars to reflect this at bottom of page.
    also i would do some checking of input vars
    try calling this;
    process_marbrex.jsp?quantity=xyzkind regards,
    g00fy

Maybe you are looking for