Reg: i want to get total qty of partculary month

Hi All,
i have developed a report
the output fields are material,plant and qty.
my requirment is for that material and plant what is the total qty in that month
who to sum the qty?
example is
material       plant      qty
10000023    4210       1
10000023    4210       2
10000023    4210       3
But i want get like this
material       plant      qty
10000023    4210      6
please can you help
thanks
kavi

Try this sample code..
      Sort I_ZQMBW_FUJ_VENDQFR by MATNR PLANT
      LOOP AT I_ZQMBW_FUJ_VENDQFR INTO WA_DATA.
        AT END OF MATNR.
          LOOP AT I_ZQMBW_FUJ_VENDQFR INTO WA_DATA WHERE LIFNR = WA_DATA-MATNR.
            V_COUNT = V_COUNT + 1.
            AT END OF PLANT.
              WA_DATA-TOTAL_QFR = V_COUNT.
              MODIFY I_ZQMBW_FUJ_VENDQFR FROM WA_DATA  TRANSPORTING TOTAL_QFR   
                                                                WHERE MATNR = WA_DATA-MATNR
                                                                   AND   MTH = WA_DATA-MTH.
              CLEAR V_COUNT.
            ENDAT.
          ENDLOOP.
        ENDAT.
      ENDLOOP.
Hope this helps...

Similar Messages

  • To get total qty delivered using ALV in a report

    Hi All,
    I am getting Quantity Delivered iout-lfimg in a ALV Report, in the last line I have to display total qty delivered. Can some one please help me to get this total qty delivered using ALV.
    Thanks,
    Veni.
    FORM get_data.
      SELECT Avbeln Akunag Avsbed Awadat_ist
             Bwerks Bmatnr Blfimg Bvrkme
             C~vbeln
             INTO TABLE IDELI
             FROM LIKP AS A
             INNER JOIN LIPS AS B
                       ON avbeln = bvbeln
             INNER JOIN VBFA AS C
                       ON Bvbeln = Cvbelv
                       AND BPOSNR = CPOSNV
             WHERE A~VBELN IN S_VBELN
                   AND A~ERDAT IN S_ERDAT
                   AND A~ERNAM IN S_ERNAM
                   AND A~VSTEL IN S_VSTEL
                   AND A~VKORG IN S_VKORG
                   AND A~KUNAG IN S_KUNAG
                   AND A~VSBED IN S_VSBED
                   AND A~WADAT_IST IN S_WADAT
                   AND B~MATNR IN S_MATNR
                   AND B~WERKS IN S_WERKS
                   AND C~VBTYP_N = 'Q'.
    ENDFORM.                    " get_data
    FORM process_data.
      loop at ideli.
        if sy-subrc = 0.
    concatenate ideli-vbeln ideli-ddeli into lv_wdelno.
          MOVE ideli-vbeln  TO iout-vbeln.
          MOVE lv_wdelno       TO iout-wdelno.
          MOVE ideli-kunag  TO iout-kunag.
          MOVE ideli-vsbed  TO iout-vsbed.
          MOVE ideli-wadat_ist  TO iout-wadat_ist.
          MOVE ideli-werks  TO iout-werks.
          MOVE ideli-matnr  TO iout-matnr.
          MOVE ideli-lfimg  TO iout-lfimg.
          MOVE ideli-vrkme  TO iout-vrkme.
        endif.
        append iout.
        clear iout.
        clear lv_wdelno.
      endloop.
    ENDFORM.                    " process_data

    Hi,
    While building the fieldcatalog, for the total qty column use the below code :
    gs_fieldcat-do_sum = 'X'.
    Thanks,
    Sriram Ponna.

  • Reg: i want to get nagative values for movement type 102

    Hi All
    I have developed  a report
    in that report
    output fields are
    po no     mater docment no  movement type   qty     netprice
    500023     4990                         101              10       100
    500024     4556                         102               12       200
    this is the output i am getting.
    for movement type 102 i want to get the nagtive  values .
    example
    po no     mater docment no  movement type   qty     netprice
    500023     4990                         101              10       100
    500024     4556                         102              -12     - 200
    pls can u help
    who to write logic
    thanks
    mars

    hi,
    use this.
    loop at itab.
    if itab-bwart = '102'.
    itab-menge = - ( itab-menge ).
    itab-netpr = - ( itab-netpr )
    endif.
    endloop.

  • I want to get total to state wise

    Hi ,
    i am geting total of tax to ALL jusdiction codes of all states .but i want total tax to indiviual state.
    can any body tell .
    what is the logic ,i have to use...
    thanks,
    aravind.

    Hi,
    you have to use control break statements.
    check this sample prog and work out similarly
    tables:mara.
    select-options:s_matnr for mara-matnr.
    data:begin of itab occurs 0,
    matnr like mara-matnr,
    mtart like mara-mtart,
    ntgew like mara-ntgew,
    end of itab.
    data:v_ntgew like mara-ntgew.
    select matnr mtart ntgew
    from mara
    into table itab
    where matnr in s_matnr.
    << sorting the table by material type and for every material type,i am summing the net weight>>
    sort itab by mtart.
    loop at itab.
    at new mtart.
    clear v_ntgew.
    endat.
    write:/ itab-matnr,itab-mtart,itab-ntgew.
    v_ntgew = v_ntgew + itab-ntgew .
    at end of mtart. 
    write:/50 v_ntgew.
    endat.
    endloop.
    Regrds,
    Sowjanya.

  • Get total in ALV report

    Data : Begin of it_data,
    kunnr type kunnr,
    name1 type name1,
    amt1 type btrt01, " CURR 15,2
    end of it_data.
    loop at it_data into wa_data
    endloop.
    Hello friends,
    I am developing one ALV report with 20 rows.
    I have filled one internal table with some fileds like amount.
    I want to get total of all amount1 in AMT1 field.
    So, How to get total of amount in same internal table in ALV report ?
    It is ok if i get duplicate rows in internal table.
    note : i need not data in field catlog
    Points 'll be awarded soon.
    Regards,

    Hai,
    While Defining Field Catalog,Specify do_sum = 'X' for the field which you want the Total.Before that u have to sort that Values.
    JUST CHECK THIS SAMPLE PROG
    TABLES : STKO,STPO,MAKT,MAST.
    TYPE-POOLS : SLIS.
    DATA : BEGIN OF ISTKO OCCURS 0,
    STLNR LIKE STKO-STLNR,
    DATUV LIKE STKO-DATUV,
    MATNR LIKE MAST-MATNR,
    BMENG LIKE STKO-BMENG,
    BMEIN LIKE STKO-BMEIN,
    END OF ISTKO.
    DATA : BEGIN OF ISTPO OCCURS 0,
    STLNR LIKE STPO-STLNR,
    IDNRK LIKE STPO-IDNRK,
    MENGE LIKE STPO-MENGE,
    MEINS LIKE STPO-MEINS,
    MAKTX LIKE MAKT-MAKTX,
    END OF ISTPO.
    DATA : BEGIN OF IMAKT OCCURS 0,
    MATNR LIKE MAKT-MATNR,
    MAKTX LIKE MAKT-MAKTX,
    END OF IMAKT.
    DATA : BEGIN OF IMAST OCCURS 0,
    MATNR LIKE MAST-MATNR,
    STLNR LIKE MAST-STLNR,
    END OF IMAST.
    DATA : IFIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    WFIELDCAT TYPE SLIS_FIELDCAT_ALV,
    ILAYOUT TYPE SLIS_LAYOUT_ALV,
    IKEYINFO TYPE SLIS_KEYINFO_ALV,
    IEVENT TYPE SLIS_T_EVENT,
    WEVENT TYPE SLIS_ALV_EVENT,
    ISORT TYPE SLIS_T_SORTINFO_ALV,
    WSORT TYPE SLIS_SORTINFO_ALV.
    PARAMETERS : P_NUM TYPE I DEFAULT 10.
    START-OF-SELECTION.
    PERFORM GETDATA.
    PERFORM GETHEADERMAT.
    PERFORM GET_MAT_DESC.
    PERFORM BUILD_FCAT_HEAD.
    PERFORM BUILD_FCAT_ITEM.
    PERFORM BUILD_KEYINFO.
    PERFORM BUILD_EVENT_TAB.
    PERFORM BUILD_SORT_TAB.
    PERFORM BUILD_LAYOUT.
    PERFORM DISPLAY_DATA.
    *& Form GETDATA
    text
    --> p1 text
    <-- p2 text
    FORM GETDATA .
    SELECT STLNR DATUV BMENG BMEIN INTO CORRESPONDING FIELDS OF TABLE ISTKO
    FROM STKO UP TO P_NUM ROWS.
    IF NOT ISTKO[] IS INITIAL.
    SELECT STLNR IDNRK MENGE MEINS INTO TABLE ISTPO FROM STPO FOR ALL ENTRIES IN ISTKO
    WHERE STLNR = ISTKO-STLNR AND POSTP = 'L'.
    ENDIF.
    ENDFORM. " GETDATA
    *& Form BUILD_FCAT_HEAD
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_FCAT_HEAD .
    WFIELDCAT-TABNAME = 'ISTKO'.
    WFIELDCAT-FIELDNAME = 'STLNR'.
    WFIELDCAT-SELTEXT_L = 'BOM no'.
    WFIELDCAT-OUTPUTLEN = 15.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTKO'.
    WFIELDCAT-FIELDNAME = 'DATUV'.
    WFIELDCAT-SELTEXT_L = 'BOM date'.
    WFIELDCAT-OUTPUTLEN = 15.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTKO'.
    WFIELDCAT-FIELDNAME = 'MATNR'.
    WFIELDCAT-SELTEXT_L = 'Header mat no'.
    WFIELDCAT-OUTPUTLEN = 18.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTKO'.
    WFIELDCAT-FIELDNAME = 'BMENG'.
    WFIELDCAT-SELTEXT_L = 'Base qty'.
    WFIELDCAT-OUTPUTLEN = 15.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTKO'.
    WFIELDCAT-FIELDNAME = 'BMEIN'.
    WFIELDCAT-SELTEXT_L = 'UOM'.
    WFIELDCAT-OUTPUTLEN = 3.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    ENDFORM. " BUILD_FCAT_HEAD
    *& Form BUILD_FCAT_ITEM
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_FCAT_ITEM .
    WFIELDCAT-TABNAME = 'ISTPO'.
    WFIELDCAT-FIELDNAME = 'STLNR'.
    WFIELDCAT-SELTEXT_L = 'BOM no'.
    WFIELDCAT-NO_OUT = 'X'.
    *WFIELDCAT-HOTSPOT = 'X'.
    WFIELDCAT-OUTPUTLEN = 10.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTPO'.
    WFIELDCAT-FIELDNAME = 'IDNRK'.
    WFIELDCAT-SELTEXT_L = 'Material no'.
    *WFIELDCAT-HOTSPOT = 'X'.
    WFIELDCAT-OUTPUTLEN = 18.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTPO'.
    WFIELDCAT-FIELDNAME = 'MAKTX'.
    WFIELDCAT-SELTEXT_L = 'Material desc'.
    WFIELDCAT-JUST = 'C'.
    WFIELDCAT-OUTPUTLEN = 30.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTPO'.
    WFIELDCAT-FIELDNAME = 'MENGE'.
    WFIELDCAT-SELTEXT_L = 'Item qty'.
    WFIELDCAT-OUTPUTLEN = 15.
    WFIELDCAT-DO_SUM = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-TABNAME = 'ISTPO'.
    WFIELDCAT-FIELDNAME = 'MEINS'.
    WFIELDCAT-SELTEXT_L = 'UOM'.
    WFIELDCAT-OUTPUTLEN = 3.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    ENDFORM. " BUILD_FCAT_ITEM
    *& Form BUILD_KEYINFO
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_KEYINFO .
    IKEYINFO-HEADER01 = 'STLNR'.
    IKEYINFO-ITEM01 = 'STLNR'.
    ENDFORM. " BUILD_KEYINFO
    *& Form DISPLAY_DATA
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_DATA .
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = 'USER_COM'
    IS_LAYOUT = ILAYOUT
    IT_FIELDCAT = IFIELDCAT[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT = ISORT
    IT_FILTER =
    IS_SEL_HIDE =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS = IEVENT[]
    IT_EVENT_EXIT =
    I_TABNAME_HEADER = 'ISTKO'
    I_TABNAME_ITEM = 'ISTPO'
    I_STRUCTURE_NAME_HEADER =
    I_STRUCTURE_NAME_ITEM =
    IS_KEYINFO = IKEYINFO
    IS_PRINT =
    IS_REPREP_ID =
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB_HEADER = ISTKO
    T_OUTTAB_ITEM = ISTPO
    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_DATA
    *& Form GET_MAT_DESC
    text
    --> p1 text
    <-- p2 text
    FORM GET_MAT_DESC .
    IF NOT ISTPO[] IS INITIAL.
    SELECT MATNR MAKTX INTO TABLE IMAKT FROM MAKT FOR ALL ENTRIES IN ISTPO
    WHERE MATNR = ISTPO-IDNRK.
    ENDIF.
    LOOP AT ISTPO.
    READ TABLE IMAKT WITH KEY MATNR = ISTPO-IDNRK.
    IF SY-SUBRC = 0.
    ISTPO-MAKTX = IMAKT-MAKTX.
    ENDIF.
    MODIFY ISTPO.
    ENDLOOP.
    ENDFORM. " GET_MAT_DESC
    *& Form BUILD_LAYOUT
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_LAYOUT .
    ILAYOUT-ZEBRA = 'X'.
    ILAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    ENDFORM. " BUILD_LAYOUT
    *FORM USER_COM USING PUCOM LIKE SY-UCOMM PSELFIELD TYPE SLIS_SELFIELD.
    *CASE PUCOM.
    *WHEN '&IC1'.
    SET PARAMETER ID 'MAT' FIELD PSELFIELD-VALUE.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    *ENDCASE.
    *ENDFORM.
    *& Form BUILD_EVENT_TAB
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_EVENT_TAB .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = IEVENT
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    READ TABLE IEVENT INTO WEVENT WITH KEY NAME = 'TOP_OF_PAGE'.
    IF SY-SUBRC = 0.
    WEVENT-FORM = 'TOPOFPAGE'.
    MODIFY IEVENT FROM WEVENT INDEX SY-TABIX.
    ENDIF.
    ENDFORM. " BUILD_EVENT_TAB
    *& Form TOPOFPAGE
    text
    FORM TOPOFPAGE.
    DATA : ILISTHEAD TYPE SLIS_T_LISTHEADER,
    WLISTHEAD TYPE SLIS_LISTHEADER.
    WLISTHEAD-INFO = 'Its a test hierarchical sequential alv dispaly'.
    WLISTHEAD-TYP = 'H'.
    APPEND WLISTHEAD TO ILISTHEAD.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = ILISTHEAD
    I_LOGO = ''
    I_END_OF_LIST_GRID =
    ENDFORM.
    *& Form GETHEADERMAT
    text
    --> p1 text
    <-- p2 text
    FORM GETHEADERMAT .
    IF NOT ISTKO[] IS INITIAL.
    SELECT MATNR STLNR INTO TABLE IMAST FROM MAST FOR ALL ENTRIES IN ISTKO
    WHERE STLNR = ISTKO-STLNR.
    ENDIF.
    LOOP AT ISTKO.
    READ TABLE IMAST WITH KEY STLNR = ISTKO-STLNR.
    IF SY-SUBRC = 0.
    ISTKO-MATNR = IMAST-MATNR.
    ENDIF.
    MODIFY ISTKO.
    ENDLOOP.
    ENDFORM. " GETHEADERMAT
    *& Form BUILD_SORT_TAB
    text
    --> p1 text
    <-- p2 text
    FORM BUILD_SORT_TAB .
    WSORT-FIELDNAME = 'STLNR'.
    WSORT-TABNAME = 'ISTPO'.
    WSORT-UP = 'X'.
    WSORT-SUBTOT = 'X'.
    WSORT-GROUP = 'UL'.
    APPEND WSORT TO ISORT.
    ENDFORM. " BUILD_SORT_TAB

  • How to get total in ALV report in same Internal table?

    Data : Begin of it_data,
            kunnr type kunnr,
            name1 type name1,
            amt1  type btrt01, " CURR 15,2
           end of it_data.
    loop at it_data into wa_data
    endloop.      
    Hello friends,
    I am developing one ALV report with 20 rows.
    I have filled one internal table with some fileds like amount.
    I want to get total of all amount1 in AMT1 field.
    So, How to get total of amount in same internal table in ALV report ?
    It is ok if i get duplicate rows in internal table.
    Points 'll be awarded soon.
    Regards,
    NVM

    Hi Ronny,
    the alv output will display the sum at the last row.
    for this functionality u have do this logic.
    data: lw_fcat type slis_fieldcat_alv.
    data: lt_fcat type slis_t_fieldcat_alv/
    wa_fcat-fieldname = 'AMT1'.
    wa_fcat-tabname = 'ITAB'.
    wa_fcat-do_sum = 'X'.
    append wa_fcat to lt_fcat.
    and then pass it to reuse_alv_grid_display function,
    regards,
    Santosh Thorat

  • How to get total ?

    Hello  friends,
    I have one internal table which contains following reords
    MATNR  WERKS   STLNR       IDNRK    MENGE
    97131     TX02       00000522    99208A    16.000
    97131     TX02       00000523    99208A    16.000
    97141     TX02       00000570    99207A     6.000
    97141     TX02       00000570    99207A    10.000
    97141     TX02       00000570    99207A     4.000
    I want to get total of MENGE for same MATNR, WERKS,STLNR and IDNRK. and append in to the another table.
    So above result will be
    97131     TX02       00000522    99208A    16.000
    97131     TX02       00000523    99208A    16.000
    97141     TX02       00000570    99207A    20.000
    Please give me example.
    Regards,
    Ronny

    Hi Ronny Hanks,
    Insted of Append you need to write Collect.
    See this example program for collect statement.
    DATA: BEGIN OF LINE,
            COL1(3) TYPE C,
            COL2(2) TYPE N,
            COL3    TYPE I,
          END OF LINE.
    DATA ITAB LIKE SORTED TABLE OF LINE
              WITH NON-UNIQUE KEY COL1 COL2.
    LINE-COL1 = 'abc'. LINE-COL2 = '12'. LINE-COL3 = 3.
    COLLECT LINE INTO ITAB.
    WRITE / SY-TABIX.
    LINE-COL1 = 'def'. LINE-COL2 = '34'. LINE-COL3 = 5.
    COLLECT LINE INTO ITAB.
    WRITE / SY-TABIX.
    LINE-COL1 = 'abc'. LINE-COL2 = '12'. LINE-COL3 = 7.
    COLLECT LINE INTO ITAB.
    WRITE / SY-TABIX.
    LOOP AT ITAB INTO LINE.
      WRITE: / LINE-COL1, LINE-COL2, LINE-COL3.
    ENDLOOP.
    <REMOVED BY MODERATOR>
    Mahi.
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 9:39 AM

  • How to get last week of the month from a month

    Hello,
    I want to get last week of the month from a month. For example: If Input = April then Output = Week17. Is there any function module? Or what should be the logic inorder to meet such requirement?
    Thanks in advance for your answers.
    Nitin.

    Hi,
    Just cpoy and past this program, and see the result and apply for you requirements.
    Data: ZSCDATUM TYPE SCDATUM,
          ZKWEEK TYPE KWEEK,
          ZDAY TYPE SY-DATUM,
          ZLDAY TYPE SY-DATUM,
          ZWK(3) TYPE N,
          ZM(2) TYPE N.
          ZDAY = SY-DATUM.
          ZM = ZDAY+4(2).
          CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in                  = ZDAY
            IMPORTING
             LAST_DAY_OF_MONTH       =  ZLDAY
    *       EXCEPTIONS
    *         DAY_IN_NOT_VALID        = 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.
          ZSCDATUM = ZLDAY.
          CALL FUNCTION 'DATE_GET_WEEK'
            EXPORTING
              date               = ZSCDATUM
           IMPORTING
             WEEK               = ZKWEEK
    *       EXCEPTIONS
    *         DATE_INVALID       = 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.
          ZWK = ZKWEEK+4(2).
          WRITE: ZKWEEK.
          WRITE: ZWK.
    Thanks
    Reddy

  • SSRS 2008 have 2 colums with amount needs to add Total cost and than total cost column divide by Total qty get avg

    SSRS 2008,  have this report
     Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    Avg  Cost                                                                                      
    $2050/4=  512.50
    how to write this exp to get value $ 512.50 
    what I did , its not giving me correct result,
    =Sum(Fields!estCOSTAMOUNT.Value+Fields!COSTMARKUP.Value)/(Fields!QTY.Value)
    can some one please advise what I am doing wrong.
    thanks in advance

    I tried both exp, did not work
    may be I was not  clear in the question
    Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    2 pcs ------------------$ 1500.00  --------------=$100.00 ----------------$1600.00
    Total   qty  6  pcs-----$ 3500.00------------------$150.00---------------$ 3650.00
    Avg  Cost                                                                                      
    $3650..00/6=  608.33
    my field name
    =Sum(Fields!COSTAMOUNT.Value)  +  want to add cost amount and Mark up and divide with qty total
    =Sum(Fields!COSTMARKUP.Value)
    =Sum(Fields!QTY.Value)
    please help how can I write it to get the result

  • MCBZ report how to get total stock qty calculation?

    Dear Guru,
            if i checking one material in Tcode:MMBE having unrestricted stock is 356 & reserved qty is 56. After this when i am executing report MCBZ-- Current stock reqmt list & get Total stock qty is 120 for same material.
    can any one tell me how it is calculated (i.e. Total Stock).
    My requirement is we want to see a report which shows diffrence bewtwwen satfey stock & total stock. so i am using this report, if any othere suggestion then please reply me.
    Best Regards,
    Dev

    Dear,
           You can see in MD04 t-code here u can find safety stock and inventory stock.
    Regards
    Ravi

  • Can I reload a totally "clean" version with nothing brought forward from the past. I was hacked and don't want to get Vorstan automatically on my system? Thanks

    I got infected with Vorstran (or Vorstan?) many months ago. I'd love to reload Firefox now that I have everything straightened out on my computer, but in the past when I had to reload Firefox, all my old book marks, came back. (They must be saved to load for me the next time I heed to reload??) Not wanting to get Vorstran back on a reload, I have hesitated to try to reload as when it comes in, it infects all browsers, overwrites my backups and generally locks itself in the system Can I get a totally clean version of Firefox to load to completely start over?? I don't want to bring anything forward from the past at all. No book marks, favorites, folders, nothing. Can that be done somehow so I can finally again use my favorite browser? My old email that is now closed, was "[email protected]". I had to change it to the current one "[email protected]" How would I go about getting a totally clean version of firefox? Thanks
    Dennis Bloomquist
    <sub>edit: removed personal information for your protection. (philipp)</sub>

    Hi
    if you are absolutely, 100%, completely certain that you want to start from scratch (after having made sure that your system is clean of the malware);
    To completely remove your old profile, you must manually delete the Firefox folder;
    # Click the Windows Start button, and select Run….
    # Type in %APPDATA% in the Run prompt then click OK.
    # Open the Mozilla folder.
    # Delete the Firefox folder.
    Next, install a clean copy of Firefox from ([https://www.mozilla.org/en-GB/firefox/new/ link]).
    Welcome back, we've missed you.

  • I bought an iphone 4, but then exchanged it for a 4s. When they exchanged it they put the refund of the 4 onto a gift card and then i payed the outstanding balance with my bankers card, if i want to get a total refund will they split it?

    I bought an iphone 4, but then exchanged it for a 4s. When they exchanged it they put the refund of the 4 onto a gift card and then i payed the outstanding balance with my bankers card, if i want to get a total refund will they split it between a gift card and my bankers card?

    Expanding on what Tim said to make sure it's clear, only the carrier to which the iPhone is locked can authorize unlocking. If Optus is the original carrier, as would seem to be the case, O2 would not be able to unlock it. Only Optus can authorize the unlock, so you'll need to contact them. They say, though, that only the account holder can apply for unlocking, so you might not be able to get it unlocked and will have to work through the person from whom you bought the iPhone.
    For more information, see the Optus FAQ on unlocking.
    Regards.

  • Reg.Sum of PO and GR qty in ME23N

    Dear All
    In ME23N I want to see the total qty of PO and GRN.
    at present I have to sum all the qty by item wise.Please advise.
    Thanks
    Rajakumar

    HI,
    In the PO you have Qty field what you have ordered and in the PO history tab you can see for how much GR is been done.
    Or go to ME2N and with the help of selection parameters like WE101, WE102, WE103, WE104, WE105, WE106, WE161, WE162, u can get the report.
    Thanks & Regards
    Kiran

  • Total Qty

    Dear all
    We have sub-contracting scenarion
    my client used to give unifor stiching to subcontractind vendor for different sizes, we maintain BOM for cloth,buttons and etc
    Ex.
    for material 200820:PILOT BLAZER u2013 SIZE u2013 48 u2013 (DHIR) it is a finished product.
    Components:
    200175     FABRIC-BLACK-NO.0134013730-SHADE-3-RYMD     276      M
    200177     LINING  cloth- RED                                                     276      M
    200795     ABS BUTTON WITH LOGO "BIRD" SIZE:24L     828      EA
    200796     ABS BUTTON WITH LOGO "BIRD" SIZE:32 L     414      EA
    this is for one size -48 ,we have different sizes say 10-12 ,we are giving only one PO(sub-con) PO to vendor ,my requirement is
    for all the sizes we provide same cloth and same buttons etc. now i want know the total PO qty material wise with out checking each and every line item in PO (PO has 15 line item)
    i mean 200175(FABRIC-BLACK-NO.0134013730-SHADE-3-RYMD) how much qty i need to send Vendor for all the Sizes), where can i get this is there any report to get the or i need to customize, or i can find out from tables.
    Regards
    venu gopal

    Hi,
    If you do MB1B + 541 + PO reference w/o specifying the PO item (just give the PO no. w/o item) or you run transaction ME2O for your vendor you can see the aggregated qty of your components - and you can ship it out to your vendor from these transactions.
    (In ME2O, the summarized qty contains component qty necessary for all open L-PO > here you can see the details clicking on the icon under the material (component) no.)
    BR
    Csaba

  • Want to get my new HP-ENVY-k073 Back to Clean PC State

    I don't like Windows, except for Win2kPro, and the more they change it, the less I like it.  When I first got this laptop, which is last week, it drove me crazy with the rapid shifts from one view to another, and it is a hard drive hog, so I decided to replace it with Ubuntu 14.04, which being a variation on Linux, is completely free.  I use it sucessfully on my older but less capable laptop and desktop.  So I booted from an external usb DVD/CD drive to a LiveCD (actually a LiveDVD) image I had downloaded and burned to a DVD, and got Ubuntu installed in place of Windows 8.1.  I was able to boot up and run Ubuntu fine. But then I needed to copy a usb HDD drive's contents to the new laptop's HDD so as to free up the usb HDD to allow me to reformat it as an ext4 drive, and replace the corrupted NTFS file system on it.  The only tool that would tackle the NTFS drive was chkdsk.exe, and I had to run that off my wife's laptop with Win7 on it.   Win8.1 proved too difficult to work with, which is why I gave up on trying to run chkdsk.exe from it when I first got the new laptop.  Chkdsk.exe "fixed" some file and folder issues, but finally failed when it ran out of clusters to remap the drive's contents to.  At least it appeared to give me back access to the dtored folders and files there, but appearances can be misleading.  There was a lot of cross-threading there that spoiled things going forward. So, using a terminal in Ubuntu on the new laptop, I made some command line entries:     mkdir ~/tmpdrive:    sudo cp -rfp /media/oldefoxx/My\ Passport/* ~/tmpdrive/ The My\ Passport drive had already been mounted by clicking on it under Places in the GUI.  So it started copying all the folders and files from the "My Passport" (usb HDD ) to the new /home/oldefoxx/tmpdrive folder, a process that would take hours.  So I set it aside and went on to other things with my older laptop.  And then I slept. The sudo statement?  Gave me super-user powers for that one command.  Dealt with any folders and files that I, oldefoxx, might not have access to otherwise. The cp command?  Unix shorthand for the word "copy".  I could have used mv ("move") in its place, but I allow for human error and leave the original in its place for later efforts in case something goes wrong. The -rfp flags on the cp command?  r means reiterate (repeat) for each subfolder and file found within.  f means force the replacement of any filder or file that has the same name on the destination end.  p means preserve the owner/group/user flagged bits associated with the different folders and files being dealt with. Otherwise, everything gets reflagged as being "root" (what my temporary super-user status marks me as). On reviving the darkened screen (happens after a certain timeout period), I was unpleasently surprized to see I had completely run out of hard drive space on my new laptop, so the copy over was incomplete.  Run out of hard drive space?  No way!.  I had a bit over 620GB of contents on that usb HDD, and way more than that on my new laptop!  What went wrong?  Two things: (1)  Unfortunately, instead of just manually deleting and recreating my new ext4 and swap partitions, I had left it to the installer to do it for me, and with Ubuntu 14.04, it now recommends using a LV approach, which is suppose to simplify future partitions moves and relocations.  So I allowed this, and that made the new format more bulky than I had allowed for.  I won't make that mistake again. (2)  The real space eater though turned out to be that chkdsk.exe had cross-threaded files and folders among each other, so that both folders and files were showing up all over the map of the usb HDD drive.  The total apparent drive space required to hold all these as separate entities must have been not only gigantic (multi-Gs) but possibly tremendous (into the T's).    No wonder I had not only run out of destination drive space, but had reaced zero bytes left. I had access to Ubuntu's GUI still,  but with no drive space left, there was nothing I could do.   To see if it would help, I decided to first do a reboot.  Ubuntu came up, but gave me no login screen.  So I decided to reboot to a LiveCD.  But that didn't work, because the LiveCD has to build some temporary map structures somewhere, and apparently instead of using a temporary RAM (Random Access Memory) structure in memory, it must go to the internal hard drive, which at this point is so full that it won't permit this.  So the LiveCD approach failed.  I decided to just try and recover part of what I had had already copied over later, and just go ahead and wipe the My Passport drive of its contents and use my older laptop to run LiveCD and install Ubuntu to it, along with a complete reformat of the drive as ext4.  I did that, but this effort was flawed in two respects: (1)  I got the install done okay, but the install made the usb HDD the primary boot drive for GRUB2, while GRUB2 did not allow for the fact that a usb HDD is non-permanent.  My old laptop lost the ability to boot when the usb HDD drive was not connected, and the usb HDD drive did not have GROB2 on it to serve as a stand-alone bootable device.  I had to use two new sets of terminal commands to take carfe of this.  With the usb HDD drive attached, I booted up on my old laptop,and did this in the terminal window:    sudo grub-install /dev/sda    sudo update-grub    sudo grub-install /dev/sdb    sudo update-grub That took care of it.  With or without my usb HDD being attached to my old laptop, it is now bootable.  the /dev/sda is how my first internal hard drive is identified.  Since I only have one internal drive, my usb HDD drive becomes the next lettered drive, or /dev/sdb.  Haf I two internal drives, it would be /dev/sdc, and so on.  In Unix and Linux, drives are treated as folders under the /dev folder (dev being shorthand for devices).  When a user mounts a device, it is added to the mounted devices list kept under /media/[username] folder.  When a user is created, they get a new folder under /home and a new one under /media (in earlier times, they used /mnt instead of /media, and mnt stands for mount). There is a file named /etc/fstab that identifies what devices are mounted sutomatically whenever the system boots up.As super-user, you can make changes to this table file, but screw up, and you can make your system unbootable. All this seems aside from the point of this post.  At some point, my new HP ENVY 17-k073 became unbootable.  I can't get to it any more, though I;ve tried F9 (select boot device), F10 *BIOS Setup), ESC, and every other function key to try and make progress.  EXC brings up a mini-grub, but I don;t know how to use it.  I can type in help but the list seems endless, and I can't see most od it before it goes off screen.  Working with the part I can see, I can see what a few commands say, but in most cases I don;t have enough insight to know what parameter(s) to supply.  It does tell me that hd0 (hdo,msdos) has errors, but so apparently do the internal and usb CD drives.  If I want to do a boot, I have to load the kernel first, but it doesn't tell me how to load the kernel.  There is a lot I am missing here, and this might be the one tool at my disposal to deal with it, and I don't know how. Under F9, of devices I can pick from, is listed my old My Passport designation, but that's no longer available.  I see no way to add usb-ext4 as a choice to this brief list.  None of the choices shown are bringing my new laptop to life again.  The one I really haven't explored at length involves the internal CD-ROM drive, for two reasons:  (1)  It is extremely difficult to get the drive tray to extend.  Probably the flimiest thing on this Laptop, aside from getting the battery pack to properly latch in and not drop out.  (2)  When I could get the tray to extend and put a LiveCD in it, the PC refused to boot from it.  I' can use this LiveCD elsewhere and it does it's thing, but on this laptop, it won't.  I've tried other LiveCDs with no better success.  But it did finally read from the usb DVD/CD RW frive for my initial install of Ubuntu.  I wonder id I have a bad DVD/CD RW drive in this thing?  What can I do about that?  I've only had this HP EMVY 17-K073 drive three days now, taking delivery on this last Thursday, and it is now only Sunday. Anyway, I'm in a tight spot here, and want to get back to one of a few possible states here.  The first one is my first choice: (1) Be able to boot from my usb-connected usb-ext4 HDD so that I can recover my transferred folders and files from the crammed-full 17-K073 drive first. (2)  Be able to reboot from my externally-connected DVD/CD RW drive so that I can reattempt a complete reinstall of Ubuntu, even though this means losing my hord of stored folders and files in the process. (3)               

    I appreciate the thought.  But as you say, that means getting into the guts of the laptop, and that should not be necessary.  No, the real trick is to get the PC back into boot form somehow. I spent quite a bit of time on a support chat session last night, and though reluctant to help me at first (I had wiped out Windows 8.1, and they were disinclined to deal with a 3rd party OS), I convenced them it was now a hardware issue.  That is, how to get the PD to recognize one of three boot sources if it was not going to boot up to the internal hard drive.  It had to be something related to using F9 and/or F10 function keys.  So we went through some of the functions of the function keys during the black screen phase of the boot process.  I found out that F1 gives you information about this particular laptop, including the derial number, that F2 allows me to test memory, check the hard drive, or pick a different language. F9 lets you select a specific device to use during bootup.  The oriblem was, F9 was showing the usb hdd selection as being specific to my wd (Western Digital) My Passport 0748 drive, and it now had a different name and assigned UUID due to having been reformatted from NTFS to ext4.  I had to get rid of that specific drive reference, and F9 gave me no way to do it.  It had to be somewhere in the Systems Settings, which are accessed via the F10 key.  But I had already looked at the boot device order in the Systems Settings, and it was okay, and tried both with and without the legacy boot option.  Still no go.  Support gave me a few more ideas to try, but it was real late, I was tired, so I elected just to use F3 and text the built-in SSHD during my rest period (SSHD stands for Solid State Hard Drive, which is an excellent feature of this laptop, as mechanical hard drives wear out and develop problems over time). So when I woke up today, I hoped the changes made earlier would help.  They didn't.  I turned Legacy support back on, and tried to get the LiveCD to load properly from thr internal DVD/CD drive.  This time it worked.  I'm up running on the LiveCD, and tried an install, but somehow that got hung, so I just rebooted back to the LiveCD and went into Try mode, which is much like the real thing, but mostly isolated from the existing hard drives.  I had to figure out how to look for any existing files on my internal HDD so that I could copy them back to the reformatted My Passport drive, now renamed usb-ext4.   The search for existing hard drives under Ubuntu begins under /dev,  but the LiveCD treats the devices there somewhat differently than normal.  It adds a subfolder /mapper in which it keeps files that somehow manage the process, and I don;t have a clue as to how to use those files myself. But I know Ubuntu well enough to know that there is a folder named /media under which a logged in user appears by name, and when I checked with a "dir /media/" command, the LiveCd had me down as being "ubuntu".  That was my username when using the LiveCD.  When I did a "dir /media/ubuntu/", I saw four listings.  Two were HDDs that were being identified via their UUIDs, so had about 16 mixed characters that uniquely identify each.  And I had cdrom and usr-ext4. I did a change directory to the first long UUID name by typing in "cd /media/ubuntu/" then doing a screen copy-and-paste to put one of the UUIDs after the last slash ("/").  In terminal mode, copy-and-paste are slightly different than found in similar operations else where.  First, what gets copued has to be highlighted with the mouse and left button held down.  When you have the exact area you want to go to the clipboard highlighted, you hold down the Ctrl+Shft keys together and press the "C" key.  Now it is in the clipboard.  Then you use Ctrl+Shft again and press the "V" key.  The copied text in the clipboard is then copied to the place on the command line where the cursor sits.   Press Enter, and you have changed directories to that point.  A '"dir" commanf now shows you the contents of the root folder on that drive.  The contents of the first drive were not what I needed, so I repeated this process to get to the root of the 2nd HDD.  This had the recognizable folders for Ubuntu in it, so this was the drive I had installed Ubuntu to, and I then used a repeat of the "dir" and "cd" commands ro walk up the home > username > foldersought > folderfilestore, where rhe username, foldersought, filderfilestore are simply representing the actual names used. When I got to folderfilestore, I was refused oermisson to enter.  This happened in the GUI as well.  Well, where the users may be balked, root or super-user have no problem.  LiveCD does not permit you to log in as root, but in Terminal mode, you can become super-user by typing in :sudo -s" or "sudo su" and pressing Enter.  From the LiveCD, you don;t even have to enter a password.  I mean you are just there.  To avoid further folder and file disputes over priveleges, I used the following command:  "chown -R nobody:nogroup " and stuck the name of the folderfile store on the end.  In a few moments, that folder and everything it contained had all priveleges revoked.  Now I could selectively go through this folder from the GUI and eliminate needless or unwanted folders and files, while merging the remaining on the separate storage partition I had previously formatted on the externally connected HDD that had been My Passport. Why am I going into such detail?  Because this is what you can do with a LiveCD of any distro of Linux, and you can do it all with free software that you download off the internet.  I just prefer Ubuntu, because it is widely supported and most like Windows in terms of its Gnome or KDE GUIs.  That means less relearning.  Anf the magic that Linux is, is (1) Better, faster, smaller than Windows,  (2) Completely free,  (3) able to work with Microsoft volume and file formats so you don't lose everything you already have, and (4)  Even run some MSDOS and Windows programs via an add-in named Wine, which is also free.  You can get recovery disks for Windows, but I find having a LiveCD another effective way to deal with lots of problems.  Like now, I am using it to work around a crammed hard drive problem so that I can reformat the internal drive, reinstall Ubuntu from the same LiveCD, and keep on going.  I can reinstall from a Live CD without disturbing my existing account or the files already there.  Or I can take over the whole drive and erase everything on it.  Or I can install Ubuntu along side the existing operating system (no me though.  I have no use or regard for any Windows version pass XP).  Or you can install Ubuntu to run as a client of Windows (some like it this way).  Or you can install a VM in your existing OS and install Ubuntu in a Virtual Machine client, which isolates it pretty well from the external world. To a lot of people, Windows is it.  You need go no further, except to buy the next major release coming out of Microsoft.  The biggest part of MS' profits is not enhancing existing Windows, but coming up with something a bit newer, better, or offering more features than is already on the streeets in the form of an earlier version of windows.  That is profiting off ofr having created a large worldwide dependency on Windows, and just catering to people's desire to do more and more things, like fingerprint recognition, touchscreen, webcam, and playing DVDs on your PC instead of via a player attached to your TV.  You can even attach your PC to the TV via a an HDML port to turn your PC into a media center.  I mean this is all do-able, but why would you want to?   What you are really buying into is the idea that the PC can do anything, but it takes Windows to make it happen.  So you have to buy newer, faster, bigger PCs as Windows gets bigger, more bloated, and more demanding on storage space and required memory. If I buy a PC, (and this new laptop qualifies), I don't pay attention to whether it comes with Eindows 7 Pro, Windows 8, 8,2, or 8.3.  I'm going to trash all that anyway.  And MS' enticement, that I can have a free upgrade to Windows 10 is not something I need to hear.  The ubuntu (and other Linux distros) community is worldwide and people help each other through forums.  Support for Windows is not so lavished, and while some of it is free to visit and download from, you find that technical support is of the pay-extra kind or of the as covered by the warrantee nature. I won't close this thread yet.  I'm at the start of a lengthy copy-reformat-reinstall-recopy effort, and just because I can boot up from a LiveCD and do some of it does not mean that I will find the PC able to boot from the internal drive when the reinstall is complete.  Until then, it is a play it by ear effort still.  

Maybe you are looking for

  • Using iPhone 3G and iPad on one iTunes account?

    I have an iPhone 3G that I have been using on an older iMAC that can only support up to OS 10.4.11. I can't update the iPhone to OS4.2 because the iMAC can't support 10.1 iTunes, because it can't support OS 10.5 or higher. I also have a Gateway lapto

  • HP Premier photo imaging

    HP 6840 Premier photo imaging, and Windows XP. Unable to get a solution from the support team, who apparently have never heard of my problem. Now, for the fifth time I have lost my 20 odd albums, each holding about 1000 photos.. They just disappear f

  • AC 5.3 RAR: Adhoc analysis

    Hi experts, today we added another client (new source) from the ERP system to Access Control. Thus we have 2 clients from one ERP system and another seperate ERP system connected to Access Control. We also updated the functions for the new system and

  • Best wmv to mov video converter

    Hi all, I'm really new to mac and have been looking for a video converter for my WMV files. I want to use them in iMovie but the only way to do that is to convert the file types. What would be the best converter out there? Will I loose any quality wh

  • Somehow i have genius, and often a song will not play because it isn't on my genius playlist.  tried adding it and it won't add..  do i need genius?  what does it do for me?

    often i try and play a song and the genius menu comes up and stops me.  do i need genius?  what does it do for me?  one favorite song is not on the genius playlist, and they won't add it.  it is a big bother, actually