How to determine the oldest batch to the components of a process order??

Hi gurus,
While releasing I have configures to determine automatically the batches at order release, I want that system assign for each component of the process order the oldedst batch ( I can control wich batch is older because is a consecutive number so assigning the smallest batch should work)
Right now system doesn't allow to to release because is asking for the batch for each material, so it seems to me that the batch determination is not happening, I created a batch and a characteristic but I dont know if this must be done of if I have to do something else, please guide me trough the steps needed to achieve this with Tcodes.
Thanks
Julio

Hi Julio
I hope you want to use the FIFO method for the batch Determination,,
it can be done through STD config settings,,
1. Characteristics for the LAST GR date-CT04
2. Batch sort rule-CU70
3. Define the batch determination for the Process orders-COB1
In the Batch master there is a Field - Last GR date,, you have to maintain this as a Characteristics and make as automatic populate field based on the LAST GR field from Basic Data1 from the Batch Master,,
This field you ref on Batch Sort rule.. and Define the batch determination how it has to pick (like- Split batch, One after other)
After this at the time of issue the goods click the Batch determination- it will provide the list of batches,, if not picj the rules first time, there itself you can select the rules and assign to get the batch list by last GR date
Ref the below links for further details
http://www.sap-img.com/materials/lifo-and-fifo-in-batch-management.htm
http://www.sap-img.com/materials/config-setting-in-batch-management.htm
Thanks
Senthil

Similar Messages

  • HT1595 I have 2 Apple TV's one the oldest works fine the 2nd one refuses to recognise the MacBook Pro its connected to but I can play media from the MacBook on the Apple TV from iTunes, help?

    I have 2 Apple TV's one the oldest works fine the 2nd one refuses to recognise the MacBook Pro its connected to but I can play media from the MacBook on the Apple TV from iTunes, help?

    Sorry, content bought with one Apple ID cannot be merged or transferred to another Apple ID.

  • To retrieve the oldest date in the report

    I have a requirement to retrive the oldest date in the report, I am currently working in BW 3.5
    The scenario is as below
    I have a char infoObject creation date which retrieves the date
    I have a char infoobject status which retrieves open or close
    For eg in my cube I have 5 records
    3 records has the status open and 2 records has the status closed
    When I adding the InfoObject "creation date" which has filtered for the open status , I am getting the result correctly with 3 records
    Now my requirement is I need to have only one row which should get oldest "creation date" out of the 3 records as below
    Rec1 10.10.2006
    Rec2 25.11.2007
    Rec3 20.08.2009
    I need only one count in the creation date which should show me 10.10.2006

    Hi Pavan.
    Can you model the creation date as a key figure as well as having it as a char? If so, you can create a condition on the key figure, to only give you the "Bottom 1" record.
    I think in 3.5 you cannot use a formula variable to read the value of the char in the row, but if you can, you can do it like that with a calculated key figure where you use the formula var and then put a condition on this ckf.
    regards
    Jacob

  • How to determine most recent date from the date column of internal table

    Dear friends
    would you like to tell me. how i determine the most recently changed record by looking at date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and time to determine which record is most recently changed...
    here the scenario is.
    id idnumber chdate chtime
    1 123456 20060606 135312
    2 123456 20060606 135900
    3 123456 20060606 132300
    4 123457 20060606 140000
    5 123457 20060606 142500
    in the above scenario i must keep in my mind that the most recently changed record is identical to its idnumber i can say that:
    the record should be fetched this way
    id idnumber chdate chtime
    3 123456 20060606 132300
    5 123457 20060606 142500
    because here the id 3 is the most recently changed in the idnumber 123456
    where id 5 is the most recently changed in the idnumber 123457
    please help me to determin how i am supposed to carry out this task any suggestion, code will be great help of mine.
    regards
    Naim

    After testing my suggestion above, I realized that it doesn't work because the delete adjacent actually will keep the first one and delete the rest.  I'm working with Srinivas's code a bit now,  I think it is almost what you want.  I am under the impression that you dont' want to HIGHest date/time, but just the last record of the sequence, if this is the case, then this code will help.  Here we will assign an index to each record per the idnumber, that way we can sort it and get the lastest record.
    report zrich_0001.
    types: begin of itab_type,
            id       type i,
            idnumber type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type.
    types: begin of itab_type2,
            id       type i,
            idnumber type i,
            index    type i,
            chdate   like sy-datum,
            chtime   like sy-uzeit.
    types: end of itab_type2.
    data: itab     type table of itab_type with header line,
          itab2    type table of itab_type2 with header line,
          prev_rec type itab_type.
    data: v_id type i.
    start-of-selection.
      itab-id       = 1.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135312'.
      append itab. clear itab.
      itab-id       = 2.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '135900'.
      append itab. clear itab.
      itab-id       = 3.
      itab-idnumber = 123456.
      itab-chdate   = '20060606'.
      itab-chtime   = '142500'.
      append itab. clear itab.
      itab-id       = 4.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '140000'.
      append itab. clear itab.
      itab-id       = 5.
      itab-idnumber = 123457.
      itab-chdate   = '20060606'.
      itab-chtime   = '120000'.
      append itab.
      clear itab.
    <b>  data: counter type i.
    * Assign an index to each row per idnumber
      loop at itab.
        on change of itab-idnumber.
        if sy-tabix > 1.
          clear counter.
          endif.
        endon.
        clear itab2.
        move-corresponding itab to itab2.
        counter = counter + 1.
        itab2-index = counter.
        append itab2.
      endloop.
    * Sort it and get rid of older records.
      sort itab2  by idnumber ascending
                     index descending.
      delete adjacent duplicates from itab2 comparing idnumber.</b>
      read table itab2 with key idnumber = '123456'.
      write:/ itab2-chdate, itab2-chtime.
      read table itab2 with key idnumber = '123457'.
      write:/ itab2-chdate, itab2-chtime.
    Regards,
    Rich Heilman

  • How to determine via SQL who created the sales order

    Hello I am trying to determine via SQL who created the Sales Order.  I'm looking at the ADOC table but having a hard time determining which record points to the sales order creation.

    Hi Jimmy,
    Try this:
    select
         T0.[DocNum], T2.[DocDate], T2.[CardCode], T2.[CardName],
         T1.U_NAME as [User Name], T2.UpdateDate as [Cancelled Date]
    from
         ORDR T0
         inner join OUSR T1 on T0.UserSign = T1.UserID
         inner join ADOC T2 on T0.DocNum = T2.DocNum
    where
         T2.LogInstanc = (select min(LogInstanc) from ADOC T3 where T3.ObjType = 17 and T3.DocNum = T0.DocNum and T3.CANCELED = 'Y')
         and T2.CANCELED = 'Y'
         and T2.ObjType = 17
    group by
         T0.DocNum, T2.DocDate, T2.CardCode, T2.CardName, T1.U_NAME, T2.UpdateDate
    Kind Regards,
    Owen

  • How to determine where Music Manager stores the fi...

    Hi!
    Is there any way to tell to Music Manager how I want my mp3 files to be stored in my 9300i phone?
    I have created one folder in my laptop where I have copied music files from different artists and different albums. I try to use the random transfer from this folder and I want the files to be copied to my phone similarly (that is all files in the same folder). All I get is a separate folder for each and every artist and below that a folder for each and every album.
    I could use the File Manager to move the files to my phone, but I'd like to use the random transfer in Music Manager...

    That's the way Nokia Music Manager works. Artist -> Album -> Song. It's the whole idea of the manager.
    Previous phones: 3330, 3410, 3510i, 3200, 6230, Nokia N70, Nokia N73, Nokia N82, Nokia 5500 Sport & Nokia N97
    Current: Nokia N900

  • How to Determine File Code page of the txt file generated thru UTL_FIle

    Hi
    I want to know the file code page of the txt file that I have generated in Oracle using UTL_FILE.
    E.g., OUT_FILE := UTL_FILE.FOPEN(DIRNAME,vFILENAME,'W',2000);
    What is the way to do so? I have read on internet that if we want to know the code page of a file then we just have to open in any browser like IE and just check the encoding from there. Is this the correct way to know the encoding?
    Also, I want to know that whether file code page is dependent on OS or the source from which the file is being generated?

    "The Oracle character set is synonymous with the Windows code page. Basically, they mean the same thing."
    Source:http://www.databasejournal.com/features/oracle/article.php/3493691/The-Globalization-of-Language-in-Oracle---The-NLSLANG-variable.htm
    Means, in oracle we says character set which is = window's code page.
    "Determine the code page of your Oracle database ( = select parameter, value from nls_database_parameters and look for parameter NLS_CHARACTERSET)."
    Source:http://media.datadirect.com/download/docs/slnk/admin/intlangsupp.html
    Which already said by Pierre above.
    HTH
    Girish Sharma

  • Overwriting the oldest data in the file

    Hi,
      I have a file of 10MB want to write in to file continuously overwriting the oldest data, my file size should be maintained 10MB and program may run for quite long time. since i am new to labview used file operations, shiftregisters and little queues but i am not getting any satisfactory results, hopping my problem is simple and someone could help me on this.
    Thanks,
    ranjan.

    Well, we earlier solved it for the 20MB case, so the 10MB case should be trivial to solve.
    What is the structure of the file, are all records of equal lenght?
    Yes, most likely the solution is simple! Maybe you can show us your code that produces unsatisfactory results and tell us what kind of results would be satisfactory.
    LabVIEW Champion . Do more with less code and in less time .

  • Batch key-X,1,2 in process order material assignment tab

    hi all
    What is the significance of Batch key X , 1, 2 in the process order .When I carry out material availabilty check the material with the batch key ' X ' is giving problem. also on release of order giving pop-up of insufficient batch determination
    That is the material with the batch key ' X ' is available in stock in sufficient quantities but it is showing in the missing parts list and also not allowing me to carryout batch determination . How to change the batch key of this material .
    regards

    Dear,
    Please refer my reply from this thread,
    Material Availability check
    Regards,
    R.Brahmankar

  • Batch specific unit of measure in process order

    Hello,
    I have a BOM with a component with active ingredient.
    Batches are classified and transaction MMBE shown stock correctly in both units.
    But when creating the process order I get two items with same item numer in the material list.
    One for batch specifiv unit of measure which is fine.
    I also get another line in the base unit of measure.
    In table RESB both records have movement allowed so they show up in MIGO.
    This increases the total requirements for the component.
    What is happening??
    Best regards,
    TOr

    Thanks for caring!
    As for transaction MMBE it all looks fine. So basic definitions must be OK up to that point.
    I think the point is to set requirement for the amount of active ingredient.
    Do the batch determination for this.
    Do the goods issue in physcial quantity which is the base unit of measure.
    I did try now with KG in the BOM. I still get  double items in the process order. Now both in KG.
    One line is correclty copied.
    The incorrect line which is the same in both cases says 1 KG. which is the correct conversion from  0,01KAI.
    Regards,
    Tor

  • Batch Number field in IDoc for Process Orders (message type LOIPRO01)

    Hello PP experts,
    Just wanted to ask if anyone of you have worked with message type LOIPRO01 (IDoc for process orders)
    There is a segment-field in this IDoc  E1RESBL-CHARG which has description of "Batch Number"
    We tried to assign a Bath Number for an Order (using t-code COR2 --> "Goods Recpt" tab under "Receipt" section), generated an IDoc for this order, but upon checking the E1RESBL-CHARG field of the IDoc it is not populated with the Batch Number.
    The material in the process order is FERT, so technically we're trying to assign a Batch Number in one of the process orders for a Finished Goods material type,  so not on the component level.
    Can anyone here verify:
    1. is the E1RESBL-CHARG field of IDoc LOIPRO01 intended for the Product Batch Number?  If Yes, how do we populate that for in the IDoc?  --> Do I need to have a Reservation/Dependent Requirement for the Product for the Batch Number to be populated in the IDoc?
    2. If E1RESBL-CHARG can not be populated for a Product that has no Reservation/Dependent Requirements, Do I have any option of populating this field with just the Batch Number assigned to the Process Order of that product?

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • How to determine which Aperature Library is the original?

    I purchased an Imac a couple of years ago and switched to Aperature to help eliminate duplicates.  I spent time bringing them in a little at a time as not to duplicate.  I have moved what I thought was the master copy to an external drive so that it would not take up all the space.  I show eight copies of Aperature when I click option & then Aperature.  Please help me determine which is the main copy as they all have different version and original numbers.  I am so confused and was just trying to break it down so that I could manage it in even years at a time so that I could organize faces.  Not even really sure what version means as opposed to original.  I hope with some guidence I can finally get this right.  Thank you in advance if you understand where I am coming from

    My short guide here may help you understand the parts of Aperture better, which in turn will help you ask specific questions.
    I advise all users of Aperture to read and understand the first seven chapters of the User Manual -- it's available on-line, as well as via "Help➞Aperture Help" -- as they provide a tour of the interface.
    You are going to have to do some work.  I can tell that you are confused -- Aperture, assuredly, is confusing at first -- but I can't tell what you are asking.  You need to distinguish, in your questions, between the files you imported (Aperture calls these "Originals" after you've imported them) and the Images in Aperture (Aperture refers to these as both Images and as Versions).  Every Image has an Original.  The Original (remember, it's a file) can be stored inside the Aperture Library package, or outside the Library package.  These distinctions are covered in both of the resources mentioned above.
    If nothing makes sense, post back and we'll see how we can help you.
    --Kirby.

  • How to stop or reduce the RAM usage as the Wpf Datagrid is Continuosly being updated by background Worker?

    Hi,
    I am developing a packet sniffer application, I am getting a packets from adapter and am updating the information in the Wpf Datagrid using a Background worker. it is a continuous process. So if run this application for hours, after 5 or 6 hours I am getting
    a "Sytem.OutofMemoryException" as the RAM being full. Now my requirement is, the usage of RAM should have a some limit(suppose 750MB) for my application, once application reaches this, the usage of RAM should not increase and at the same time I should
    not get "OutofmemoryException". I mean application should free cached memory of starting Rows of DataGrid, means I should not display the initial Rows and I should display the latest entries. how can I achieve this?
    thanks,
    EDIT:
    Here I am using DataGrid.Items.Add() method to add the entries into the datagrid.
    How can I change my code to Observablecollection items now?

    You could remove entries from the ItemsSource collection of the DataGrid once the number of items reaches a certain threshold of items.
    If you for example use an ObservableCollection<T> as the ItemsSource of the DataGrid you could handle its CollectionChanged event and remove the oldest item when there are a total of say over 5000 (you may of course increase this value in your
    partiuclar application of you require to be able to display more than 5000 items in the DataGrid) items in it. This will make sure that there will never by any more than 5000 items kept in memory:
    const int MaxCount = 5000;
    public MainWindow()
    InitializeComponent();
    ObservableCollection<string> collection = new ObservableCollection<string>();
    collection.CollectionChanged += (ss, ee) =>
    if (collection.Count > MaxCount)
    collection.RemoveAt(0);
    yourDataGrid.ItemsSource = collection;
    Since there is no good way to determine exactly how much physical memory the objects in the ObservableCollection<T> occupy so you better choose a maximum
    number of items to be kept in memory (like MaxCount = 5000 in the sample code above) and then remove the oldest one when the number of items reach this maximum.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Batch selection at the time of GR for Process Order

    HI experts,
    I have the following problem -
    I have got a process order of 51, at the time of order creation I have assigned/created 2 batches for the process order using some development and making use of user field. Now at the time of GR after final confirmation, I want to select the batch number for the required quantity, i.e I want to do the GR for both batches, and I want to select the specific batch from the assigned 2 batches. I am facing a problem that , the GR by default selects the first batch of the order and the batch number field greys out. I am not able to select the second batch if I go for second GR of the same process order.
    How can I make the field selectable , such that I can select the required batch at the time of GR.
    Regards
    A S K

    There is a possibility to use batch split- kindly check if you are able to do this
    Reg
    Dsk

  • Lumia 520 can not update! I have the oldest versio...

    Hi, I'm desperate. My L520 has the oldest version of the OS and offer no further updates. I dont know how solve the problem.

    hi mate, check in Settings > About and tell us what country you are in, and also what carrier you are using.

Maybe you are looking for

  • What are the pros and cons of using a port system.

    Hello All, I'm a new explorer in the OS X UNIX world, and have installed macports, and, for the most part, succeeded in building and using a number of scientific applications. I have noted a somewhat negative attitude by some on the use of port syste

  • FS9/FSX under XP/Vista with bootcamp on an iMac

    Good day all, I've been a PC builder/user for many years and am considering an iMac. The one thing holding me back is it's ability to run FS9/FSX under XP/Vista via bootcamp. Anyone running FS9/FSX on an iMac? How are the graphics? (everything turned

  • Oracle 8i db import error

    while importing oracle 8.1.7.0.0 to oracle 11g R2, i am getting following error... IMP-00017: following statement failed with ORACLE error 3249: "CREATE TABLESPACE "TOOLS" DATAFILE '/home/oradata/oracanet/tools01.dbf' SI" "ZE 10485760 AUTOEXTEND ON N

  • How to display millisecond along with hh:mm:ss

    Hi folks! This has the reference to the answer given by Jagruti to my previous question, which has the same subject of this. In my program i've used localtime function which is declared in /usr/include/time.h to get seconds. Then I used the macros 'S

  • How to export/import database?

    If I have an export file from database PROD and want to import to database DEV. How to do that? Do i need to create an empty database as target database? both database are using orapw files. I'm using oracle 8.0.5 in unix.