Batch wise inventory for FG

Requirement:
There are 2 plants AAAA-Manufacturing Plant, BBBB-Central Warehouse.
Plant BBBB is procuring FG from AAAA. Its intercompany sale between 2 company codes.
Batch (B1) of FG u2018Xu2019 with qty 100 is procured from AAAA with cost 1000.
Batch (B2) of FG u2018Xu2019 with qty 100 is procured from AAAA with cost 1200.
Client want to valuate the inventory with the Actual cost of each Batch procured.
Since price control u2018Su2019 is used for FG, the inventory will be valuated with standard price.
The difference between procurement cost and standard price will be posted to PRD.
Client is not accepting the PRD account
Hence batch wise inventory valuation needs to be done, But for that Price control u2018Vu2019 needs to used for FG.
Price control V for FG is not advisable, as it will have impact on account management, Product costing in the manufacturing plant.

Hi Vikas,
The Query :
DECLARE @WTREntry int  = 1
SELECT T0."ObjType"
  , T0."DocEntry"
  , T1."DocLine"
  , T1."ItemCode" "ItemCode"
    , T3."DistNumber" "BatchNumber"
  , (T1.DocQty/Abs(T1.DocQty)) * T2."Quantity" Quantity
  , T2."BinAbs" "BinAbs"
  , T1."LocCode" "Whse"
  , T4."BinCode" "BinCode"
  , T1."LogEntry"
FROM OWTR T0 JOIN OITL T1 ON T0."DocEntry" = T1."DocEntry" AND T0."ObjType"  = T1."DocType" AND ISNULL(T1."DefinedQty",0)>0
  JOIN OBTL T2 ON T1."LogEntry" = T2."ITLEntry"
  LEFT JOIN OBTN T3 ON T2."SnBMDAbs" = T3."AbsEntry"
  LEFT JOIN OBIN T4 ON T2."BinAbs" = T4."AbsEntry"
WHERE  T0."DocEntry"  = @WTREntry
ORDER BY T0."DocEntry", T1."DocLine", T1."LogEntry"
Change the @WTREntry to your doc entry.
Note the negative qty mark the direction is out.
Positive qty mark direction in. If you need to get only the in, then filter the negative quantity.
Also note that the above assume a transfer from Bin to Bin.
Regards
Edy

Similar Messages

  • Batch wise stock for a Purchase order

    Here, i am receiving the goods from the customer for jobwork, while receiving the material (cloth) itself i wont receive the design what i have to print on the material.(For eg customer will send me some 5000 mtrs, he wont mention the design for that. but we have to give a lot number for the whole 5000 mtrs, then after 1 week he will give design for 2000 mtrs. and also he will tell 2000 mtrs 4 colors i have to divide that 2000 mtrs into 4 different batches and i have to bring it in to stock. and also i have to see the report that customer issued 5000 mtrs and for 2000 mtrs he had given program remaining 3000 mtrs he has to give program(Design)).
    what i did is i created new doc type in PO (customer Cloth Receipt)
    I made number range for that doc type as what they are currently maintaining now (so that number will be lot number, it will be the identification for that customer to track the material what he have supplied)
    i created the new output type so that i can give the printout as an acknowledgement to customer
    i created the customer as vendor
    i did inbound delivery for that material what i have received (5000 mtrs) from customer(Vendor)
    when i receive the program(design) for 2000 mtrs 4 different batches
    i did GR against the inbound delivery so that while doing GR i can create 4 different batches and i can bring that 2000 mtrs into stock.
    Pls guide me some steps where i can make this process simple......

    Hi Jurgen,
    Thanks for your reply. I am not looking for any analysis report or LIS report.
    i am looking for simple ageing report for a date entered by the user. I got the logic and tables for the current date but if i need to refer the stock ageing of previous date like my stock ageing at 30-06-2010. I am not able to get any tables where i can have the batch stock for a given date or a month.
    The report output format to be
    stock <=30 days
    stock>30 and <=90
    stock>90 and <=180
    stock>180 days
    The criteria for calculation will be the date entered by the user in the input screen. If the user enters the date as 30-06-2010 then all the stock received in the month of june and still lying in my storage location will fall the category <=30 and display in the report.
    Stocks received in the month of march, april and may will fall under the category "stock >30 and <=90".
    If I can get the batch wise stock for a particular month , I can pick the posting date of the Goods receipt from the batch number and calcuate my ageing (i.e date entered in the input scren of the report 30-06-2010 - batch posting date).
    I am also referring to the note which you have sent but in the mean while if you can help me to identify the tables where I can get the batch stock for a particular month.
    Thanks
    Fazal.

  • Batch wise stock for a given period or month

    Hi,
    My company wants to implement stock ageing report in MM.
    We manage the stocks in Batches. For us the main criteria for stock ageing is batch creation date.
    The report should run stock ageing based upon the date range given as an input screen
    For ex : date range in input can be of today or as of 30.06.2010.
    If the report is run as of today then I am able to get the batch stock from table MCHB . Quantity from field "CLABS"  and the batch creation date from the field "ERSDA"
    But if the report to be run as of 30-06-2010. Then I am not able to get the data from MCHBH as of 30.06.2010.
    I have checked for one material in the table and as per stock it should be 351 as of 30-06-2010 but in the MCHBH table for the month 06. year 2010 it is showing as 136 pcs only.
    As our LIS tables are not getting populated correctly I am not able to check those tables too.
    Can any one guide me with the logic or the table where I can get the batch stocks for a particular month.
    I need Material, Batch, Quantity month and year .
    Please advice how can i get the data and from which table.
    Thanks you for your support in advance.
    Regards
    Fazal

    Hi Jurgen,
    Thanks for your reply. I am not looking for any analysis report or LIS report.
    i am looking for simple ageing report for a date entered by the user. I got the logic and tables for the current date but if i need to refer the stock ageing of previous date like my stock ageing at 30-06-2010. I am not able to get any tables where i can have the batch stock for a given date or a month.
    The report output format to be
    stock <=30 days
    stock>30 and <=90
    stock>90 and <=180
    stock>180 days
    The criteria for calculation will be the date entered by the user in the input screen. If the user enters the date as 30-06-2010 then all the stock received in the month of june and still lying in my storage location will fall the category <=30 and display in the report.
    Stocks received in the month of march, april and may will fall under the category "stock >30 and <=90".
    If I can get the batch wise stock for a particular month , I can pick the posting date of the Goods receipt from the batch number and calcuate my ageing (i.e date entered in the input scren of the report 30-06-2010 - batch posting date).
    I am also referring to the note which you have sent but in the mean while if you can help me to identify the tables where I can get the batch stock for a particular month.
    Thanks
    Fazal.

  • Batch wise Valuation for a material

    HI Expert,
    for maintaining batch wise pricing for a material, we can use split valuation.
    Is it possible that without using split valuation , we could maintain batch wise valuation.
    If yes how.?
    Regards,
    Santosh

    only option is split valuation

  • Batch wise inventory valuation

    Hi,
    what is batchwise inventory valuation?.how to design it in sap?
    Please suggest....
    Edited by: Venkatesh DY on Nov 25, 2011 7:37 AM

    Hi Venkatesh,
    May be the below links helps you
    Batch Wise Item Cost
    Automatic Split Valuated Batch Material
    http://www.sap-img.com/mm025.htm
    Dasaradha

  • Inventory Count for Batch Managed materials - Plant, S.Loc and Batch Wise

    Hi.,
    In the company's current scenario, the printing of batch managed materials are scheduled under 3 Job names.
    1. First job determines the materials/batches that need to be created today using Program RM07ICN1
    2. Second Job Processes the BDC Session created by Program RM07ICN1 using Program: RSBDCSUB
    3. Third Job prints the Inventory tickts at the appropriate Storage location using Program: RM07IDRU
    Each Job has its own variant.
    The Variant for SL.No 1 is defined w.r.t
    i. Material Type : Two Material types have been defined
    ii. Under selection variable, GIDAT ( Planned count date and GBDAT are flagged.
    Current Analysis:
    A. The inventory documents get printed with Materials as per the cycle counting indicators defined which govern which material has to be currently counted.
    B. Inventory documents are generated for all materials in all the plants and in all the storage locations
    C. Batches for a material number may print on different cycle count documents throughout the year. 
    Customer requirement:
    The inventory documents to print on basis of
    1. Material, Plant and S.Loc.
    This would help in identifying the batches which are currently being counted as well.
    2. Customers requirement is to ensure that all batches are accounted for and will identify any overage of batches since in the current process, they are never reviewed as a whole.
    QUESTION:
    1. How to configure the Customer requriement.
    2. How to configure the Variant/s, if thats the place the configuration has to be done to satisfy the customer.
    3. How to activate the Variant in SE37 after definition in the Step Indicator. Does it activate on execution?
    When i run the Program using SE38 , maintaining options in the Screen ( giving Material, Plant and S.loc), i get the desired list (Batches w.r.t Material,plant.S.Loc). But there is a list of over 150 Batch managed materials and it would not be physically possible to maintain the variant for each each Material,plant,S.loc wise.
    Is there a way to configure the customer requirement/s.
    Any and all help is much appreciated.
    Thanks

    Hello Mahesh,
    <b>Customer requrirement is specific, they want a list of Inventory Documents to be generated on basis of Material in each Plant-S.Loc batch wise.</b>
    Then you need to define multiple varinat for the program.
    <b>(a) If i am giving two variants in the same Program name RM07ICN1, how to execute one after after in sequence.
    In testing, I have defined in the " Step", Progran RM07ICN1 with one variant and Program RM07ICN1 with another Variant. But on execution of Program RM07ICN1 thru SE38, the screen defined latter ( second variant screen data ) is displayed.</b>
    You need to define several steps in SM36 transaction for the program using each variant. SE38 you can use only to save your variant data so later you can use this variant in SM36.
    Once you schedule the job with SM36 and release it then it will automatically execute this job as per your criteria (timeline)
    Hope this helps.
    Regards
    Arif Mansuri

  • Batch wise rate and revenue for Profitability reports

    Process are
    We are doing GR of material based on Batch wise and we have moving average price for all trading material.
    let say i did 2 GR
    Material   A
    Batch      x
    MAP       10rs
    QTY       10 kg
    Material  A
    Batch    y
    MAP     15 rs
    QTY     20 kg
    now i have stock of 30 kg of material with batch X and Y
    Now i got sales order of 15 qty and I issued 10 qty from batch X and 5 qty from batch Y 
    and did billing also.
    Now my client want profitability batch wise and rate of consumption also batch wise.
    I can create one characteristic WWBAT for batch and also planned  Table lookup for Derivation from SD table LIPS.
    But how to get cost Batch wise - 10 rs for batch -X and 15 rs for batch-Y. becoz price will come from VPRS which is my latest MAP
    regards
    RR

    Hi
    For Batch - You need to create a WW Char i.e. User Defined Char
    Valuation Type - Should be available as a Standard Char in COPA.. You can pull it in your Op Concern from KEA5 using "Reference" option
    To get the Batch No - You need to create a derivation step in KEDR using "Enhancement" method... SOURCE field can be ARTNR and Target Field will be WW Char.... Then you can write exit COPA0001 or COPA0005
    Valuation Type can also be fetched using the same exit...
    br, Ajay M

  • Need Report for batch wise consuption

    i need the coding (program) for batch wise consuption report,,,
    output fields are
    Posting date, batch number, quantity, mfg date, exp date, next inspec date, order no(po) , product name, batch no quanty issue.
    i want the logic after retriving the data from MSEG table with moment types 101,102,261,262,201,202.
      that i should cancle the record of movement type 102 from 101
    regards
    mukesh

    HI Siva,
    Thanks for quick reply. Yeah, in S_ALR_87013047 i can compare only two materials. but i am looking for a report for group of materials for forecasting. Can we create acustomised report for this.
    Please let me know.
    Thanks
    vamshi

  • Stock Report, Batch Wise

    Hi Gurus,
    I have to prepare "Stock Report Batch Wise" in BI for SD module. May be for the finished goods. For this in BI which data Cubes/ data sources I can use? Do Std MM BI content Cubes/data sources help?
    My question do MM business contain information on finished stock, stock in transit, stock-yard inventory from Sales & distribution module point of view??
    Regards,,,

    Hi,
    Please see this link
    http://wiki.sdn.sap.com/wiki/display/BI/ReportsgeneratedusingdifferentDatasources
    it ll help u
    Regards,
    Kavita C.
    Edited by: kavita on Feb 8, 2012 8:34 AM
    Edited by: kavita on Feb 8, 2012 8:34 AM

  • Stock on posting date -storage location and batch wise

    Dear All
    I need to developa report exactly same as MB5B but with storage location and batch wise.
    We need  storage location wise opening stock, total receipts, total issues and closing stock, and values for given time period.
    I have gone through some history tables like MCHBH and MBEWH.
    But all the history tables are having fileds for period wise but not date wise.
    Any focus on this?

    You have to read the coding of MB5B to see how SAP is doing it.
    The stock per date is calculated, starting from a month end, adding or reducing quantities based on movements until the date in question is reached.

  • Month wise Closing balance of Material Wise and  Batch Wise

    Hi,
    We can get period wise closing balance for Plant-Storage Location-materials in MARDH.
    But i didnt find any table which can provide Plant - S.Loc - Year - Period (or Month) - Batch wise closing Balances.
    Can any body please suggest a table on the above criteria.
    Thanks
    Pardha Saradhi Bandaru.

    Hi,
    The required batch information can be taken from the table S034
    Regards
    Merwyn

  • Batch Wise Closing Balances Table

    Hi,
    We can get period wise closing balance for Plant-Storage Location-materials in MARDH.
    But i didnt find any table which can provide Plant - S.Loc - Year - Period (or Month) - Batch wise closing Balances.
    Can any body please suggest a table on the above criteria.
    Thanks
    Pardha Saradhi Bandaru.

    Hi,
    Check table MCHB
    Regards,
    Ratish

  • Batch wise material value

    i wanted to see batch wise material's op stock, closing stock, receipt value, issue value (qty wise and value wise), then which report we can consider. i am looking mb5b but in this either batch is appearing or value is appearing, but batch, value both are not coming in one screen

    u can c only a limited information for the batch.
    if u want all these infrmation, then a report has to be developed thru ABAP development

  • Storage Location wise Inventory( Qty+Value) as on a given date

    Hi friends
    Is there any report which gives the Storage Location wise Inventory( qty as well as value)? I have tried MB5B but when i select valuated stock option, I get a msg tht Storage location will be reset. So is there any other report in MM which I can refer to. Thxs in advance.
    Cheers
    Hrishi

    Hi
    Thxs for the reply. But T.Code MC.9 shows values for a particular month and not on a particular date.
    Cheers
    Hrishi

  • Batch wise actual material consumption and activity cost

    hi
    my client is steel industry, client requirement is heat wise actual material and machine cost. Heat is a batch number, how i can check batch wise actual material consumption and machine cost.
    regards
    imdad

    Hi Imdad
    Whats the batch definition in your case?? have you designed One batch per Prod order or One batch per GR?
    If its one batch per Prod order - you can directly see the prod order.. however, chances are less for this as Steel company might be using PCC i.e. repetitive mfg
    If its one batch per GR - Then you will have to track using the Confirmation no because each Confirmation will trigger the Goods Issue and Activity Confirmations...
    Using Table AFRU - You can track the individual Confirmation no and also the Activity Qty confirmed....COSS / COSSD will have the Activity Cost
    If any goods mvt are posted during the Confirmation, you would see a Mat Doc No populated in the field "Mat Doc"
    Br, Ajay M

Maybe you are looking for