Work out total in ALV

Hi for All,
I have a problem with a ALV.
My layout has:  units, value, square meters, square meter/unit, value/unit, value/square meter.
My user wants in the total line: sum(units), sum(value), sum(square meters), sum(square meters)/ sum(unit) ,  sum(value) / sum(unit), sum(value)/ sum(square meters)
I have work out the average of square meter/unit, average of value/unit and average of value/square meters but it is not the same result.
Can anyone give me a clue?
Thanks a lot in advance

Hi,
I think you need to calculate average manually and append it to the internal table.
Loop itab into wa1.
wa2-field = wa2-field + wa1-field.
at last.
wa1-field = wa2-field / sy-index.
append wa1 to itab transporting field.
endat.
endloop.
similarly find average for the rest of the fields where you need to find the average after declaring an extra variable with same data type.
to find the sum you need not divide it with sy-index.
or try using function modules
ISU_QUANTI06
http://www.se80.co.uk/sapfms/i/isu_/isu_quanti06.htm

Similar Messages

  • 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

  • Help Please - on a VC that works out of the box with MAC before I sellup

    I have to declare that I’m somewhat frustrated at the moment and I could do with some good advise please bare with me while I explain.
    I have recently converted from all types of PC systems and MS OS to Apple. The conversion was based on a few drivers.
    1, My wife finally has decided to “learn” how to do her own web work instead of asking me to look up this or that for her. So as she was starting from scratch I thought MAC.
    2, At the same time I had a play with Vista at work and disliked it. I was using XP & W2K at the time.
    3, I wanted to update my home hardware, which was 3 years old.
    4, The accountant said I hadn’t spent enough on IT last year.
    5, New project work in the planning that required video/audio work to upload onto the web and everyone said MAC was the best.
    So having looked around and done what I thought was enough research I started investing. To date I’ve invested £4500 plus.
    Started by buying
    iMAC 24” 2.8 Gz Intel with 4GB ram (for the home office)
    MacBook Pro 2.4 with 4GB ram (for out and about working)
    iPHONE 16GB (which is great)
    VMware Fusion was installed for those things that I couldn’t live without until I found a suitable replacement like MS Money, Paint Shop Pro, MS Office etc. Installed XP.
    Tried Open Office found it to clunky and hard work working off files for MS Office that others sent/required. Ended up buying Office 2008 only to find VB macros don’t work in Excel and all my company spreadsheets still need PC MS Excel to run so back into XP via Fusion.
    Then to MAIL which is great on the iPHONE as I can easily monitor my 5 email accounts, what a result. But now I come to attach JPG files as I would in outlook and they open into the content of text in the mail and will not stay closed but disrupt the message. Wholly unacceptable to my way of working with no cure.
    Scanning next, so I down loaded GIMP to replace PSP which I find useless so back to PSP I go again via XP & Fusion.
    Next and finally the VC project, Now please bare in mind that all I want to do is shoot film, upload it to edit it and then mount it on the web page. I have no desire to become any form of expert in the field just get the job done.
    So reviewed iMovie to understand the spec. Realise it has limitation and reviewed FCE which seems to plug the gaps and boarders on being more professional.
    At this point I must say I’m not totally new to this subject as I have used Studio8 and a JVC GR-DVL166EK video cam a couple of years ago and got on ok without any issues simple plug and play with great results.
    Having reviewed the standards that the software is reported to work too without any publicly declared exclusions or exceptions by Apple I went shopping for the VC. (I didn’t know of the forum at the time and to the best of my knowledge Apple don’t advise of its existence in any product information on anything I have bought.)
    I buy a Panasonic HDC-HS9 for £700 which doesn’t flaming work despite the fact that it should based on all the standards quoted by both manufactures and there are no disclaimers from either party that it won’t work.
    I have reviewed the compatibility list on the support page (now I know its there) and find that the Panasonic HDC-SD5 does work. I reviewed the comprehensive detailed model spec on the Panasonic web site and there is no differences between the to models at all accept the HDD.
    So why don’t it work?
    *At the end of the day can anyone please recommend a VC that will produce high quality results without the need of a 3rd party software to connect and upload files convert and muck about instead of getting on with the job.*
    And if all the publicised specs don’t allow you to conclude compatibility how can you protect your investment? Where do we legally stand and where is the accountability to the consumer.
    <edited by host>
    I am that fed up with the last 3 months of mucking about Bill Gat*es may just get me back.
    Thanking anyone in anticipation for some meaning advise and help.
    Regards
    Alan

    Hi, and thanks for you interest. The problems is that whether I'm using iMovie or FCE I get to a stage where the thumbnail image is present but if you try to play, import or any other action in either app it closes down and a message comes up " The Application Final Cut Express/iMovie quit unexpectedly - Mac OS X and other application are not affected" then asks if I wish to relaunch. I then hit the report to Apple button and afterwards relaunch. I was recommended to use Voltaic which I have tried, it worked but is to much mucking about for something that should work out of the box.
    This problem happens on both the iMAC and the MacBook so quite sure it's not a OS software issue. All software update are up to date also.
    Any ideas?

  • Did you know that Captivate 8 takes virtually all of the work out of creating responsive online courses?

    I just saw the Adobe Blog article about Captivate 8 and the statement that Cp8 is an " authoring tool that takes virtually all of the work out of creating responsive courses online".
    http://blogs.adobe.com/captivate/2014/05/the-all-new-adobe-captivate-8-blends-authoring-ea se-with-game-changing-mobile-support.html
    Methinks this might be a tad overstating the matter. With responsive e-learning courses you effectively need to build the same course three times for the three different device screen sizes.
    Gotta love marketing people...

    Of course it is marketing hype, almost the only feature that everyone is shouting about, but I never did see a work flow, or real time experience described in all those blogs. I never write about some features I didn't explore, so I started with those that are also useful for the many companies that are not turning to mobile or BYOD yet, and have talked about those, including limitation and possible improvements.
    However, Rod, I don't agree totally with you. There is work taken out of your hand with the Responsive project work flow in Captivate. Responsive themes, smart positioning, resizing of objects, text, repositioning for phone break point, and testing with Edge Inspect are working pretty well, especially for this first implementation in Captivate (do not expect miracles). And from a usability standpoint, you have to reflect indeed on how the concept has to be, and that is different for each device. Such a mindframe takes a lot more than what a newbie playing for one day with Captivate can realize (as proclaim most blog posts), you don't have to persuade me about that. However I don't agree with your statement  'you effectively need to build the same course three times', but so-called 'single-source publishing' has always been a dream that will never be realized IMO, certainly not for eLearning.
    I am busy creating a real responsive tutorial (for Captivate) and will try to explain later on what I learned by doing. Only at that moment I will 'write', marketing is certainly not one of my skills
    Lieve

  • Help with working out layout

    Hi,
    I trying to work out the best way to structure a layout for a
    page that is
    centered with a dropshadow on all sides, and for the main
    large image and
    text below to be flexible height to allow for different font
    settings etc.
    The way I initially layed it out, I did a plain white
    background image for
    each div, with the drop shadow on each side, but that makes
    the heights
    rigid.
    This is a pic of what it should look like -
    http://www.createddesign.com/waratahfibres/test.html
    Regards
    Fiona

    Thanks Alec,
    That was sort of what I thought might be the approach, but
    wasnt sure of the
    technicalities of it.
    I will get right on it.
    Thank you for your help.
    fiona
    "Alec" <[email protected]> wrote in message
    news:fo5vic$6vt$[email protected]..
    > One idea. Do it with 3 divs: top, middle, bottom (or
    maybe better semantic
    > names masthead, content, footer).
    >
    > top:
    > Contains a background image, a "cap" - the top portion -
    a little bit of
    > sides and the entire top. Let's assume a total width of
    760px, including
    > left/right shadows, and a height which includes the
    whole
    > masthead/branding.
    >
    > bottom:
    > Another cap, but at the bottom. Again, a little bit of
    sides and the full
    > bottom. Let's assume a total width of 760px, including
    left/right shadows,
    > and a height of maybe 10px. Just enough for a little bit
    of white at the
    > bottom.
    >
    > middle:
    > This is what allows unlimited height. Use a background
    image also with a
    > width of 760px, but a height of just about 5px (so you
    can see it). It has
    > the left/right shadow with the middle section just
    white. Repeat-y. This
    > background image spans the full width of the content
    area and tiles
    > vertically.
    >
    > Kind of hard to explain in words. In "ASCII art",
    something like:
    >
    > TopTopTopTopTopTopTopTopTopTopTopTop
    > MiddleMiddleMiddleMiddleMiddleMiddle
    > MiddleMiddleMiddleMiddleMiddleMiddle
    > MiddleMiddleMiddleMiddleMiddleMiddle
    > MiddleMiddleMiddleMiddleMiddleMiddle
    > MiddleMiddleMiddleMiddleMiddleMiddle
    > BottomBottomBottomBottomBottomBottom
    >
    > --
    > Alec
    > Adobe Community Expert

  • Regarding sub totaling in alv

    hi,
    i am making report in alv in which i have to display the sub totals and den full total.
    is it possible to display sub total in ALV acccording to material type wise or itemid wise.
    plzz help me with some example.
    If find useful he or she will definately rewarded.........

    Hi, 
    The following example for sub totall for ALV  report..
    u have to pass do_sum = 'X'. for perticuler fileds.
    if it is use full answer reward me a points..
    *& Report  ZDEL_ALV1
    *Description:        This ALV interactive report is display Delivary
                       status
    REPORT  zdel_alv1 NO STANDARD PAGE HEADING LINE-SIZE 255 LINE-COUNT 60.
    *TABLE DECLARATION
    TABLES : likp,                     "Delivery Header Data
             lips,                     "Delivery item Data
             vbup.                     "sales document item status
    TYPE-POOLS : slis.
    *SRUCTURE DECLARATION
    *THIS TABLE FOR HEADER DETAILS
    TYPES : BEGIN OF t_likp ,
            vbeln LIKE likp-vbeln,     "Delivery number
            kosta like vbup-kosta,
            kunnr LIKE likp-kunnr,     "Customer number
            wadat LIKE likp-wadat,     "Planned goods movement date
            ernam LIKE likp-ernam,     "Name of person
            vkorg LIKE likp-vkorg,     "Sales organization
            lfart LIKE likp-lfart,      "DELIVERY TYPE
            ntgew LIKE likp-ntgew,      "NET WEIGHT
            END OF t_likp.
    *THIS TABLE FOR ITEM DETAILS
    TYPES : BEGIN OF t_lips ,
            vbeln LIKE lips-vbeln,     "Delivery number
            posnr LIKE lips-posnr,     "delivery item
            matnr LIKE lips-matnr,     "Material number
            lfimg LIKE lips-lfimg,     "Actual quantity delivered
            ntgew LIKE lips-ntgew,     "Net weight
            exbwr LIKE lips-exbwr,     "Externally entered posting amount
            arktx LIKE lips-arktx,     "Short text SO Item
            END OF t_lips.
    *THIS IS FOR FINAL OUTPUT
    TYPES : BEGIN OF t_vbup ,
            vbeln LIKE likp-vbeln,     "Delivery number
            kosta LIKE vbup-kosta,     "Picking status/Putaway status
            posnr LIKE vbup-posnr,     "delivery item
            matnr LIKE lips-matnr,     "Material number
            lfimg LIKE lips-lfimg,     "Actual quantity delivered
            ntgew LIKE lips-ntgew,     "Net weight
            exbwr LIKE lips-exbwr,     "Externally entered posting amount
            arktx LIKE lips-arktx,     "SHORT text SO Item
            description(20),           "for display text
            END OF t_vbup.
    *INTERNAL TABLES
    DATA : i_likp TYPE STANDARD TABLE OF t_likp.
    DATA : i_lips TYPE STANDARD TABLE OF t_lips.
    DATA : i_vbup TYPE STANDARD TABLE OF t_vbup.
    DATA : repid LIKE sy-repid.
    DATA : delivar1(10) TYPE c.
    *WORK AREA
    DATA : wa_likp TYPE t_likp.
    DATA : wa_lips TYPE t_lips.
    DATA : wa_vbup TYPE t_vbup.
    DATA:  i_vbup1 LIKE wa_vbup OCCURS 0 WITH  HEADER LINE.
    *SLIS TABLE DECLARATIONS
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv  WITH HEADER LINE,
          i_events TYPE slis_t_event,
          w_events TYPE slis_alv_event,
          i_fieldcat1 TYPE slis_t_fieldcat_alv  WITH HEADER LINE,
          i_layout TYPE slis_layout_alv.
    *SELECTING RANGE OF VALUES
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_vbeln  FOR likp-vbeln,
                     s_kunnr  FOR likp-kunnr,
                     s_wadat  FOR likp-wadat.
    SELECTION-SCREEN END OF BLOCK b1 .
    *CHOOSE ONE CHECK BOX FOR DISPLAYING THE DELIVARY STATUS
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : cb_kostc AS CHECKBOX,"DEFAULT 'X',
                 cb_kosta AS CHECKBOX,
                 cb_kostb AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b2.
    *INTIALIZATION CHECK
    INITIALIZATION.
      repid = sy-repid.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM get_field.
    PERFORM GET_EVENTS.
      PERFORM display.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *&      Form  RUCOMM
          This form getting details from lips table for displaying
           the item details and all select statements for delivary status
         -->R_UCOMM    text
         -->RS_SELFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm  rs_selfield TYPE
                                                   slis_selfield.
      IF rs_selfield-fieldname = 'VBELN'.
        delivar1 = rs_selfield-value.
      ENDIF.
      IF cb_kostc = 'X'.
      SELECT   VBELN KOSTA   FROM   VBUP
      INTO TABLE I_VBUP
      WHERE  VBELN IN DELIVAR
      AND KOSTA = 'C'.
      SELECT VBELN MATNR LFIMG EXBWR INTO TABLE I_LIPS FROM LIPS
                                        WHERE VBELN EQ DELIVAR1.
        REFRESH i_vbup1[].
        CLEAR i_vbup1.
        SELECT avbeln akosta bposnr bmatnr blfimg bntgew b~exbwr
        b~arktx
        INTO TABLE i_vbup
        FROM vbup AS a INNER JOIN lips AS b
        ON avbeln = bvbeln
        WHERE a~vbeln EQ delivar1
           AND kosta = 'C'.
      ELSEIF cb_kosta = 'X'.
      SELECT   VBELN KOSTA   FROM   VBUP
      INTO TABLE I_VBUP
      WHERE  VBELN IN DELIVAR
      AND KOSTA = 'A'.
        SELECT avbeln akosta bposnr bmatnr blfimg bntgew b~exbwr
        b~arktx
        INTO TABLE i_vbup
        FROM vbup AS a INNER JOIN lips AS b
        ON avbeln = bvbeln
        WHERE a~vbeln EQ delivar1
           AND kosta = 'A'.
      ELSEIF cb_kostb = 'X'.
        SELECT   VBELN KOSTA   FROM   VBUP
      INTO TABLE I_VBUP
      WHERE  VBELN IN DELIVAR
      AND KOSTA = 'B'.
        SELECT avbeln akosta bposnr bmatnr blfimg bntgew b~exbwr
        b~arktx
        INTO TABLE i_vbup
        FROM vbup AS a INNER JOIN lips AS b
        ON avbeln = bvbeln
        WHERE a~vbeln EQ delivar1
           AND kosta = 'B'.
      ENDIF.
      CLEAR i_vbup1.
      LOOP AT i_vbup INTO wa_vbup.
        i_vbup1-vbeln = wa_vbup-vbeln.
        i_vbup1-kosta = wa_vbup-kosta.
        IF wa_vbup-kosta = 'C'.
          i_vbup1-description = 'COMPLETELY PROCESSED'.
        ELSEIF wa_vbup-kosta = 'B'.
          i_vbup1-description = 'PARTIALLY PROCESSED'.
        ELSEIF wa_vbup-kosta = 'A'.
          i_vbup1-description = 'NOT YET PROCESSED'.
        ENDIF.
        i_vbup1-posnr = wa_vbup-posnr.
        i_vbup1-matnr = wa_vbup-matnr.
        i_vbup1-lfimg = wa_vbup-lfimg.
        i_vbup1-ntgew = wa_vbup-ntgew.
        i_vbup1-exbwr = wa_vbup-exbwr.
        i_vbup1-arktx = wa_vbup-arktx.
        APPEND i_vbup1 .
      ENDLOOP.
      SORT i_vbup1 BY vbeln matnr lfimg.
      DELETE ADJACENT DUPLICATES FROM i_vbup1 COMPARING vbeln matnr lfimg.
    SELECT VBELN MATNR LFIMG EXBWR INTO TABLE I_LIPS FROM LIPS
                                         WHERE VBELN EQ DELIVAR1.
    *This function module for displaying the item details
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = repid
          it_fieldcat             = i_fieldcat1[]
          i_callback_top_of_page  = 'TOP_OF_PAGE'
          i_callback_user_command = 'USER_COMMAND1'
          it_events               = i_events
        TABLES
          t_outtab                = i_vbup1
        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.
      CLEAR i_vbup1.
    ENDFORM.                    "RUCOMM
    *&      Form  USER_COMMAND1
          text
         -->R_UCOMM1   text
         -->RS_SELFIELDtext
    FORM user_command1 USING r_ucomm1 LIKE sy-ucomm  rs_selfield1 TYPE
                                                     slis_selfield.
      DATA: deliv(10) TYPE c.
      IF rs_selfield1 = 'VBELN'.
        deliv = rs_selfield1-value.
      ENDIF.
      SET PARAMETER ID 'VL' FIELD delivar1.
      CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
    ENDFORM.                    "USER_COMMAND1
    *&      Form  GET_DATA
          This form for getting the data from likp table
    -->  p1        text
    <--  p2        text
    FORM get_data .
    SELECT VBELN KUNNR WADAT FROM LIKP INTO TABLE I_LIKP
                                     WHERE VBELN IN S_VBELN
                                     AND KUNNR IN S_KUNNR
                                     AND WADAT IN S_WADAT.
      REFRESH i_likp[].
      CLEAR i_likp.
      IF cb_kostc = 'X' AND cb_kosta = ' ' AND cb_kostb = ''.
        SELECT avbeln akosta bkunnr bwadat bernam bvkorg blfart bntgew
        INTO TABLE i_likp
        FROM vbup AS a INNER JOIN likp AS b
        ON avbeln = bvbeln
        WHERE
              b~kunnr IN s_kunnr
              AND b~vbeln IN s_vbeln
              AND b~wadat IN s_wadat
               AND a~kosta = 'C'.
      ELSEIF cb_kosta = 'X' AND cb_kostb = ' ' AND cb_kostc = ''.
        SELECT avbeln akosta bkunnr bwadat bernam bvkorg blfart bntgew
           INTO TABLE i_likp
           FROM vbup AS a INNER JOIN likp AS b
           ON avbeln = bvbeln
           WHERE
                 b~kunnr IN s_kunnr
                 AND b~vbeln IN s_vbeln
                 AND b~wadat IN s_wadat
                  AND a~kosta = 'A'.
      ELSEIF cb_kostb = 'X' AND cb_kosta = '' AND cb_kostc = ''.
        SELECT avbeln akosta bkunnr bwadat bernam bvkorg blfart bntgew
           INTO TABLE i_likp
           FROM vbup AS a INNER JOIN likp AS b
           ON avbeln = bvbeln
           WHERE
                 b~kunnr IN s_kunnr
                 AND b~vbeln IN s_vbeln
                 AND b~wadat IN s_wadat
                  AND kosta = 'B'.
      ELSEIF cb_kostc = 'X' AND cb_kosta = 'X' AND cb_kostb = 'X'.
        SELECT avbeln akosta bkunnr bwadat bernam bvkorg blfart bntgew
        INTO TABLE i_likp
        FROM vbup AS a INNER JOIN likp AS b
        ON avbeln = bvbeln
        WHERE
              b~kunnr IN s_kunnr
              AND b~vbeln IN s_vbeln
              AND b~wadat IN s_wadat
              AND kosta NE ' '.
      ENDIF.
      DELETE ADJACENT DUPLICATES FROM i_likp.
    ENDFORM.                    " GET_DATA
    *&      Form  GET_FIELD
          This form for defining the every fields from likp & lips tables
    FORM get_field .
    *This fields are retrieving from header table(likp)
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'VBELN'.
      i_fieldcat-seltext_m = 'SALES ORDER NO'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'KUNNR'.
      i_fieldcat-seltext_m = 'CUSTOMER NO'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'WADAT'.
      i_fieldcat-seltext_m = 'DATE'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'ERNAM'.
      i_fieldcat-seltext_m = 'NAME OF PERSON'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'VKORG'.
      i_fieldcat-seltext_m = 'SALES ORGANIZATION'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'LFART'.
      i_fieldcat-seltext_m = 'DELIVERY TYPE'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
      i_fieldcat-fieldname = 'NTGEW'.
      i_fieldcat-seltext_m = 'NET WEIGHT'.
      i_fieldcat-do_sum = 'X'.
      APPEND i_fieldcat TO i_fieldcat.
      CLEAR i_fieldcat.
    *This fields are retrieving from item table(lips)
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'VBELN'.
      i_fieldcat1-seltext_m = 'DELIVAR NO'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'POSNR'.
      i_fieldcat1-seltext_m = 'DELIVERY ITEM'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'MATNR'.
      i_fieldcat1-seltext_m = 'MATERIAL NO'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'LFIMG'.
      i_fieldcat1-seltext_m = 'ACTUAL QUANTITY'.
      i_fieldcat1-do_sum    = 'X'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'NTGEW'.
      i_fieldcat1-seltext_m = 'NET WEIGHT'.
      i_fieldcat1-do_sum = 'X'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'EXBWR'.
      i_fieldcat1-seltext_m = 'AMOUNT'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'ARKTX'.
      i_fieldcat1-seltext_m = 'SHORT TEXT FOR so ITEM'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
      i_fieldcat1-fieldname = 'DESCRIPTION'.
      i_fieldcat1-seltext_m = 'PICKING STATUS'.
      APPEND i_fieldcat1 TO i_fieldcat1.
      CLEAR i_fieldcat1.
    ENDFORM.                    " GET_FIELD
    *&      Form  GET_EVENTS
          This form defining the events
    *FORM GET_EVENTS .
    CLEAR W_EVENTS.
    W_EVENTS-NAME = 'USER_COMMAND'.
    W_EVENTS-FORM = 'RUCOMM'.
    APPEND W_EVENTS TO I_EVENTS.
    *ENDFORM.                    " GET_EVENTS
    *&      Form  DISPLAY
         This form is going to display header details from likp table
    FORM display .
    *This function module for displaying the header details
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = repid
          i_callback_top_of_page  = 'TOP-OF-PAGE'
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat             = i_fieldcat[]
          i_save                  = 'X'
          it_events               = i_events
        TABLES
          t_outtab                = i_likp
        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.
    ENDFORM.                    " DISPLAY
    *&      Form  TOP-OF-PAGE
        This form is going to display top-of-page header text
    FORM top-of-page.
      DATA:  i_list_comments TYPE slis_t_listheader.
      DATA:  w_list_comments TYPE slis_listheader.
      CLEAR: i_list_comments[].
      w_list_comments-typ  = 'H'. "H=Header, S=Selection, A=Action
      w_list_comments-info = 'DELIVERY ORDER DETAILS'.
      APPEND w_list_comments TO i_list_comments.
      w_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action
      w_list_comments-info = 'Basic list'.
      APPEND w_list_comments TO i_list_comments.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo             = 'enjoy'
          it_list_commentary = i_list_comments.
    ENDFORM.                    "TOP-OF-PAGE
    *&      Form  TOP_OF_PAGE
           This form is going to display top-of-page item text
    FORM top_of_page.
      DATA:  i_list_comments TYPE slis_t_listheader.
      DATA:  w_list_comments TYPE slis_listheader.
      DATA : i_line LIKE w_list_comments-info.
      CONCATENATE 'DELIVERY ITEM DETAILS :' delivar1 INTO i_line .
    SEPARATED BY SPACE.
      CLEAR: i_list_comments[].
      w_list_comments-typ  = 'H'. "H=Header, S=Selection, A=Action
      w_list_comments-info = i_line.
      APPEND w_list_comments TO i_list_comments.
      w_list_comments-typ  = 'A'. " H = Header, S = Selection, A = Action
      w_list_comments-info = 'Secondary list'.
      APPEND w_list_comments TO i_list_comments.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo             = 'enjoy'
          it_list_commentary = i_list_comments.
    ENDFORM.                    "TOP_OF_PAGE

  • Formula to work out % of days lost

    Hello,
    I am working on an absence query, and I need to be able to work out the total % of days lost for a specific org unit.
    Currently I have my query looking like thisu2026
    .....................Actual time offu2026..% of days lost
    Chief execu2026u2026u2026505u2026u2026u2026u2026.....(505/1946*100)
    Env Servu2026u2026u2026..642u2026u2026u2026u2026......(642/1946*100)
    Schoolsu2026u2026u2026u2026.799u2026u2026u2026u2026.....(799/1946*100)
    Totalu2026u2026u2026u2026u2026.1946u2026u2026u2026..
    Where the bracket is I want to be able to create a formula to work this out. Currently the total in the rows is a simple formula, but unfortunately I cant use this total in the formula Iu2019m trying to create in the columns.
    Does anyone know how I can do this?
    Thanks in advance
    Forhad

    Hi Forhad,
    Yes you can create the formula you want.
    Have you tried the function %A and SUM(GT)  or  %GT.
    You will be able to build your formula using these functions.
    Check this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Hope it helps,
    Regards,
    Sunmit.

  • Total in ALV List (own calculation)

    Hi All,
    do you know how to display total in ALV List which calculated by me ?
    Previously I am using Before Line Output event ?
    I dont know why it's not working now (see the code below)? Now it is always overrided by standard sum calculation. Please help me.
    Thank you in advance.
    Sandi
    FORM ALV_BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO.
      IF RS_LINEINFO-endsum = 'X'.
        I_DATA-PERFORMANCE = L_AVG.
        "MODIFY I_DATA INDEX RS_LINEINFO-SUMINDEX.
      ENDIF.
    ENDFORM.

    Hi All,
    do you know how to display total in ALV List which calculated by me ?
    Previously I am using Before Line Output event ?
    I dont know why it's not working now (see the code below)? Now it is always overrided by standard sum calculation. Please help me.
    Thank you in advance.
    Sandi
    FORM ALV_BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO.
      IF RS_LINEINFO-endsum = 'X'.
        I_DATA-PERFORMANCE = L_AVG.
        "MODIFY I_DATA INDEX RS_LINEINFO-SUMINDEX.
      ENDIF.
    ENDFORM.

  • Missing recent work-out data in nano  / no records on nike+

    Nano records work-out correctly and syncs it to Nike+ website but on Nano it only shows total work-out data. No other history, ie recent work-outs, last ork-out or personal best is showing.
    the second problem I have is that even though I ran more than 5K it doesn't show it under achievements on the nike+ website.
    Any ideas?
    THANKS! (and sorry in case it has been answered in a different thread)
    Nano 4GB   Windows XP  

    Nano records work-out correctly and syncs it to Nike+
    website but on Nano it only shows total work-out
    data. No other history, ie recent work-outs, last
    ork-out or personal best is showing.
    Try this thread:
    http://discussions.apple.com/thread.jspa?threadID=593626&tstart=0
    Can't help with the second problem. Good luck

  • Need help working out a percentage

    Hi guys,
    I'm new to numbers and this is my first post on apple forums too. My question is this, as a total newbie with numbers & excel, I am trying to work out my friends attendance to a meeting I hold. The data looks like this:
    2 Feb 2011 1
    6 Feb 2011 0
    8 Feb 2011 1
    9 Feb 2011 1
    13 Feb 2011 0
    16 Feb 2011
    20 Feb 2011
    22 Feb 2011
    23 Feb 2011
    27 Feb 2011
    Where one signifies attendance and zero shows they did not attend.
    I want to use a cell below this to show their total attendance for the month in total. I am aware the month hasn't finished so showing their attendance for the month as it is so far is fine.
    I know its probably very easy but I can't work out how to do it. Any help would be appreciated.
    Many thanks,
    hardtofin

    Hi hardtofin,
    Welcome to Apple Discussions and the Numbers '09 forum.
    As a spreadsheet newbie, your absolutely best first step is to download and read at least the preface and first chapter of the Numbers '09 User Guide, then read the other chapters as you start to work with various aspects of Numbers.
    Apple also provides a second excellent reference, the iWork Formulas and Functions User Guide. Use this one as a source for the functions available in Numbers, including a description and at least one example for each function.
    Both may be downloaded through the Help menu in Numbers. Both are very useful to have handy.
    To your question:
    Start by adding two Footer rows to your table, one to hold the current total attendance, the other to hold the attendance expressed as a percentage of the meetings that have been held to date.
    I'm assuming the dates are in column A and the attendance in column B.
    In B11, the total attendance is a simple SUM:
    =SUM(B)
    In B12, we want to divide the same SUM by the number of meetings it has been possible to attend. That number can be obtained using COUNTIF:
    =SUM(B)/COUNTIF($A,"<"&TODAY())
    Use the (Cell Format) Inspector to format the cell as Percentage and adjust the number of decimal places shown.
    The three functions used are all discussed in the iWork Formulas and Functions User Guide.
    Regards,
    Barry

  • Hi, I am going to an exhibition where there is no internet access but would like to show people around my website. I have added "scrapbook" but cannot work out how to 'save' an entire site for viewing off-line.

    Hi, I am going to an exhibition where there is no internet access but would like to show people around my website. I have added "scrapbook" but cannot work out how to 'save' an entire site for viewing off-line. I thought there was a way to specify 1/2/3 clicks from home page etc. Please help. DAVID

    OK, solved my own problem, but am posting here in case someone else has the same problem. It totally does not make sense, especially considering that it stopped after I reinstalled Lion, but the good thing is I have my files back.
    I scoured the web and found a lot of other people are having the same problem. Most of them didn't have a clue how to fix it. This discussion was the most helpful to me: https://discussions.apple.com/thread/2569766?start=30&tstart=90
    So, I went to the WD page and followed the instructions. The first suggestion was to plug it directly into a wall, because it may not be getting enough power from a power cord. I did this and it fixed the problem. Who would have guessed?
    Anyway, if anyone else is having this problem, go to your manufacturer's website for help. Here's WD's help: http://wdc.custhelp.com/app/answers/detail/a_id/1164/related/1/session/L2F2LzEvd GltZS8xMzI2MzIzMjUwL3NpZC82dmo0blZOaw%3D%3D

  • When I open iTunes it will automatically go to full screen mode. I can't work out how to turn this off. Only iTunes opens to full screen mode.

    When I open iTunes it will automatically go to full screen mode. I can't work out how to turn this off. Only iTunes opens to full screen mode.

    Go to System Preferences (under the Apple logo in the menu bar).  Choose "General".  Click "Always close windows when quitting an application".
    That should fix it.

  • I have a macbook pro and use BT homehub 3.  can't work out how to connect my time capsule. can anyone help, thanks.

    I have a macbook pro and use BT homehub 3.  can't work out how to connect my time capsule. can anyone help?  thanks

    Just need to plug the TC in to the hub in bridge mode.. do not try and bridge the homehub.. it is not possible with the setup BT uses.
    To bridge the TC.. plug it directly into a computer by ethernet.. no other connection to the TC or the computer.
    Press and hold in reset until the front LED flashes rapidly.. about 10sec.
    Release the reset.
    Open the airport utility and setup the TC to bridge mode.
    The actual method depends on version of the OS and airport utility you use.
    This is version 5.
    Sorry I cannot post the v6 as I am on a snow leopard computer now. But you go to the network tab, and choose off bridge mode for method of connection. It will be NAT and dhcp by default.
    Then setup wireless.. you have a number of choices here.
    Either setup with the same SSID Security and password, as the homehub uses.. or a different name, and password..
    Each method works fine.. but you sometimes have issues with wireless channels.. for now leave it on auto and see what happens.. if you have issues lock down the radio channels on both devices.. use one out of the following on each, 1, 6, 11 or 13 in UK.. so say 6 on the homehub then 13 onthe TC.
    Update the TC.. unplug fromt the computer and plug it into the homehub.
    If you have other issues with the setup tell us what OS you run so we can post suitable screenshots.

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to display total in ALV Header

    How to display total in ALV Header?

    Hi Venkey,
    As far as your issue is concerned I would like to quote my perception.
    Create a header internal table with title and number of records.
    At the later part of your program you should have found the total number of records ,now assign it to the header internal table and print it.
    For further clarification you can go check this link:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AddHeadertoALVreport
    Thanks
    P.Srikanth

Maybe you are looking for

  • Every time I start iTunes the Setup Assistant appears (V.2)

    I have the same problem as this person http://discussions.info.apple.com/message.jspa?messageID=1877896 But in that folder I only have Cookies (folder) iTunes Plug-ins (folder) CD Info.cidb (file) iTunesPrefs (file) I am confused what should I do now

  • Driver for lexmark 5470 printer

    after upgrading to 8.1, i cou;ld not get driver for printer.

  • Apex : link to jasperReport

    Hi everybody i found a blog (http://sqlcur.blogspot.com/2009/02/jasperreports-in-apex.html) about an URL which enable to access my report published with iReport and JasperServer, and passing parameter but i'm not sure to understand very well all elem

  • E52 some bugs

    Hey, i have this phone for some days and i noticed some problems/bugs. 1. When i watch video on youtube normal mode everything is ok (except that sound is a bit in front than video), BUT when i push on video to fullscreen, the phone restarts. The sam

  • Only one JDK on my machine please !!!!!

    OK, I found it, don't bother to answer previous post... There's a perserver NT service intall script to modify and this sets up a few parameters in the registry (e.g. -javahome)... The script is in bea\wlserver6.1\<yourservername>\config and is calle