FIFO Methodology at Mat Costing

Hi there,
Has anyone worked where the material cost of material masters was based on FIFO (and not Standard or MAP) ?
I guess it can only be done when BM is activated with split valuation ?

i am pretty sure it is possible with and without split valuation, as well as with and without batch managment.
precondition is that you select the field LIFO/FIFO relevant on the accounting screen, when you create a material master record.
read the FIFO chapter in the book for balance sheet valuation:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/3a/ce913879c8cf29e10000009b38f889/frameset.htm

Similar Messages

  • Report to display Mat Cost Planned Labour Cost and Over head cost

    Hi Abapers,
    Greetings of the day..
    I need a Report that Display Material Cost , Planned Labour Cost,Actual Labour Cost and Over head value
    where do i start from and what are the tables involving in this report..
    if already done this A code snippet is more helpful...
    Thanks In Advance...
    Thanks & Regards
    Sathish

    Assuming you are talking about Maintenance Order.
    Use table: PMCO.
    Here the line with field VORGA having value KPPS gives the Planned Costs of the Order in the field WRT01.
    Similarly, the line with field VORGA having value RKL gives the Actual Costs of the Order in the field WRT01.
    Also have a look at Tcode KKBC_ORD.
    Jogeswara Rao K

  • Report which include sales order, material, qty, raw mat cost, sold gds cst

    Dear All,
    I want report which has to provide Sales order No, Material, Material Description, Raw material cost and Cost of sold goods.
    Please suggest
    Regards

    Hi,
    VA05 return all the orders that are present under one customer.
    It will give you customer number,material and material description etc...
    But failed in other fields.
    So you have to develop a Z report with the help of your ABAPer.
    Regards,
    Krishna.

  • Raw mat and procured finish product cost

    we need to run cost run for both raw material and product, we want have the following scenario:
    first mark the raw mat. cost run,  then our finished product will get the future price of raw mat and base on BOM to update the future price of finished product.
    after we mark finished product, we then release raw mat standard price and subsequently release finished product.
    is any solution we can define  costing variant for above scenario?
    we have another scenario, we need to run costing run for finished good A, but this product A 's BOM contain only one procured finished product B, B doesn't have BOM and purchase info record, how can we change product B 's price, so finally finished product A 's standard price will be updated upon costing run?

    Hi ,
    In Costing Variant .. we have a Tab for valuation variant . In the valuation variant type , we have seperate valuations for raw Materials , activities, subcontracting etc .
    Cost Estimate with Quanity Structure will refer to the Costing Variant and compute costs .. Hence , maintain Costing Variant and Valuation Variant properly..
    This will solve both your issues..
    Kindly revert back for any further questions..
    Regards
    Sarada

  • Raw material cost report for production of finished produt.?(urgent..REWARD

    Hi,
    any one can help in this issue.
    i am not getting the raw materila cost & manfacture conversion cost for  for the bom of FG - SFG - SFG - SFG- RAW
    FG - finished goods,
    SFG - semi finished goods
    RAW - raw material.
    plz provide the solution.
    raw material  and manfacture conversion cost is calculated in PERFORM z_process_data. subroutine.
    REPORT z_co_production_cost_nsk.
    TABLES: afko, bkpf, t001w , caufv.
    TYPE-POOLS: kkblo,
                slis.
    DATA: d_datefrom LIKE sy-datum,
          d_dateto LIKE sy-datum,
          d_repid LIKE sy-repid,
          d_uname LIKE sy-uname,
          d_returncode TYPE i,
          d_tabix TYPE i,
          d_kokrs LIKE tka01-kokrs,
          d_waers LIKE tka01-waers,
          wa_fieldcatalog TYPE slis_fieldcat_main,
          wa_listevents TYPE slis_alv_event,
          wa_listlayout TYPE slis_layout_alv,
          wa_print_info TYPE slis_print_alv,
          wa_listheader TYPE slis_listheader,
          d_headerlines TYPE i.
    DATA: BEGIN OF t_caufv OCCURS 0,
            aufnr TYPE caufv-aufnr,
            werks TYPE caufv-werks,
            objnr TYPE covp-objnr,
            gamng TYPE caufv-gamng,
            plnbez TYPE caufv-plnbez,
            rsnum TYPE caufv-rsnum,
          END OF t_caufv.
    *Added by Anand Bothra on 24/11/2003
    DATA: t_ab_caufv LIKE t_caufv OCCURS 0 WITH HEADER LINE.
    DATA: t_temp_caufv LIKE t_caufv OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_afpo OCCURS 0,
            aufnr TYPE afpo-aufnr,
            posnr TYPE afpo-posnr,
            wemng TYPE afpo-wemng,
            amein TYPE afpo-amein,
            charg TYPE afpo-charg,
          END OF t_afpo.
    DATA: BEGIN OF t_afpo1 OCCURS 0,
            aufnr TYPE afpo-aufnr,
            refaufnr TYPE afpo-aufnr,
            objnr TYPE caufv-objnr,
            rsnum TYPE afko-rsnum,
            wemng TYPE afpo-wemng,
            werks TYPE afpo-dwerk,
            charg TYPE afpo-charg,
          END OF t_afpo1.
    DATA: BEGIN OF t_makt OCCURS 0,
            matnr TYPE makt-matnr,
            maktx TYPE makt-maktx,
          END OF t_makt.
    DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv,
          t_listevents TYPE slis_t_event,
          t_sortsequence TYPE slis_t_sortinfo_alv,
          t_listheader TYPE slis_t_listheader.
    DATA: BEGIN OF t_production_costs OCCURS 0,
            objnr TYPE covp-objnr,       " Object Number
            kstar TYPE covp-kstar,       " Cost Element
            wkgbtr TYPE covp-wkgbtr,     " Cost of Line Item in CO area curr
            mbgbtr TYPE covp-mbgbtr,     " Quantity of Line Item
            matnr TYPE covp-matnr,       " Material Number
            kokrs TYPE covp-kokrs,       " Controlling Area
            belnr TYPE covp-belnr,       " Cost Accounting Document
            buzei TYPE covp-buzei,       " Item Number in Document
          END OF t_production_costs.
    DATA: BEGIN OF t_production_costs1 OCCURS 0,
            objnr TYPE covp-objnr,       " Object Number
            kstar TYPE covp-kstar,       " Cost Element
            wkgbtr TYPE covp-wkgbtr,     " Cost of Line Item in CO area curr
            mbgbtr TYPE covp-mbgbtr,     " Quantity of Line Item
            kokrs TYPE covp-kokrs,       " Controlling Area
            belnr TYPE covp-belnr,       " Cost Accounting Document
            buzei TYPE covp-buzei,       " Item Number in Document
          END OF t_production_costs1.
    DATA t_production_costs2 LIKE t_production_costs1
         OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_suborders OCCURS 0,
            aufnr TYPE caufv-aufnr,
            prevaufnr TYPE caufv-aufnr,
            objnr TYPE covp-objnr,
            rsnum TYPE caufv-rsnum,
          END OF t_suborders.
    DATA: BEGIN OF t_outputtab OCCURS 0,
            plnbez LIKE afko-plnbez,             " Material Number
            objnr LIKE caufv-objnr,              " Object Number
            maktx LIKE makt-maktx,               " Material Description
            charg LIKE afpo-charg,               " Batch Number
            aufnr LIKE afko-aufnr,               " Production Order Number
            gamng LIKE caufv-gamng,              " Total Order Quantity
            wemng LIKE afpo-wemng,               " Goods Receipt Quantity
            amein LIKE afpo-amein,               " Unit of Measure
            yield TYPE p DECIMALS 2,             " Percentage Yield
            totalrmcost TYPE p DECIMALS 2,       " Total Raw Material Cost
            totalpmcost TYPE p DECIMALS 2,       " Total Packing Mat. Cost
            mfgconvcost TYPE p DECIMALS 2,       " Manu. Conversion Cost
            pkgconvcost TYPE p DECIMALS 2,       " Packing Conv. Cost
            rmperunit TYPE p DECIMALS 2,         " Raw Cost per unit
            pmperunit TYPE p DECIMALS 2,         " Pack Mat cost per unit
            ccperunit TYPE p DECIMALS 2,         " Conv Cost per unit
            totperunit TYPE p DECIMALS 2,        " Total Cost per unit
            waers LIKE tka01-waers,              " Currency Key for CO Area
          END OF t_outputtab.
    *Added by Anand Bothra on 24/11/2003.
    DATA: t_ab_outputtab LIKE t_outputtab OCCURS 0 WITH HEADER LINE,
          t_temp_outputtab LIKE t_outputtab OCCURS 0 WITH HEADER LINE.
    BEGIN OF INSERTION VIP110703
    DATA:wa_prev_outputtab LIKE LINE OF t_outputtab,
         wa_production_costs LIKE LINE OF t_production_costs.
    DATA:prev_totmatqty TYPE p DECIMALS 2,
         prev_tot_mfgconv_cst TYPE p DECIMALS 2,
         grand_mat_qty TYPE p DECIMALS 2 ,
         tmp_aufnr TYPE caufv-aufnr.
    DATA: BEGIN OF t_suborders_propcost OCCURS 0,
            aufnr TYPE caufv-aufnr,
            prevaufnr TYPE caufv-aufnr,
            objnr TYPE covp-objnr,
            rsnum TYPE caufv-rsnum,
            proprmcost TYPE p DECIMALS 2,
            prop_mfg_convcost TYPE p DECIMALS 2,
          END OF t_suborders_propcost.
    DATA: wa_suborders LIKE LINE OF t_suborders.
    END   OF INSERTION VIP110703
    BEGIN OF INSERTION VIP111003
    DATA: prev_aufnr TYPE caufv-aufnr,
          prev_matnr TYPE mara-matnr,
          curr_matnr TYPE mara-matnr.
    DATA: bln_suborder ,
          ratio TYPE p DECIMALS 5.
    BEGIN OF INSERTION VIP111003
    *Added by Anand Bothra on 28/11/2003
    DATA: d_flag TYPE c.
    SELECTION-SCREEN BEGIN OF BLOCK zblock1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_plnbez FOR afko-plnbez,
                    s_aufnr FOR afko-aufnr,
    "Added By Vivek on 29.11.2005
                    s_auart FOR caufv-auart obligatory.
    PARAMETERS p_werks LIKE t001w-werks OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK zblock1.
    SELECTION-SCREEN BEGIN OF BLOCK zblock2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_monat FOR bkpf-monat NO-EXTENSION OBLIGATORY.
    PARAMETERS p_gjahr LIKE bkpf-gjahr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK zblock2.
    SELECTION-SCREEN BEGIN OF BLOCK zblock3 WITH FRAME TITLE text-022.
    PARAMETERS: p_detsum RADIOBUTTON GROUP rad,
                p_sum RADIOBUTTON GROUP rad.
    SELECTION-SCREEN END OF BLOCK zblock3.
    INITIALIZATION.
      d_repid = sy-repid.
      d_uname = sy-uname.
    p_werks = 'G001'.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
       IF screen-name EQ 'P_WERKS'.
         screen-input = 0.
         MODIFY SCREEN.
       ENDIF.
    ENDLOOP.
    AT SELECTION-SCREEN ON s_monat.
      IF s_monat-high IS INITIAL.
        IF NOT ( s_monat-low BETWEEN 1 AND 12 ).
          MESSAGE e398(00) WITH text-023 text-024 space space.
        ENDIF.
      ELSE.
        IF ( ( s_monat-low LT 1 ) OR ( s_monat-high GT 12 ) ).
          MESSAGE e398(00) WITH text-023 text-024 text-025 space.
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
      PERFORM z_get_period_dates.
      PERFORM z_select_prod_orders.
      PERFORM z_select_prod_costs.
      PERFORM z_select_addl_prod_costs.
      PERFORM z_select_mat_desc.
    END-OF-SELECTION.
      IF d_returncode EQ 0.
        PERFORM z_process_data.
    *Added by Anand Bothra on 24/11/2004.
        PERFORM z_select_to_print.
        PERFORM z_prepare_fieldcat.
        PERFORM z_get_alv_events.
        PERFORM z_define_sortsequence.
        PERFORM z_define_layout.
        PERFORM z_display_list.
    *Added by Anand Botra on 25/11/2003.
        PERFORM z_export_to_excel.
        PERFORM z_send_mail_and_download.
      ELSE.
        MESSAGE i017(p5).
      ENDIF.
    *&      Form  Z_GET_PERIOD_DATES
          text
    -->  p1        text
    <--  p2        text
    FORM z_get_period_dates.
    Determine the date range from the fiscal period range and
    fiscal year entered on the selection screen
      DATA: d_firstdate LIKE sy-datum,
            d_lastdate LIKE sy-datum,
            t_dates LIKE scscp_period_str OCCURS 0 WITH HEADER LINE.
      CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
        EXPORTING
          i_gjahr        = p_gjahr
          i_periv        = 'V3'
        IMPORTING
          e_first_day    = d_firstdate
          e_last_day     = d_lastdate
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      CALL FUNCTION 'CSCP_PARA1_GET_PERIODS'
        EXPORTING
          i_datuv    = d_firstdate
          i_datub    = d_lastdate
          i_timeunit = 'M'
        TABLES
          et_dates   = t_dates.
      SORT t_dates BY sindex.
      DELETE t_dates INDEX 1.
      LOOP AT t_dates.
        SUBTRACT: 1 FROM t_dates-sindex,
                  1 FROM t_dates-datub.
        MODIFY t_dates TRANSPORTING sindex datub.
      ENDLOOP.
      CLEAR: d_datefrom,
             t_dates.
      READ TABLE t_dates WITH KEY sindex = s_monat-low.
      d_datefrom = t_dates-datuv.
      CLEAR d_dateto.
      IF s_monat-high IS INITIAL.
        d_dateto = t_dates-datub.
      ELSE.
        CLEAR t_dates.
        READ TABLE t_dates WITH KEY sindex = s_monat-high.
        d_dateto = t_dates-datub.
      ENDIF.
    ENDFORM.                    " Z_GET_PERIOD_DATES
    *&      Form  Z_SELECT_PROD_ORDERS
          text
    -->  p1        text
    <--  p2        text
    FORM z_select_prod_orders.
    Select all production orders as per the selection criteria provided
      DATA: d_dlv_code LIKE jstat-stat,
            d_teco_code LIKE jstat-stat,
            t_status LIKE jstat OCCURS 0 WITH HEADER LINE.
      SELECT SINGLE name1 INTO t001w-name1 FROM t001w WHERE werks = p_werks.
    if s_plnbez-low eq space and s_plnbez-high eq space.
    endif.
      SELECT aufnr werks objnr gamng rsnum plnbez
      INTO CORRESPONDING FIELDS OF
      TABLE t_caufv FROM caufv
      WHERE aufnr IN s_aufnr
    AND   auart IN ('PP01', 'LL02') : BY VIVEK
      AND   auart in s_auart " Added By Vivek on 29.11.2005
      AND   werks = p_werks
      AND   plnbez IN s_plnbez
      AND   getri BETWEEN d_datefrom AND d_dateto
      ORDER BY aufnr.
      d_returncode = sy-subrc.
      IF d_returncode NE 0.
        STOP.
      ENDIF.
    Filter out only those production orders that have a status
    DLV (Delivered) or TECO (Technically Confirmed).
      CLEAR: d_dlv_code,
             d_teco_code.
      PERFORM z_get_status_code USING 'DLV' CHANGING d_dlv_code.
      PERFORM z_get_status_code USING 'TECO' CHANGING d_teco_code.
      LOOP AT t_caufv.
        REFRESH t_status.
        CALL FUNCTION 'STATUS_READ'
             EXPORTING
              CLIENT           = SY-MANDT
                  objnr            = t_caufv-objnr
                 only_active      = 'X'
         IMPORTING
              OBTYP            =
              STSMA            =
              STONR            =
            TABLES
                 status           = t_status
            EXCEPTIONS
                 object_not_found = 1
                 OTHERS           = 2
        IF sy-subrc EQ 0.
          CLEAR t_status.
          READ TABLE t_status WITH KEY stat = d_dlv_code.
          IF sy-subrc NE 0.
            CLEAR t_status.
            READ TABLE t_status WITH KEY stat = d_teco_code.
            IF sy-subrc NE 0.
              DELETE t_caufv.
            ENDIF.
          ENDIF.
        ELSE.
          DELETE t_caufv.
        ENDIF.
      ENDLOOP.
      IF t_caufv[] IS INITIAL.
        d_returncode = 4.
        STOP.
      ENDIF.
    Added by Anand Bothra on 24/11/2003**********
      t_ab_caufv[] = t_caufv[].
    Added by Anand Bothra on 28/11/2003.
      IF ( s_plnbez-low EQ space AND s_plnbez-high EQ space ).
        IF ( s_aufnr-low EQ space AND s_aufnr-high EQ space ).
          d_flag = 'N'.
        ELSE.
          d_flag = 'Y'.
        ENDIF.
      ELSE.
        d_flag = 'Y'.
      ENDIF.
      IF d_flag = 'Y'.
    Added by Anand Bothra on 21/11/2003.**********
    *Get the batch number of the entered order
        DATA: itab_afpo LIKE afpo OCCURS 100 WITH HEADER LINE.
        DATA: BEGIN OF t_ab_charg OCCURS 0,
    *Added by Anand on 27/11/2003
                aufnr LIKE afpo-aufnr,
                charg LIKE afpo-charg,
                END OF t_ab_charg.
        LOOP AT t_caufv.
          SELECT aufnr charg FROM afpo INTO t_ab_charg WHERE aufnr =
      t_caufv-aufnr.
            APPEND t_ab_charg.
            CLEAR t_ab_charg.
          ENDSELECT.
        ENDLOOP.
    IF sy-subrc = 0.
       SELECT * FROM afpo INTO TABLE itab_afpo WHERE charg = d_ab_charg.
    ENDIF.
        LOOP AT t_ab_charg.
          SELECT * FROM afpo INTO itab_afpo WHERE charg = t_ab_charg-charg.
            APPEND itab_afpo.
            CLEAR itab_afpo.
          ENDSELECT.
        ENDLOOP.
        CLEAR t_caufv.
        REFRESH t_caufv.
    *Get all the orders with the same batch number.
        LOOP AT itab_afpo.
          SELECT aufnr werks objnr gamng rsnum plnbez
          INTO CORRESPONDING FIELDS OF
          t_caufv FROM caufv WHERE aufnr = itab_afpo-aufnr.
            APPEND t_caufv.
          ENDSELECT.
        ENDLOOP.
        CLEAR t_caufv.
        SORT t_caufv BY aufnr.
    delete adjacent duplicates from t_caufv comparing all fields.
      ENDIF.
      SELECT aufnr posnr wemng amein charg INTO TABLE t_afpo
      FROM afpo FOR ALL ENTRIES IN t_caufv
      WHERE aufnr = t_caufv-aufnr.
      d_returncode = sy-subrc.
      IF d_returncode NE 0.
        STOP.
      ENDIF.
      SORT t_afpo BY aufnr.
    ENDFORM.                    " Z_SELECT_PROD_ORDERS
    *&      Form  Z_SELECT_MAT_DESC
          text
    -->  p1        text
    <--  p2        text
    FORM z_select_mat_desc.
    Get the Description of all materials
      SELECT matnr maktx INTO TABLE t_makt FROM makt
      FOR ALL ENTRIES IN t_caufv
      WHERE matnr = t_caufv-plnbez
      AND   spras = sy-langu.
    ENDFORM.                    " Z_SELECT_MAT_DESC
    *&      Form  Z_PROCESS_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM z_process_data.
    Process the data from all production orders and prepare the output
    table for display appropriately
      DATA: d_mbgbtr TYPE p DECIMALS 3,
            loop_cnt TYPE i.
      REFRESH t_outputtab.
      LOOP AT t_caufv.
        CLEAR t_outputtab.
        MOVE-CORRESPONDING t_caufv TO t_outputtab.
        CLEAR t_makt.
        READ TABLE t_makt WITH KEY matnr = t_caufv-plnbez.
        IF sy-subrc EQ 0.
          MOVE t_makt-maktx TO t_outputtab-maktx.
        ENDIF.
        CLEAR t_afpo.
        READ TABLE t_afpo WITH KEY aufnr = t_caufv-aufnr.
        IF sy-subrc EQ 0.
          MOVE: t_afpo-wemng TO t_outputtab-wemng,
                t_afpo-amein TO t_outputtab-amein,
                t_afpo-charg TO t_outputtab-charg.
        ENDIF.
        IF t_outputtab-gamng NE 0.
          COMPUTE t_outputtab-yield =
          ( t_outputtab-wemng / t_outputtab-gamng ) * 100.
        ENDIF.
        APPEND t_outputtab.
      ENDLOOP.
      SORT t_production_costs BY objnr kstar.
      LOOP AT t_production_costs.
        AT NEW objnr.
          CLEAR: d_mbgbtr, d_tabix, t_outputtab.
          READ TABLE t_outputtab WITH KEY objnr = t_production_costs-objnr.
          MOVE sy-tabix TO d_tabix.
          " Add up the Raw Material and Manufacturing Conversion
          " Costs from the previous stage production order
          CLEAR loop_cnt .
          LOOP AT t_suborders WHERE aufnr = t_outputtab-aufnr.
         commented by anand bothra on 20/11/2003
            ADD 1 TO loop_cnt.
            IF loop_cnt > 1.
              EXIT.
            ENDIF.
            LOOP AT t_production_costs1 WHERE objnr = t_suborders-objnr.
              CASE t_production_costs1-kstar.
                WHEN '0005000000' OR '0005010000'.     " Raw Material Cost
    BEGIN OF deletion VIP110703
              ADD t_production_costs1-wkgbtr TO t_outputtab-totalrmcost.
    END   OF deletion VIP110703
                  ADD t_production_costs1-wkgbtr TO prev_totmatqty.
                WHEN '0000500100'.      " Manufacturing Conversion Cost
                  ADD t_production_costs1-wkgbtr TO prev_tot_mfgconv_cst.
    BEGIN OF deletion VIP110703
                ADD t_production_costs1-wkgbtr TO t_outputtab-mfgconvcost.
    END   OF deletion VIP110703
              ENDCASE.
            ENDLOOP.
    BEGIN OF INSERTION VIP110703
           READ TABLE t_production_costs INTO wa_production_costs
           WITH KEY objnr = t_production_costs-objnr
                      matnr = wa_prev_outputtab-plnbez.
           IF sy-subrc = 0.
             IF  ( wa_production_costs-mbgbtr NE
                                   wa_prev_outputtab-wemng )  .
               prev_totmatqty = ( prev_totmatqty /
                                  wa_prev_outputtab-wemng ) *
                                 wa_production_costs-mbgbtr.
               prev_tot_mfgconv_cst = ( prev_tot_mfgconv_cst /
                                  wa_prev_outputtab-wemng ) *
                                  wa_production_costs-mbgbtr.
             ENDIF.
           ENDIF.
           LOOP AT t_suborders_propcost
                   WHERE prevaufnr = wa_prev_outputtab-aufnr.
             t_suborders_propcost-proprmcost = prev_totmatqty.
             t_suborders_propcost-prop_mfg_convcost = prev_tot_mfgconv_cst
             MODIFY t_suborders_propcost.
           ENDLOOP.
           clear: prev_totmatqty,
                   prev_tot_mfgconv_cst.
    END   OF INSERTION VIP110703
    BEGIN OF INSERTION VIP111003
            CLEAR: wa_prev_outputtab,
                   wa_production_costs.
            READ TABLE t_outputtab INTO wa_prev_outputtab
            WITH KEY aufnr = t_suborders-prevaufnr.
            ratio = 1.
            IF sy-subrc = 0.
              READ TABLE t_production_costs INTO wa_production_costs
              WITH KEY objnr = t_outputtab-objnr
                         matnr = wa_prev_outputtab-plnbez.
              IF sy-subrc = 0.
                IF  ( wa_production_costs-mbgbtr NE
                                      wa_prev_outputtab-wemng ) .
                  ratio = wa_production_costs-mbgbtr /
                          wa_prev_outputtab-wemng.
                  prev_totmatqty = ( prev_totmatqty /
                                     wa_prev_outputtab-wemng ) *
                                    wa_production_costs-mbgbtr.
                  prev_tot_mfgconv_cst = ( prev_tot_mfgconv_cst /
                                     wa_prev_outputtab-wemng ) *
                                     wa_production_costs-mbgbtr.
                ENDIF.
              ENDIF.
            ENDIF.
            LOOP AT t_suborders_propcost
                    WHERE prevaufnr = wa_prev_outputtab-aufnr
                    AND aufnr = t_outputtab-aufnr.
              t_suborders_propcost-proprmcost = prev_totmatqty.
              t_suborders_propcost-prop_mfg_convcost = prev_tot_mfgconv_cst.
              MODIFY t_suborders_propcost.
            ENDLOOP.
    *Commented by Anand Bothra on 20/11/2003.
            CLEAR: prev_totmatqty,
                    prev_tot_mfgconv_cst.
    BEGIN OF INSERTION VIP111003
          ENDLOOP.
        ENDAT.
        AT END OF kstar.
          SUM.
          CASE t_production_costs-kstar.
            WHEN '0000500200'.    " Packing Conversion Costs
              t_outputtab-pkgconvcost = t_production_costs-wkgbtr.
            WHEN '0005000500'.   " Semi-Finished Cost/Quantity
              MOVE t_production_costs-mbgbtr TO d_mbgbtr.
            WHEN '0005050000' OR '0005050001' OR '0005050002'.
              " Packing Mat Costs
              ADD t_production_costs-wkgbtr TO t_outputtab-totalpmcost.
            WHEN '0005000000' OR '0005010000'.
              ADD t_production_costs-wkgbtr TO t_outputtab-totalrmcost.
            WHEN '0000500100'.      " Manufacturing Conversion Cost
              ADD t_production_costs-wkgbtr TO t_outputtab-mfgconvcost.
          ENDCASE.
        ENDAT.
        AT END OF objnr.
          MOVE d_waers TO t_outputtab-waers.
    Calculations for the Production Order
          " Determine the RM Cost/Unit and Mfg Conv Cost/Unit
          CLEAR t_afpo1.
          READ TABLE t_afpo1 WITH KEY aufnr = t_outputtab-aufnr.
          IF ( ( sy-subrc EQ 0 ) AND ( t_afpo1-wemng NE 0 ) ).
    BEGIN OF insertion VIP110703
           tmp_aufnr = t_production_costs-objnr+2(12).
           LOOP AT t_suborders_propcost
           WHERE aufnr = tmp_aufnr  .
            ADD t_suborders_propcost-proprmcost TO t_outputtab-totalrmcost
             ADD t_suborders_propcost-prop_mfg_convcost  TO
                  t_outputtab-mfgconvcost.
           ENDLOOP.
    END   OF insertion VIP110703
    BEGIN OF insertion VIP111003
            CLEAR: t_suborders_propcost , tmp_aufnr.
            READ TABLE t_suborders_propcost
            WITH KEY aufnr = t_outputtab-aufnr.
            IF sy-subrc = 0.
             t_suborders_propcost-proprmcost =
                 t_suborders_propcost-proprmcost * ratio.
              ADD t_suborders_propcost-proprmcost
                    TO t_outputtab-totalrmcost.
             t_suborders_propcost-prop_mfg_convcost =
                 t_suborders_propcost-prop_mfg_convcost * ratio.
              ADD t_suborders_propcost-prop_mfg_convcost
                   TO t_outputtab-mfgconvcost.
              tmp_aufnr = t_suborders_propcost-prevaufnr.
              bln_suborder = 'T'.
              WHILE bln_suborder = 'T'.
                CLEAR: t_suborders_propcost .
                READ TABLE t_suborders_propcost
                WITH KEY aufnr = tmp_aufnr.
                IF sy-subrc = 0.
                  t_suborders_propcost-proprmcost =
                    t_suborders_propcost-proprmcost * ratio.
                  ADD t_suborders_propcost-proprmcost
                        TO t_outputtab-totalrmcost.
                  t_suborders_propcost-prop_mfg_convcost =
                      t_suborders_propcost-prop_mfg_convcost * ratio.
                  ADD t_suborders_propcost-prop_mfg_convcost
                       TO t_outputtab-mfgconvcost.
                  tmp_aufnr = t_suborders_propcost-prevaufnr.
                ELSE.
                  bln_suborder = 'F'.
                  CLEAR tmp_aufnr.
                ENDIF.
              ENDWHILE.
            ENDIF.
    END   OF insertion VIP111003
    END   OF deletion VIP110703
           t_outputtab-mfgconvcost = ( t_outputtab-mfgconvcost /
                                       t_afpo1-wemng ) * d_mbgbtr.
           t_outputtab-totalrmcost = ( t_outputtab-totalrmcost /
                                       t_afpo1-wemng ) * d_mbgbtr.
    END   OF deletion VIP110703
          ENDIF.
          IF t_outputtab-wemng NE 0.
            t_outputtab-rmperunit = t_outputtab-totalrmcost /
                                    t_outputtab-wemng.
            " PM Cost Per Unit = Total PM Cost / Quantity Delivered
            t_outputtab-pmperunit = t_outputtab-totalpmcost
                                    / t_outputtab-wemng.
            " Conv Cost Cost Per Unit = (Manu Conv Cost + Pack Conv Cost)
            "                           / Qty Delv
            t_outputtab-ccperunit = ( t_outputtab-mfgconvcost
                                    + t_outputtab-pkgconvcost )
                                    / t_outputtab-wemng.
          ENDIF.
          " Total Cost Per Unit = (RM Cost per unit + PM Cost per Unit
          "                       + Conv Cost per unit)
          t_outputtab-totperunit = t_outputtab-rmperunit
                                   + t_outputtab-pmperunit
                                   + t_outputtab-ccperunit.
    Update the calculated values in the internal table
          CHECK d_tabix GT 0.
          MODIFY t_outputtab INDEX d_tabix
                             TRANSPORTING totalrmcost totalpmcost
                                          mfgconvcost pkgconvcost
                                          rmperunit pmperunit
                                          ccperunit totperunit waers.
    BEGIN OF DELETION VIP110703
         MOVE t_outputtab TO wa_prev_outputtab.
    END   OF DELETION VIP110703
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " Z_PROCESS_DATA
    *&      Form  Z_DISPLAY_LIST
          text
    -->  p1        text
    <--  p2        text
    FORM z_display_list.
    Display the Report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            I_INTERFACE_CHECK        = ' '
             i_callback_program       = d_repid
            I_CALLBACK_PF_STATUS_SET = ' '
            I_CALLBACK_USER_COMMAND  = ' '
            I_STRUCTURE_NAME         =
             is_layout                = wa_listlayout
               it_fieldcat              = t_fieldcatalog
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
               it_sort                  = t_sortsequence
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
             it_events                = t_listevents
            IT_EVENT_EXIT            =
             is_print                 = wa_print_info
            IS_REPREP_ID             =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
            I_BYPASSING_BUFFER       =
            I_BUFFER_ACTIVE          =
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
           TABLES
                t_outtab                 = t_outputtab
          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.
      SET PF-STATUS 'Z_AB_STANDARD'.
    ENDFORM.                    " Z_DISPLAY_LIST
    *&      Form  Z_FILL_FIELDCATALOG
          text
    -->  p1        text
    <--  p2        text
    FORM z_fill_fieldcatalog USING      p_rownum LIKE sy-curow
                                        p_colnum LIKE sy-cucol
                                        p_fieldname TYPE slis_fieldname
                                        p_tabname TYPE slis_tabname
                                        p_reffield TYPE dd03p-fieldname
                                        p_reftable TYPE dd03p-tabname
                                        p_qfield TYPE slis_fieldname
                                        p_qtab TYPE slis_tabname
                                        p_sum
                                        p_stext
                                        p_mtext
                                        p_ltext
                                        p_datatype
                                        p_outputlen.
    Prepare the fields for ALV list output
      CLEAR wa_fieldcatalog.
      wa_fieldcatalog-row_pos = p_rownum.
      wa_fieldcatalog-col_pos = p_colnum.
      wa_fieldcatalog-fieldname = p_fieldname.
      wa_fieldcatalog-tabname = p_tabname.
      wa_fieldcatalog-ref_fieldname = p_reffield.
      wa_fieldcatalog-ref_tabname = p_reftable.
      wa_fieldcatalog-qfieldname = p_qfield.
      wa_fieldcatalog-qtabname = p_qtab.
      wa_fieldcatalog-do_sum = p_sum.
      wa_fieldcatalog-seltext_s = p_stext.
      wa_fieldcatalog-seltext_m = p_mtext.
      wa_fieldcatalog-seltext_l = p_ltext.
      wa_fieldcatalog-datatype = p_datatype.
      wa_fieldcatalog-outputlen = p_outputlen.
      APPEND wa_fieldcatalog TO t_fieldcatalog.
    ENDFORM.                    " Z_FILL_FIELDCATALOG
    *&      Form  Z_PREPARE_FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM z_prepare_fieldcat.
    Append all the display fields into the field catalog internal table
    First Row
      PERFORM z_fill_fieldcatalog USING 1 1 'PLNBEZ' 'T_OUTPUTTAB'
                                        space 'AFKO' space space
                                        space space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 1 2 'MAKTX' 'T_OUTPUTTAB'
                                        space 'MAKT' space space
                                        space space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 1 3 'CHARG' 'T_OUTPUTTAB'
                                        space 'AFPO' space space
                                        space space space space space
                                        0.
    Second Row
      PERFORM z_fill_fieldcatalog USING 2 1 'AUFNR' 'T_OUTPUTTAB'
                                        space 'AFKO' space space
                                        space space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 2 2 'GAMNG' 'T_OUTPUTTAB'
                                        space 'CAUFV' 'AMEIN' space
                                        'X' space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 2 3 'WEMNG' 'T_OUTPUTTAB'
                                        space 'AFPO' 'AMEIN' space
                                        'X' space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 2 4 'AMEIN' 'T_OUTPUTTAB'
                                        space 'AFPO' space space
                                        space space space space space
                                        0.
      PERFORM z_fill_fieldcatalog USING 2 5 'YIELD' 'T_OUTPUTTAB'
                                        space space space space
                                        space text-010 text-010 text-010
                                        'QUAN' 17.
    Third Row
      PERFORM z_fill_fieldcatalog USING 3 1 'TOTALRMCOST' 'T_OUTPUTTAB'
                                        space space space space
                                        'X' text-011 text-011 text-011
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 3 2 'TOTALPMCOST' 'T_OUTPUTTAB'
                                        space space space space
                                        'X' text-012 text-012 text-012
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 3 3 'MFGCONVCOST' 'T_OUTPUTTAB'
                                        space space space space
                                        'X' text-013 text-013 text-013
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 3 4 'PKGCONVCOST' 'T_OUTPUTTAB'
                                        space space space space
                                        'X' text-014 text-014 text-014
                                        'CURR' 21.
    Fourth Row
      PERFORM z_fill_fieldcatalog USING 4 1 'RMPERUNIT' 'T_OUTPUTTAB'
                                        space space space space
                                        space text-015 text-015 text-015
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 4 2 'PMPERUNIT' 'T_OUTPUTTAB'
                                        space space space space
                                        space text-016 text-016 text-016
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 4 3 'CCPERUNIT' 'T_OUTPUTTAB'
                                        space space space space
                                        space text-017 text-017 text-017
                                        'CURR' 21.
      PERFORM z_fill_fieldcatalog USING 4 4 'TOTPERUNIT' 'T_OUTPUTTAB'
                                        space space space space
                                        space text-018 text-018 text-018
                                       'CURR' 21.
    ENDFORM.                    " Z_PREPARE_FIELDCAT
    *&      Form  Z_GET_ALV_EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM z_get_alv_events.
    Returns table of possible events for a list type
      REFRESH t_listevents.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
            I_LIST_TYPE     = 0
          IMPORTING
               et_events       = t_listevents
          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.
      ELSE.
        CLEAR: wa_listevents, d_tabix.
        READ TABLE t_listevents WITH KEY name = slis_ev_top_of_page
        INTO wa_listevents.
        d_tabix = sy-tabix.

    Hi Sai,
          You can try using MB51, use filter movement type 261. Add a filter for the posting date coverage.
    Then proceed. Click on the icon DETAIL LIST.
    Then click on the SUBTOTAL, add MATERIAL as a Criteria. The click the column AMOUNT IN LC.
    You should see the total issuances to per material.
    I hope this helps.
    Heinrick Palad

  • Standard Cost Analysis Report  (MCI3)

    Hi,
    On SAP standard Cost Analsys report, i have been unable to dig out the reason of not populating values in following few columns.
    - Int. wage costs
    - Int. Mat. Costs
    - Ext. Wage Costs
    - Extenal Mat Costs
    - Services Costs
    Can anybody guide me in populating these values.
    Regards
    Shah

    hi
    if you have posted any material against the order ,then the cost will be reflected in int.material cost ,which is also same for other parameters
    also check whether you info structure is switched on OMOS
    regards
    thyagarajan

  • Raw material Moving Avg. Price (MAP) should include overhead cost.

    We receive a raw material that has unit price of USD 10, the material is used in BOM. We incur some additional cost on that material and want to include that additional cost as a part of raw material cost. Say additional cost is USD 1 per unit. We want the system to include USD 1 in material MAP making is USD 11 per unit (i.e. 10 + 1).
    Please help how can we achieve this.
    regards
    Chris

    Hi
    Your scenario would be better represented by Price Control S and using BOM/Routing/Prod order in PP... I dont know why your PP guys should be against it.... You should do it if you wanna capture the Loss of 13 kg in the system
    Anotjer option is to create a condition type and assign an accrual key to the cond type so that the Offset for this cond type does not post to GR/IR account.. Else, your vendor would get paid extra
    Refer this thread for more details
    Raw Material costing and update to inventory valuation
    PS: Note that raw mat cost estimate woyuld makes sense when you have S and not V
    br, Ajay M

  • Display process order material wise planned cost

    Hi
    When I display process order CO03 and select variant Cost Trend for cost analysis. System show total figure of raw material.
    My requirement is to check material number wise pland qty and value for a process order. Planned Activity Qty and Actual Qty with value
    thanks

    Thanks for reply
    Here is a ABAP report requirment on following format please help me.
    Product :: Description ::  Raw mat :: Planned Mat Qty :: Act Qty :: Planned Mat Cost :: Act Mat cost
    9000     :: Milk           :: 100000     ::  2000Kg             :: 1900      :: 50000      ::  60,000      
    thanks

  • CK40N - Cost estimates with errors - Error message roll-up

    Good morning,
    i need to roll-up error messages from components to top-level codes.
    Now if a component is costed with errors (status KF) it happens that its top-level code is costed without errors (status KA).
    We lose time using CS15 to check components usage in order to re-calculate all top-level codes after the error correction.
    In OKKN in tab Qty Struct. there is a checkbox to be flagged in order to roll-up error messages from components to top-level codes. It's called "Transfer Active Std Cost Est. if Mat. Costed w/Errors".
    I selected the flag but the system works as before: no roll-up of error messages.
    Does anybody have suggestions?
    Thanks,
    Regards
    Enrico

    Hi,
    There seems to be some problem with your system , as standard SAP behaviour is that , if a component is costed with error , higher level material also get KF status . i have experience this feature on my project .
    If you check F1 documentation of field , "Trasfer act std cost if mat costed with error" ., the same have been mentioned.
    If you activate , this check box , then system will automcatically transfer existing std cost , if they it receive KF status in costing run.
    therefore , you should remove this check box from costing variant , and still higher material does not get KF status , search for any oss notes or raise a message .
    rajesh

  • Issues in Queuing mechanism(FIFO) in PI

    Hi PI Experts,
    In my project PI will use a queuing mechanism based on a FIFO methodology. This introduces a single point of failure where if a message flowing through gets stuck for any reason the entire queue will get stuck.
    Can anybody tell me the options available that be manual or automatic for reducing the turnaround time for detection and / or resolution or the utopia of removing this single point of failure all together.
    Thanks,
    Loveena.

    Hi,
    Following are the options available for this.
    1. Avoid EOIO Quality of service to block the other messages (if you are using EO ) then remove the check Maintain order at runtime option in ID..
    2. If first option cannot be done then configure CCMS alert mechanism to get trigger the Alerts.
        /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    3. From PI 7.3 onwards backup queue option will be avaialbe for handling these things..
        /people/rajeshkumar.pasupula/blog/2010/12/16/more-performance-feature-offerings-from-pi-73 (future purpose..)
    HTH
    Rajesh

  • COPA cost estimate from costing for COGS

    Hi,
    we are using sales order costing (variant config), discrete(Prdn Order) and repitative (Cost collectors) in production costing.
    Need to update COGS under COPA based on cost component structure using mat cost estimate. All mat uses mat type as ZINE for all cases.
    There is separate costing variant for sales order and others. created 2 costing key in COPA and costing key 001 that is sales order costing to mat type ZINE. and assigned valuation class in next step so that discrete and repitative can get captured.
    But it resulted in error during billing as system could not find sales order costing for discrete material.  So i assgned costing 2 with discrete and repitatve  costing variant to mat type ZINE aftter sales order costing variant.
    Error got resolved but cost component split happens for sales order costing only and not for others. Please advice and also note that it is not possible to add material type or change valuation class due to complexity.
    Regards,
    Atu

    Hi Paul
    What is your purpose?
    1. If you just want to fetch the material cost estimate (std cost) in COPA, then what you are doing is not correct...For this,
    a. KE4U - Valuation Strategy 001 - (DETAILS Tab) assign 001 to Qty Field ABSMG and tick "Mat Cstng" indicator
    b. KE4U - (Assignment Tab) Assign 001 to PV=01 and Record Type = F
    c. Create a Costing key in KE40
    d. Assign Costing key to mat types in KE4J or KEPC
    e. Assign Cost Comp Split to Value Field in KE4R
    2. Costing sheet in COPA is used for doing some calculations during billing and updating the same to COPA... For eg: you want to add 2% of your Std cost as Freight to COPA (Statistical value)... This can be done using Costing sheet...
    In order to use Costing sheet in COPA,
    a. Create a Costing sheet - (You already did this)
    b. KE4U - Val Strategy 001 - (DETAILS Tab)  Against Valuation Strategy 001 - Assign this costing sheet against "Application = KE"  and Qty Field = ABSMG.. Do not check "Mat Cstng" against this indicator..
    So, if you want to use Costing sheet in COPA, your KE4U may have 2 entries under the "DETAILS" tab..
    (1) As per 1.a and 1.b above
    (2) As per 2.b above
    Regards
    Ajay M

  • Error in cost analysis

    Dear Experts,
    In MCI8 , when we check one order type the total actual cost is not coming correct when we added Int.mat cost and Int.wage.cost . System is showing Int.mat cost ( 125000) + Int.wage.cost  ( 12000 ) = Total Actual cost ( 137220 ) . We dont know from where this difference of 220 coming from . Please advice.

    Dear Seran / Sundar ,
    The above problem  is for some 20 orders completed Last month . The Total actual cost for individual equipment does not show any difference . Only the sum of their total actual cost for all these equipments is showing the difference in value. As per your findings if the difference is due to overheads , it should also be seen for each equipment wise cost details. Please advice.

  • FIFO Valuation within MM (without WM)

    Hello SAP-Experts,
    I want to ask you how to customize the system with t.c. spro and how to setup material master
    to establish the FIFO valuation for some specific materials (e.g. for one or more material type(s)) without any WM functionalities.
    What I read in this forums were the following, but I miss a thin red line or rather a guide, and I miss complete information on this:
    1. Batch Management has to be enabled in customizing and material master.
    => customizing: logistics general - batch management - ???
    => material master: set indicator for batch management to active (is that all?)
    ... and how to make sure that when using MIGO for goods movement, the batches will be found automatically without inputing anything manually?
    2. Classification has to be enabled for those material types which do need the FIFO. A class must be assigned which includes characteristics (e.g. shelf life expiration date, sth. else?)
    3. Condition records have to be maintained (why, which?)
    4. Sorting rules have to be defined for FIFO (where, how?)
    5. Then there are also LIFO/FIFO settings within SPRO-MM-Valuationetc.-Balance Sheet Valuation Procecdure-Configure LIFO/FIFO Methods.
    Has this also to be used? Why, why not?
    6. For what is then the indicator in material master, Accounting view 2: "LIFO/FIFO relevant" - only for cost balance sheet?
    What I need is something like a guide showing the steps which have to be done.
    Then an example booking for FIFO in the system should be done as follows:
    01.01.2000: GR of material A: 2 pieces a 10 EUR = 20 EUR in sum
    05.01.2000: GR of material A: 2 pieces a 15 EUR = 30 EUR in sum
    10.01.2000: GI of material A: 3 pieces (2x10 + 1x15) = 35 EUR in sum, 15 EUR still on stock
    Thank you in advance for your help!
    Gernot

    Dear,
    I am also concentrating on this and 2,3 days back posted a question regarding FIFO valution without any answers.
    Basing on the study, what I understood is FIFO VALUATION and FIFO picking is two different configurations to be done.
    FIFO valuation is only relevant for Balance sheet valuation of material.
    FIFO picking used for inventory management.
    For FIFO balance sheet valaution :
    1. Activate balance sheet valuation (Trans: OMWE) - as LIFO not relevant, FIFO active.
    2. Defined LIFO/FIFO valuation levels (Trans: OMWL) - set as Plant (valuationa rea).
    3. Configured FIFO Valuation areas for year 2008.
    4. Define LIFO/FIFO method (Trans: OMWP) - as CUR - current.
    5. No changes made to movements relevant to FIFO (Trans: OMW4) no changes
    6. Selection of Material to FIFO (Trans: MRF4), in this getting error
    Selected material, entered plant and selected SET indicator executing. The system giving message as 'VALUATION AREA NOT DEFINED FOR FIFO' (M8885). Here i stopped and working on it. Looking like something related FI/CO configuration required.
    For FIFO inventory picking:
    You need to have a bacthmanagement activate
    Step - 1 Create Characteristics
    ZLASTGRDATE - Date of last goods receipt
    Transaction code CT04
    Step - 2 Create Characteristics
    ZBATCH - Batch Number
    Transaction code CT04
    Step - 3 Create a class MRO_BATCH_FIFO_CLS
    Transaction code CL02
    Step - 4 Add Characteristics ZLASTGRDATE
    and
    ZBATCH
    Step - 5 Create a Condition Record Batch search Strategy
    Step - 6 Select Plant and Material Key combination
    - Enter the Material code
    -Select selection Criteria save and come back
    - Select Sort rule as Ascending and Enter the validity rule
    Step - 7 Assign this class to the material in Classification view
    Step 8
    Create the PO for the Material and post the Goods Receipts MIGO.
    System will assign a batch number and also updates the Batch number and
    GR Date. Post thre four GRs with different dates. first with
    the current date , then some with the old dates. Sytem will captures the
    batch
    number and the Gr date. This is only to study how the system
    proposes the GR dates
    Step - 9 Post a Goods Issue for the material, and when you enter batchnumber
    enter * and press enter. then you will observe how system propses the
    quantities based on the batches and GR dates in FIFO order
    This I didnt try, coz our first preference is FIFO Valuation in Balance sheet.
    If you have any information regarding this point, please share with me for better results.
    Regards,
    Syed Hussain.

  • Unplanned delivery costs to seperate vendor

    hi guys
    My company have scenario in which at the time of PO creation the delivery cost(FRT,CUST,etc....) is not known.
    That means i have not maintained any condtion types in PO for this del costs .Later the invoice for unplanned delivery cost will come, and this can come  AFTER the goods receipt.This process was done by some outside agency (vendor).
    The mat cost will be clear through invoice for PO vendor.
    But the unplanned delivery cost for this PO should clear to seperate vendor.The outside vendor will send invoice for this after GR.
    i know for clearing unplanned delivery cost to same PO vendor without maintaing any cond types in PO through MIRO.
    But the requirement in here is that the unplanned delivery cost has to be cleared to seperate vendor after GR .
    for this how can i configure
    plz suggest me
    nani

    Hi,
    As per the SAP library  If you want to post the unplanned delivery costs to a different vendor after posting the material invoice you can do it only by posting as subsequent debit.It can be done in this way:
    1.First do the material invoice.
    2.Then in MIRO select subsequent debit transaction and give the PO number.
    3.In the header change the vendor number to the freight vendor number.
    4.System will give a warning message that the vendor is different from PO vendor.Ignore that since we are paying this to a different vendor.
    5.Give the quantity and amount in the item details.And save the document.
    This way we can do.
    Thanks,
    Rambhupal.

  • How to add the expenses to material cost

    Hi
    i want to add the packing expenses to material cost
    Which account key i had to assign to the the packing condition type so that the packing cost is added to material cost
    Krishna

    hi
    is there any accrual tick in ur packing condition if yes remove it and do not use any acct key for it
    i havent try it  , try it and reply back
    or try coping new condition from std condition for surcharge and use it so ur cost will get load on ur mat cost
    regards
    kunal

Maybe you are looking for

  • How do I use a picture as Drop caps?

    I have a picture that I want to place to the left of the paragraph. I want the same function as a Drop cap, ie it should occupy a certain amount of rows, and it should follow the first line in the paragraph. Just placing the picture before the first

  • Comma and Decimal point

    Hi Gurus, I am encountering a problem regarding printout of our SOA Instead of the standard format of the total value (comma then decimal point (ex. 2,559.62)) output is (decimal point then comma(ex. 2.559,62)). This always happens to a particular cu

  • Drag and Drop into E-Mail

    Hi, is there any way to Drag&Drop a document FROM SharePoint Doc Library IN an E-Mail (as attachment)?

  • How to use select max and min query..

    hi gurus, we have got a custom report for develoment. the report has to fetch the max and min salarys department wise.... how to pick up max & min sal ansal from table pa0008.

  • LR 3.2RC Language setting

    Nothing too serious but there is something strange with the language setting in LR 3.2 Release Candidate. After installing it starts up in Dutch. OK, I'm living in The Netherlands but I like the language to be English. So I choose English and close L