Problem in displaying totals based on the Unit of measurement.

Hi,
I have Problem in displaying totals based on the Unit of measurement.
I want to display the total in the output of the alv based on the unit of measurement. for example i have three fields in the output namely
Matnr           Quantity      UOM
51                10              EA
61                10              KG
71                10              KG
In the total i should get
                10         EA
                20         KG
Can anyone tell me how to do this?
The basic req is the exclude the qty with unit EA(each) in the totals.
Thanks,
Amit

H i,
you can use the collect statement
to get the proper result
loop at itab.  ( all the records)
move all the fields from itab to another
collect itab1.
write: itab1-fields, itab1-fields.
endloop.
this will solve your problem
reward points if helpful,
thanks & regards,
venkatesh

Similar Messages

  • Problem in displaying total text in total line

    Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
    code is as follows:
    ls_layout TYPE  slis_layout_alv .
    ls_layout-totals_text       = 'TOTAL'.
      ls_layout-colwidth_optimize = 'X'.
      ls_layout-no_vline          = 'X'.
      ls_layout-no_hline          = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = gv_repid            " Report ID
          i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = ls_layout
          it_fieldcat            = gt_fieldcat         " Field Catlog
        TABLES
          t_outtab               = gt_cost_output      " Output Table

    hi me to i have the same problem
       FORM create_layout .
      data: text(20) TYPE c.
      it_layout-window_titlebar   = text.
      it_layout-colwidth_optimize = 'X'.
      it_layout-totals_text       = text-013."'Totals'(013).
      it_layout-cell_merge        = 'X'.
      it_layout-zebra             = 'X'.
    ENDFORM.         
    but no output total in alv
    also i had another broplem i had unit i wanna show it in total line and calc value in header

  • Problem in displaying total no of pages in Smartform

    Hello experts,
    I have a problem while displaying total no of pages in Smartform.
    When no of pages are more than 10 then in total no of pages , a * is shown till current page is 9, then after it is displaying correct no of pages.
    I am using &sfsy-formpages& to get total no of pages.
    Ex: Like if I have 12 pages to print then i am getting 1/, 2/, 3/* .......... 9/* then 10/12 , 11/12, 12/12.
    Do i have to write some code for that ?? Please give your inputs to get the total no of pages.
    Thanks !

    Hi,
    Try this.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
    Thanks,
    Anitha A

  • I want to display total count on the top of a Column in  business graphics

    Hi All ,
        How can I display total count of the column say for example no. of employees in a series of column chart type in business graphics.
    Any type of help would be much appreciated.
    Thanks
    Uday

    Hi Vishweshwara,
    following is the code i wrote. please check the correctness of the code.
    int seriescount = 0;
    for(int i=0;i<nodesize;i++){
    IGraphDataElement catele = gdNode.createGraphDataElement();
    switch(i){
    case 0:   
       if(wdContext.currentContextElement().getQ().equals("Q1")){
         catele.setCategory("Q1");
           catele.setKRA_Series1(Q1_KRA);
           catele.setApp_Pln_Series2(Q1_AP);
           catele.setRev_App_Series3(Q1_RA);
           catele.setEnd_Rev_Series4(Q1_ERP);
           catele.setApp_Procss_Series5(Q1_AIP);
           catele.setApp_overall_Series6(Q1_AOP);
           seriescount = seriescount+1; break;}
            break;
    case 1:       
       if(wdContext.currentContextElement().getQ().equals("Q2")){
           catele.setCategory("Q2");
           catele.setKRA_Series1(Q2_KRA);
           catele.setApp_Pln_Series2(Q2_AP);
           catele.setRev_App_Series3(Q2_RA);
           catele.setEnd_Rev_Series4(Q2_ERP);
         catele.setApp_Procss_Series5(Q2_AIP);
         catele.setApp_overall_Series6(Q2_AOP);
            seriescount = seriescount+1; break; }
                 break;
    case 2:       
    if(wdContext.currentContextElement().getQ().equals("Q3")){
         catele.setCategory("Q3");
         catele.setKRA_Series1(Q3_KRA);
         catele.setApp_Pln_Series2(Q3_AP);
         catele.setRev_App_Series3(Q3_RA);
         catele.setEnd_Rev_Series4(Q3_ERP);
         catele.setApp_Procss_Series5(Q3_AIP);
         catele.setApp_overall_Series6(Q3_AOP);
         seriescount = seriescount+1; break;}
                 break;
    case 3:   
    if(wdContext.currentContextElement().getQ().equals("Q4")){
         catele.setCategory("Q4");
            catele.setKRA_Series1(Q4_KRA);
         catele.setApp_Pln_Series2(Q4_AP);
         catele.setRev_App_Series3(Q4_RA);
         catele.setEnd_Rev_Series4(Q4_ERP);
         catele.setApp_Procss_Series5(Q4_AIP);
         catele.setApp_overall_Series6(Q4_AOP);
            seriescount = seriescount+1; break;}
                 break;
    case 4: if(wdContext.currentContextElement().getQ().equals("All")){
           wdContext.nodeGraphData().invalidate();
         wdContext.currentContextElement().setGraphVisibility(WDVisibility.NONE);
         wdThis.onActiondropdownaction(wdEvent);
    }default:
    wdContext.nodeGraphData().addElement(catele);
    Thanks
    Uday

  • How to display help based on the Jlabel description

    Hi all,
    I try to display help based on the Jlabel description. When a user click on the help button, I want to use the label description to match correct help topic and display on the screen. I have following code as Field-level help but it returns error. Looks like I cannot use jLabel1.gettext() dynamically. Please let me know if you have any idea!
                String st = jLabel1.getText();
                URL url = HelpSet.findHelpSet(null,"preferences.hs");
              hs = new HelpSet(null,url);
               hb = hs.createHelpBroker();                      
               hb.enableHelp( jLabel1, jLabel1.gettext(), hs );Thanks,
    NY

    You did notice that this is the Forms Forum right???
    If not then click [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Here
    Tony

  • Formatting metrics in a pivot table differently based on a unit of measure

    I have a generic metrics table with columns for METRIC NAME, UNIT OF MEASURE, ACTUAL VALUE, BUDGETED VALUE, and PRIOR YEAR VALUE. Each metric has a unit of measure associated to it, and I need to be able to format these metrics differently in the same field based on that unit of measure.
    For example, I may have an actual value for a "cost per unit" that needs to be formatted in dollars to 3 decimal places (Unit of measure = USD3) while another metric may be a simple "number of items" that needs to be formatted as numberic to 0 decimal places (NUM0).
    Has anyone ever formatted the same column in OBIEE with different data formats depending on the unit of measure needed? I know I can conditionally format the cell with colors or images, but I haven't figured out how to change the data format in a table or pivot table.

    Hi,
    I've read all the tips that are offered in this forum. I tried all the solutions provided here, but I can not get the grand total formatted conditionally, what I get is the following error nell'answer:
    DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None
    Error details
    Codici di errore: YV3KVTDM
    Location: saw.hypercube.dxeApi, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    I'm use the version: OBIEE 11.1.1.6.2
    Anyone have any ideas for me?!

  • Error message  "Enter the unit of measure" in WebClient ???

    Hello Experts,
    We are working on CRM 5.0 SP 7, IC WebClient and have implemented the BAdi "CRM_SERVICEPROD_BADI" to assign a service product ''INVESTIGATION' whenever user selects service ticket in WebClient.
    However, when confirming a Business Partner and accessing the service ticket, an error is getting displayed stating "Enter the unit of measure".
    We have already mentioned the unit of measure in Product but it seems it is not picking from there.
    Please help me to remove this error.
    Reward points assured for useful answers.
    Regards,
    Amit

    Hi Amit
    Gerhard is 100% correct. Please make sure that your unit of measures are maintained on the product master(trans COMMPR01).
    Use the code below in CRM_PRODUCT_I_BADI to set uom.
      if cs_product_i_badi-process_qty_unit is initial.
        cs_product_i_badi-process_qty_unit = 'EA'.
        cs_product_i_badi-process_qty_num = 1.
        cs_product_i_badi-process_qty_den = 1.
      endif.
    Also, you will find you get error to specify product quantity. This can be done in badi CRM_SCHEDLIN_BADI with code below.
    if is_schedlin_wrk-quantity is initial.
       cs_schedlin_badi-quantity = 1.
    endif.
    Regards
    johan.

  • I want to know the function moulde used to convert the unit of measure

    The whole process should be done in the Portugues login language.
    For the login language PT( Portuguese). In table MARA, if i choose the menu settings-> use parameters-> and chek this field (conversion field exit) . Then for any material if i check the unit of measure (MEINS), is display of all the material its shows differently, but if i select one material and see all the fields of that material, the MEINS field is changed. For example when all the materials are show the MEINS is ST. but when i select one material and display it . it shows PEC in portugues language.
    I want to know the function moulde used to convert the unit of measure

    HI,
    There exits the conversion routine for that particular field in its domain level..
    copy that conversion routine and search for that in SE37 your conversion routine
    you will find the function module this gives you the internal and external formats
    Fms are listed below for MEINS
    CONVERSION_EXIT_CUNIT_INPUT    Conversion exit for commercial (3-char) measurement unit INPUT
    CONVERSION_EXIT_CUNIT_OUTPUT   Conversion exit for commercial (3-char) measurement unit OUTPUT
    For convertiung quantity into base unit of measure you can do this way
    CALL FUNCTION 'ME_CONVERSION_MEINS'                       "#EC *
        EXPORTING
          i_matnr             = "give material number"
          i_mein1             = "Unit of measurement "
          i_meins             = "base unit of measure
          i_menge             = "quantity
        IMPORTING
          menge               = "quantioty in your required measurement
        EXCEPTIONS
          error_in_conversion       = 1
          no_success                = 2
          OTHERS                    = 3.
    HOpe this helps you
    Reward if useful
    regards,
    nazeer
    Message was edited by:
            nazeer shaik

  • Suppress the unit of measure (EA) from appearing on each line of a query.

    Hello and Happy new year.
    How can you suppress the unit of measure (e.g. EA for a material) from appearing on each line of a query output?
    Many thanks.

    Hi Matt,
    You're right, we can use that option. However, as you said, if row/column contains same UoM. My reports are quite complex, they contains different UoM.
    Regards,
    Anzar
    Edited by: Anzar Pradityo on Jan 10, 2008 12:49 PM

  • In Adobe Acrobat XI pro how do I change the units of measure from inches to centimetres?

    In Adobe Acrobat XI pro how do I change the unit of measurement from inches to centimetres?

    Edit > Preferences > Units

  • Click on Account Entity Display Columns Based on Business Units

    i have  Account Entity.when you click on Account Entity List of Records should Displayed.Now i want to show columns based different Business unit user logged in.
    Normally Account will Display Columns like:AccountName,MainPhone,Address1:City,Primary Contact,Email.
    if user of business unit1 is logged in  i want show   accoutname email ,Address1:City only
    if user of business unit2 is logged in i want show    AccountName,Primary Contact,EMail,MainPhone.
    how this can achieved.could anybody help me onthis?
    hsk srinivas

    Hi,
    You can create different personnel views with selected columns and share the respective views only with that particular BU users, So the users who logs in will be able to see only those views.
    Regards, Rekha.J

  • Displaying Total values at the bottom of the page.......

    Dear All,
    I am facing problem for aligning the total values at the bottom pf the page.The total values should be displayed exactly at the bottom of "qty" and "price" fields.On the page I have items,description also apart from these qty and price fields.
    Any info plzzzzzzzzzzzzzzzzzzzz..

    Hi,
    Try aliging your values using the TableLayout.
    Thanks.

  • Problem in displaying total quantity

    For VA02 Transaction:
    When order contains 1 line item it is displaying fine. If order contains more line items total quantity of line items is not displaying, previously itu2019s working fine. I written perform at Item_line element to display line items and I written perform at Item_sum element to display the total quantity. (in debugging for one item 2 elements are triggering ,  when more line items item_sum element is not triggering).
    Please can u help me to display total quantity. And why item_sum element is not triggering.
    Thanks & Regards,
    Raj

    Hi,
    you meant, its not displaying the correct value or it is not at all printing any value in total when u have multiple line items.
    could you paste the code for this part...
    Rgds,
    Pavan

  • Calculating Grand Total based on the section totals

    Hi,
    I have a webi report with a section. Outside the section block I have a grand total block. I have a section on Shop Names. At the total level I calculate calls per hour average. So at the end of each sections the total would look like
    Shop 1
    Shop 1 Calls : 61
    Shop 2
    Shop 2 Calls : 45
    I need to calculate call per hour at the grand total ...which should average the totals in the section
    Grand Total : 61+45 = 106/2=53. I needed guidance as to how based on the section totals I can write a formula to calculate averages of the values present in the section. Both are different blocks ( Section and Grand Total)
    I cannot write a direct formula as it will give me error caculation beacuase of the nature of data in the report.
    Please let me kow on this.
    Thank You,

    Hi BOCP-BOE ,
    Thank you very much for the quick response.
    I tried with          
    =Sum([V_Calls_Per_Hour_Average]) ForAll ([V_Calls_Per_Hour_Average]) In Report
    =Sum([V_Calls_Per_Hour_Average]) ForEach ([V_Calls_Per_Hour_Average]) In Report
    But this gives me error
    I calculate calls per hour as a subtotal for each shop. ( There is a section on shop so for each shop under the section we will have calls per hour total)
    The formula to calculate calls per hour is little complex
    =If(Count([Date_Appeared];Distinct)=1;(Sum([Number Of Total Calls])/Average([Hours_Worked/60));(Sum( [Number Of Total Calls])/(Sum([Hours_Worked]/60) ForEach([Date_Appeared]) Where([Date_Appeared]<>Previous([Date_Appeared];Row)))))
    My think that the formula to calculate calls per hour has very little to do with summing the values for calls per hour. Please note that I have a V_Calls_Per_Hour_Average that holds that calculation.
    Please let me know on this.
    Thank You

  • Problem in displaying Total No.of Lines in ALV report header.

    Hi guys,
    my field symbol internal table is having records in which "Compliance" field is having YES or NO values. now requirement is to display
    Total No. of Compliances which are having YES.
    lets say, internal table is having 10 lines. in which compliance field is having 6 YES and 4 No respective values .
    now i want to display header as No. of Compliances :  6
    following is my code to display Total no.of lines in internal tables.
    * total no. of records selected
       DESCRIBE TABLE <table> LINES ld_lines.
       ld_linesc = ld_lines.
       CONCATENATE text-004 ld_linesc
                         INTO t_line SEPARATED BY space.
       wa_header-typ  = 'A'.
       wa_header-info = t_line.
       APPEND wa_header TO t_header.
       CLEAR: wa_header, t_line,ld_lines, ld_linesc .
    My data is there in Field-Symbol table.
    Now i want to display No.of compliances . could anybody please help me out in this.
    Thanks in Advance.
    Regards
    satish

    HI,
    You can use another option like below,
    <Table>[] = <Table1>[]
    delete table1 where compliance = 'NO'.
    DESCRIBE TABLE <Table1> LINES ld_lines. .. follow your logic as above.
    Hope this will helps you,
    Thanks & Regards,
    Suresh M

Maybe you are looking for

  • CSS layout check

    Hi all, I was wondering if a few of you would mind having a look at this code. IE7 is rednering it just as I'd like it, but Firefox is not. I'm sure I could use a different method interms of Float and Position, but I can't think of it. Any advice wou

  • Excise Duty Rate Chnge -No CIN

    Hello Changes in budget rate for excise.PO with old rate already entered.No CIN.Need to write a validationor (how can i do it) that On MIRO,if tax rate(which has been manually enterd in PO) is 16%,should change to 14%(shud i create a new Tax code for

  • Office 365 is not activated

    Hi, I have installed office 365 trail version but when I try to activate office I get a pop up saying "this account is not associated with the office product." I have been using the same live id that  I have used to install office. Can someone please

  • Getting new external drive, can I switch back up time machine drives?

    I don't want to loose the info time machine has already captured on my external hard drive called B1, if I install a new hard drive B2, can I just copy B1 to B2 and then point time machine to B2? Not sure what the process would be, but I want to get

  • Oracle DBA or Datawarehousing ?

    I have been working in production support stuff from the past 3.5 years in MNC where I have knowledge in Oracle PL/SQL developer. I just want shift to one technology. Please advice me whether to go with ORACLE DBA or Data warehousing. Which has bette