Consumption and Production qty and value report

Any one knows t-code for report that can give porduction order wise consumption in qty and value and production order wise production in qty and value.

Use report KOB1, use the standard layouts that get you this information, normally positive quantities are consumptions and negative quantities are production output.
Thanks
Naveen

Similar Messages

  • Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    We are all iphone users just like you.
    Do you have a question for fellow iphone users?

  • Inventory opening and closing stock with value report

    Hi All,
    Is it possible to get details of both opening and closing stock with value of each items of last financial year (2009-10) in inventory report?
    Mizan

    Hi..
    you can  try this query
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bhavank

  • Custom report for SO vs production qty

    Hello
    Can someone advise on how to achieve the following.
    Scenario: Production orders are created based on sales order. Mutiple POs can exist for each SO.
    Create a BI report which will report Sales order qty and production qty (actual GR qty) by month
    infoproviders: 0PP_C01 and 0SD_O01
    Fields:
    0SD_O01: 0DOC_NUMBER, 0S_ORD_ITEM, 0REQU_QTY, 0CREATEDON
    0PP_C01 : 0DOC_NUMBER, 0GR_QTY
    Can some one tell me how to build a logic in BI report to first select all SOs based on created date (selection screen input) and use that to pick all the POs and get the actual GR qty.
    Tks. KS

    In this extractor, find the reference document for 0DOC_NUMBER ( PO number)
    0PP_C01 : 0DOC_NUMBER, 0GR_QTY
    For every PO Created there will be some reference Sales order.
    Include this in your extractor, Update data from this two extracors in  two DSOs and further update to infoproviders for reporting
    In your current list of fields provided, you have not taken the reference doc that relates both

  • Qty and Date Variance using Purchasing InfoCube

    Using Purchasing Cube, I want to find out the Qty Variance and Date variance,
    Iu2019m calculating these using GR Posting date and Requested Delivery Date and GR Qty and Qty in UoM.
    Iu2019ve the following doubts:
    1.     In order to calculate the Variance, do we need to filter the data pertaining to any particular BW Transaction Key (0PROCESSKEY) since we donu2019t want Goods Issues (can be Purchase Returns or intra company Stock Transfers ), If so what are the values for the Process Key to be considered for filter.
    2.     Though the Qty key figure matches the Requested Qty, the PO status is u2018Openu2019. What could be the possible reasons?
    3.     The qty. and days variance for the POs already received can be calculated. But what should be done incase of POs for which Goods are not yet received? Again in that scenario, we can have two cases: Delivery Past Due and Delivery Date in Future. How to tackle these 2 cases. As per our Requirement, we have to calculate the difference between System date and Requested Delivery Date incase of Past Delivery Date so that we can have the variance as of System Date. Like If the Delivery Date is 25th Nov, if we run the Query on 28th, it should show 3 days late and if run on 29th, it has to be 4 days if still undelivered. Please give me the code to be written in Transformations.
    We have not yet decided what has to be done in the second case i.e. Future Delivery Date. Please guide me what is the best option in that case.
    Thanks,
    Aryaman

    Hi,
    1. In order to calculate the Variance, do we need to filter the data pertaining to any particular BW Transaction Key (0PROCESSKEY) since we donu2019t want Goods Issues (can be Purchase Returns or intra company Stock Transfers ), If so what are the values for the Process Key to be considered for filter.
    You need to add Z-Keyfigures and then write Routines based on Process Keys in Update Rules/Transformations and filter the required Process Keys, you need to find required Process Keys in ECC, SPRO-->Reference IMG an dthen search for BW Transactional Key and see it disuss with MM FUnctional COnsultant and Identify it.
    2. Though the Qty key figure matches the Requested Qty, the PO status is u2018Openu2019. What could be the possible reasons?
    I faced the problem with 2LIS_02_* datasources so I created new generic data source and used it.  Just take only one record with that you track in ECC. You must take MM Consultants help, they will guide you.
    3. The qty. and days variance for the POs already received can be calculated. But what should be done incase of POs for which Goods are not yet received? Again in that scenario, we can have two cases: Delivery Past Due and Delivery Date in Future. How to tackle these 2 cases. As per our Requirement, we have to calculate the difference between System date and Requested Delivery Date incase of Past Delivery Date so that we can have the variance as of System Date. Like If the Delivery Date is 25th Nov, if we run the Query on 28th, it should show 3 days late and if run on 29th, it has to be 4 days if still undelivered. Please give me the code to be written in Transformations.
    We have not yet decided what has to be done in the second case i.e. Future Delivery Date. Please guide me what is the best option in that case.
    Once you have Qty and Dates from Transactional Data then it is easy to calculate the Date Varience and Qty varience, see the follwoing URL it is having one article How to Calculate Meterial Aging whcih will give how to calculate the differnce..
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • Date Wise and Storage Location Wise Stock Qty & Value Report......

    Hi Experts,
    We want a report Date Wise(As on 31.03.2008) and Storage Location Wise Quantity & Value Report for only Finish Materials. Is there any report ?
    From Mb5b we canot get storage location wise report as we get only plant level qty and value.
    Pl. guide us.
    Regards,
    Yusuf

    Hi Yusuf,
        Try the Tcode: MC.9 there enter the site and article and executeYou will get details of the article
    stock, value. if you double click the article you will get the details of storage location.
    Hope it will be help for you
    Regards
    GK

  • Batch wise stock report with qty and value as on date

    is there any report so that we can see the stock qty with value as on date,
    i have tried mb5b but it is showing only qty and batch combination not qty value and batch combination
    plz suggest me, it is very urgent.
    nitin

    MBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
    There is no table in SAP that holds the stock information on daily basis.
    You have to develope this yourself. Easiest method by copying a table like MBEW and MARD  daily to a Z-Table.
    A stock situation  at a certain date can be calculated with MB5B.
    Edited by: Jürgen L. on Aug 5, 2008 4:06 PM

  • Shelf ageing report with qty and value

    hi
    i want shelf ageing report with stock value and stock quantity together.
    or any other way to club together the reports which will having stock qty and stock value

    Hi,
        How about TRC:MB5M( Expiration Date List).   But the function is qty only.
       Maybe you have to make add on program.
    Regards,
       Gaito

  • Report for material with sloc,qty available, and production order

    hi friends, i need advice on getting this report for material with qty and specific sloc with the corresponding Prodn order numbers. in mb51 i could get all these details except the prodn order no. could you advice me please?

    to make sure you know how to do this.
    In the material document list, hit "Ctrl+F8" on your keyboard.
    A window will pop up. Click on the button position and look for "order" in the list of available fields. That should do it.
    Rgds.

  • Account Assignment - Qty and Value Update

    Hi,
    I need to have value and qty update for a a/c assignment po's.. ie in po i'm using a/c assignment as A, and in gr i need to have qty and value update . how to do?? is it possible? i knew that that a/c assingment won't generate qty update for a/c assignment catergores... is any way to create qty update for a/c assignmnt cateroires (K-cost center,A-Asset)

    Hi,
    when you are creating a PO with account assignments menas , the costs of this product need to get posted to the account assignment , and the material is being procured for consumption ( not for stock) to this account assignment.
    But however , qty and value updates depends upon the material type of the material.When you use  a stocked material type material is used for the PO, change the account assignment definition as said in above posting.
    Chek the material type of the material you used for the PO to your error message.
    Regards,

  • Consumption acct of materia which issue to maint. ord. and production order

    Hi all,
    I have one problem with the cost report for maintenance orders.
    I have one material code, such as we call A.
    Mat. A is issued to production order and also maintenance order.
    For production order, consumption account is 123
    For maintenance order, consumption account is 456
    I have defined new movement type for issuing to Maintenance order is ZB1
    in OBYC:
          GBB - VRB --> 123
          ZB1  --> 456
    So for accounting purpose, I can slit these consumption accounts
    However, when  I go to maintenance order cost reports, systems slit these cost into 2 line
    Material  A        Acct. Cons 123        Plan cost 100        Actual cost 0
    Material   A        Acct. Cons  456       Plan cost 0            Actual cost 120
    How can I group into  1 line ?
    Edited by: Emily Nguyen on Jun 2, 2009 12:15 PM

    Hi Emily
    In OBYC you can configure GL accounts per valuation class.
    You cannot configure Movement type wise. Each General modifier is linked with movement types.
    We cannot give two consumption accounts for one valuation class in VBR.
    Run your plan cost again.
    Thanks
    Kiran A

  • I need to display a Report which contain -- del QTY  and  INV QTY   in one

    Hi ALL,
    I need to display a Report which contain
    <b>Customer  , Material , Order No, Delivery No, Billing No , Order Qty , Dev Qty, Bill Qty , Invoiced Qty  and There Values  in One Line  .</b>
    How can I Display, When I am executing the report against the Delivery Number Bill Qty and Invoiced Qty is showing Hash ( # ).
    Do I need to right any Routines for this, if I am correct,  where I have to write that code and what is the code ,
    What are the Consolidation  routines ?????
    I am working on BI 7.
    Regards ,
    Shaik
    Message was edited by:
            shaik

    Frst check in backend, which all cubes have got data for each of three..
    Corresponding you can go ahead with Multi/Infoset..
    Look for reference no in all three cubes and pick one order and track tht by reference no in all cubes,
    Hope it helps..
    Thanks for points assigned

  • OUTSTANDING PO QTY AND OUTSTANDING PO VALUE

    Hi
        I am in need of report to print outstanding po qty and outstanding po value.
    could any one please give me the source code..
    Its very urgent.....
                   Thanks in advance

    Please find this report for Outstanding PO's
    report zaprropo message-id zm no standard page heading line-size 212
                                                           line-count 65.
    **** TABLES------------------------------------------------------------*
    tables:
          ekko,                            " Purchasing Document Header
          ekpo,                            " Purchasing Document Item
          ekbe,                            " History of PurchasingDocument
          essr.                            " Service Entry Sheet HeaderData
    **** DATA--------------------------------------------------------------*
    data  : begin of it_ekko occurs 0,
             ebeln like ekko-ebeln,
             ernam like ekko-ernam,
             ekgrp like ekko-ekgrp,
             bedat like ekko-bedat,
           end of it_ekko.
    data  : begin of it_ekbe_gr occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_gr.
    data  : begin of it_ekbe_ir occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
    *          bewtp LIKE ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_ir.
    data  : begin of it_output occurs 0,
              ekgrp like ekko-ekgrp,
              ebeln like ekko-ebeln,
              ebelp like ekpo-ebelp,
              ernam like ekko-ernam,
              afnam like ekpo-afnam,
              bedat like ekko-bedat,
              txz01 like ekpo-txz01,
    *          bewtp LIKE ekbe-bewtp,
              netwr like ekpo-netwr,
              dmbtr like ekbe-dmbtr,
              iramt like ekbe-dmbtr,
              outst like ekpo-netwr,
              eindt like eket-eindt,
    *          effwr LIKE ekpo-effwr,
            end of it_output.
    data  :  begin of it_title occurs 0,
               h11(5),
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10),
             end of it_title.
    data : flength.
    data : s_no type i value 1.
    * ---- Added by Gopi
    * Internal table for PO / WO Delivery Date
    data : begin of it_eket occurs 0,
             ebeln like eket-ebeln,
             ebelp like eket-ebelp,
             eindt like eket-eindt,
           end of it_eket.
    ***** selections
    selection-screen : skip.
    selection-screen : begin of block block1 with frame title text-001.
    parameters : s_bukrs like ekko-bukrs.
    select-options :  s_ebeln for ekko-ebeln,
                      s_bedat for ekko-bedat,
                      s_ekgrp for ekko-ekgrp.
    *                  s_hdg   for ekko-ekgrp.
    selection-screen : end of block block1.
    selection-screen begin of block btch with frame title text-003.
    parameters: excel as checkbox,
                file(128) type c.
    selection-screen end of block btch.
    selection-screen begin of block block2 with frame title text-002.
    parameters: asat as checkbox,
                p_date like sy-datum.
    selection-screen end of block block2.
    *---------AT SELECTION-SCREEN------------------------------------------*
    at selection-screen.
    at selection-screen on value-request for file.
      perform get_file_name using file.
    **** main program code**************************************************
    start-of-selection.
      it_title-h11 = 'S.No'.
      it_title-h0  = 'Group'.
      it_title-h1  = 'PO Number'.
      it_title-h2  = 'PO Item'.
      it_title-h3  = 'PO Creator'.
      it_title-h4  = 'Requisitor'.
      it_title-h5  = 'PO Date'.
      it_title-h6  = 'PO Short Text'.
      it_title-h7  = 'PO Amount'.
      it_title-h8  = 'GR/SE Amount'.
      it_title-h9  = 'IR Amount'.
      it_title-h10 = 'Outstanding'.
      it_title-h12 = 'Del. Date'.
      append it_title.
      perform extract_po_details_new.                           "20070814
      perform extract_po_history_new.                           "20070814
      perform calculate_outstanding_new.                        "20070814
    end-of-selection.
      perform display_report.
      if excel = 'X'.
        perform download.
      endif.
    * ---- Added by Gopi
    top-of-page.
      perform page_heading.
    *************************** display_report ****************************
    form display_report.
    *  it_title-h11 = 'S.No'.
    *  it_title-h0  = 'Group'.
    *  it_title-h1  = 'PO Number'.
    *  it_title-h2  = 'PO Item'.
    *  it_title-h3  = 'PO Creator'.
    *  it_title-h4  = 'Requisitor'.
    *  it_title-h5  = 'PO Date'.
    *  it_title-h6  = 'PO Short Text'.
    *  it_title-h7  = 'PO Amount'.
    *  it_title-h8  = 'GR/SE Amount'.
    *  it_title-h9  = 'IR Amount'.
    *  it_title-h10 = 'Outstanding'.
    *  it_title-h12 = 'Del Date'.
    *  APPEND it_title.
    *  WRITE : / 'Outstanding PO Listing Report'.
    *  ULINE.
    *  FORMAT COLOR COL_HEADING.
    *  WRITE : /1   it_title-h11,
    *           7   it_title-h0,
    *           14  it_title-h1,
    *           29  it_title-h2,
    *           38  it_title-h3,
    *           53  it_title-h4,
    *           68  it_title-h5,
    *           79  it_title-h6,
    *           122 it_title-h7,
    *           142 it_title-h8,
    *           162 it_title-h9,
    *           182 it_title-h10,
    *           202 it_title-h12.
    *  FORMAT COLOR OFF.
    *  ULINE.
    * If Output table is not empty
      if not it_output[] is initial.
        loop at it_output.
          on change of it_output-ebeln.
            uline.
            write : /1(5)  s_no, 6 sy-vline,
                     7  it_output-ekgrp,
                    14  it_output-ebeln,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
            s_no = s_no + 1.
          else.
            write :/6 sy-vline,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
          endon.
    *      WRITE :/6 sy-vline.
          clear : it_output.
        endloop.
      else.
    * If Output table is empty
        format color 5 intensified on.
       write : / 'No outstanding report generated for the purchasing group'
                  ,s_ekgrp-low, 'to', s_ekgrp-high,'for the period'
                  ,s_bedat-low, 'to', s_bedat-high.
        format color off.
      endif.
    endform.
    **************************** download*********************************
    form download.
      data: begin of it_download_header occurs 1,
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10).
      data: end of it_download_header.
      it_download_header-h0  = 'Group'.
      it_download_header-h1  = 'PO Number'.
      it_download_header-h2  = 'PO Item'.
      it_download_header-h3  = 'PO Creator'.
      it_download_header-h4  = 'Requisitor'.
      it_download_header-h5  = 'PO Date'.
      it_download_header-h6  = 'PO Short Text'.
      it_download_header-h7  = 'PO Amount'.
      it_download_header-h8  = 'GR/SE Amount'.
      it_download_header-h9  = 'IR Amount'.
      it_download_header-h10 = 'Outstanding'.
      it_download_header-h12 = 'Del. Date'.
      append it_download_header.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
           importing
                filelength          = flength
           tables
                data_tab            = it_download_header
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
                mode                = 'A'
           importing
                filelength          = flength
           tables
                data_tab            = it_output
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      if sy-subrc ne 0.
        message e999 with 'error downloading file :' file.
      endif.
    endform.
    *&      Form  get_file_name
    *       text
    *      -->P_P_FNAME  text
    form get_file_name using    p_fname.
      call function 'WS_FILENAME_GET'
           exporting
                def_filename     = p_fname
                mask             = ',*.*,*.*.'
                mode             = 'S'
           importing
                filename         = p_fname
           exceptions
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                others           = 5.
    endform.                    " get_file_name
    *&      Form  page_heading
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form page_heading.
    *  it_title-h11 = 'S.No'.
    *  it_title-h0  = 'Group'.
    *  it_title-h1  = 'PO Number'.
    *  it_title-h2  = 'PO Item'.
    *  it_title-h3  = 'PO Creator'.
    *  it_title-h4  = 'Requisitor'.
    *  it_title-h5  = 'PO Date'.
    *  it_title-h6  = 'PO Short Text'.
    *  it_title-h7  = 'PO Amount'.
    *  it_title-h8  = 'GR/SE Amount'.
    *  it_title-h9  = 'IR Amount'.
    *  it_title-h10 = 'Outstanding'.
    *  it_title-h12 = 'Del. Date'.
    *  APPEND it_title.
      write : / 'Outstanding PO Listing Report'.
      uline.
      format color col_heading.
      write : /1   it_title-h11,
           7   it_title-h0,
           14  it_title-h1,
           29  it_title-h2,
           38  it_title-h3,
           53  it_title-h4,
           68  it_title-h5,
           79  it_title-h6,
           122 it_title-h7,
           142 it_title-h8,
           162 it_title-h9,
           182 it_title-h10,
           202 it_title-h12.
      format color off.
      uline.
    endform.                    " page_heading
    *&      Form  EXTRACT_PO_DETAILS_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form extract_po_details_new.
      data: begin of it_po occurs 0,
        ebeln like ekko-ebeln,
        ebelp like ekpo-ebelp,
        ernam like ekko-ernam,
        ekgrp like ekko-ekgrp,
        bedat like ekko-bedat,
        txz01 like ekpo-txz01,
        netwr like ekpo-netwr,
        afnam like ekpo-afnam,
        effwr like ekpo-effwr.
      data: end of it_po.
      refresh it_output.
      if not p_date is initial.
        select a~ebeln b~ebelp a~ernam a~ekgrp a~bedat b~txz01 b~netwr
           b~afnam b~effwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on b~ebeln = a~ebeln
        where a~bukrs = s_bukrs  and
            a~aedat le p_date  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      else.
        select a~ebeln b~ebelp a~ernam a~ekgrp a~bedat b~txz01 b~netwr
           b~afnam b~effwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on b~ebeln = a~ebeln
        where a~bukrs = s_bukrs  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      endif.
      sort it_po by ebeln ebelp.
      delete adjacent duplicates from it_po.
      delete it_po where ekgrp eq 'HDB' and ebelp eq 10.    "20070814
      delete it_po where ebeln+0(1) eq '6'.
      loop at it_po.
        move-corresponding it_po to it_output.
        append it_output.
        clear it_output.
      endloop.
      refresh it_po.
      free it_po.
    endform.                    " EXTRACT_PO_DETAILS_NEW
    *&      Form  EXTRACT_PO_HISTORY_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form extract_po_history_new.
      data: begin of it_ekbe occurs 2000,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              shkzg like ekbe-shkzg,
              dmbtr like ekbe-dmbtr.
      data: end of it_ekbe.
      check not it_output[] is initial.
      select * into corresponding fields of table it_ekbe
        from ekbe for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp and
              bewtp in ('E', 'N', 'Q', 'R', 'X').
      loop at it_ekbe.
        if it_ekbe-bewtp = 'E'.          "GET GR AMT
          move it_ekbe-ebeln to it_ekbe_gr-ebeln.
          move it_ekbe-ebelp to it_ekbe_gr-ebelp.
          move it_ekbe-bewtp to it_ekbe_gr-bewtp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_gr.
        else.                              "GET IR AMT
    *    ELSEIF IT_EKBE-BEWTP = 'N' OR     "GET IR AMT
    *           IT_EKBE-BEWTP = 'Q' OR
    *           IT_EKBE-BEWTP = 'R' OR
    *           IT_EKBE-BEWTP = 'X'.
          move it_ekbe-ebeln to it_ekbe_ir-ebeln.
          move it_ekbe-ebelp to it_ekbe_ir-ebelp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_ir.
        endif.
      endloop.
      refresh it_ekbe.
      free it_ekbe.
    endform.                    " EXTRACT_PO_HISTORY_NEW
    *&      Form  CALCULATE_OUTSTANDING_NEW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form calculate_outstanding_new.
    *  DATA: BEGIN OF IT_EKET OCCURS 10000,
    *          EBELN LIKE EKET-EBELN,
    *          EBELP LIKE EKET-EBELP,
    *          EINDT LIKE EKET-EINDT.
    *  DATA: END OF IT_EKET.
      sort: it_ekbe_gr, it_ekbe_ir.
      sort it_output by ebeln ebelp.
      loop at it_output.
        read table it_ekbe_gr with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_gr-dmbtr to it_output-dmbtr.
        endif.
        read table it_ekbe_ir with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_ir-dmbtr to it_output-iramt.
        endif.
        if it_output-iramt gt it_output-netwr.
          delete it_output. " where iramt gt it_output-netwr.
          clear : it_output.
          continue.
        endif.
        if it_output-ekgrp eq 'HDB'.
          if it_output-netwr = it_output-iramt.
            delete it_output.
            clear it_output.
          else.
            it_output-outst = it_output-netwr - it_output-iramt.
            modify it_output.
          endif.
        else.
          if it_output-netwr = it_output-dmbtr.
            if it_output-dmbtr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          else.
            if it_output-netwr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          endif.
        endif.
      endloop.
      sort it_output by ebeln ebelp.
      check not it_output[] is initial.
      select * into corresponding fields of table it_eket
        from eket for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp.
      sort it_eket by ebeln ebelp.
      loop at it_output.
        read table it_eket with key ebeln = it_output-ebeln
                                    ebelp = it_output-ebelp.
        if sy-subrc = 0.
          it_output-eindt = it_eket-eindt.
        else.
          clear it_output-eindt.
        endif.
        modify it_output.
      endloop.
      sort it_output by ekgrp ebeln ebelp.
    endform.                    " CALCULATE_OUTSTANDING_NEW
    Regards
    Gopi

  • Adding new value fields to an existing and productive operating concern

    Hi,
    I would like to have 5 new value fields active in 4 out of 6 operating concerns that I am working with.
    Is it correct that I could do this one of the following ways:
    1. Use a value field that exists already in an operating concern and rename it?
    In this case is it necessary to regenerate the operating concern?
    Do I transport the change ?
    2. Create an entirely new value field, and assign it to the operating concern?
    Is it necessary to regenerate the operating concerns in question?
    Do I transport the change?
    3. Select a value field that is currently in the system but is not assigned to any operating concern eg some kind of SAP delivered value field?  How do I assign it to the op  con? Do I need to re gen the op con?
    Which way is the best or is there a 4th option?
    Thanks for your help in adviance
    Regards
    Aisling

    Hi,
    This note is a catalogue of notes of consulting notes where SAP tell you steps, reports to use and son . If you read them (these notes and related notes) you have the steps, guides, reports that you must use. Better advice. Try a solution with all steps in mind and check it in a quality enviroment. As you know there a lot of things in CO-PA concern (you have your own tables, with your own fields, your reports as KE2Rxxxx, and so on), your secondary indexes, etc.. , the best is try the solution in your Quality Enviroment (a quasi-clone of your production enviroment) and check the results (create SO, invoices, after modifications to check possible problems,...).
    Regards,
    Eduardo
    pd: I forgot. If the size of tables (CE4xxxx, CE1XXXX, ...check them with DB02) are so big, get the opinion of a Basis Consultant. Surely in the before note there notes about this issue.
    Edited by: Eduardo Hinojosa on Apr 23, 2010 2:41 PM

  • GL trial balance and All inventory value reports

    Hi,
    in oracle applications 11i the inventory super user claims that the results of the following two reports:
    GL trial balance
    and
    All inventory value report
    for the period MAY-09 DO NOT match.
    How can i investigate this issue?

    I haven't worked on PPAC but I assume its only a cost method to build the cost. Once costs are build GL entry happens in the same way.
    You said that you first freeze the cost and then run subledger update report.
    Once you freeze the cost, what cost do you see for product x?
    Once you produce 20 TONS output; subledger update should generate entry as follows:
    Cr WIP: cost*20
    Dr INV: cost*20
    Now you mentioned about title ALC (GL Allocation). I haven't seen that title.
    Also at the period end we need to run revaluation of inventory for STND method, I am not sure if the same is required for PPAC. Try performing that in test instance to see accounting entries generated.
    I am sorry if I confused you or didn't understand your question. I have used mostly worked with STND method and just trying to extend my experience with PPAC.

Maybe you are looking for

  • Needs Advice on Record Type and Views!!!

    Hello all, I have a package that returns a record type based on some arguments. I have a view that wants use a column from that record type. Obviously, I cannot call the package from the view. I started looking into objects type, maybe use it instead

  • Using Photos in iPhoto

    Hi - When I use photos in iPhoto (meaning I post them to a blog, develop them, send them, etc) - I currently drag them from iPhoto to the desktop, where I can then find them (when I click "load file," etc). Am I doing this in the designed way? How el

  • *URGENT* Problem with my Zen Mic

    Okay so I tried updating the firmware to 2.0, no problem. I did that at my sister's house and when I tried to plug in my Zen into my computer to upload songs again, Windows didn't recognize it. So I repeatedly installed/uninstalled the drivers (downl

  • Exporting from LR to PS for HDR Pro 32Bit

    Hi, before the latest updates to photoshop CC one could export from LR a series od Raw images to HDR Pro, create a 32bit file, save and editin LR or CR. Now, when creating the 32bit file photshops promts a button for edting in Camera Raw instead of t

  • Adobe processes keep running after closing program!

    Hello, I have this issue with Adobe Premiere Pro, After Effects, Media Encoder and Audition but not with Photoshop, Dreamweaver etc. Everytime I close one of those programs the respective process keeps running in the background. I can't restart the p