Batch selection as per expiry date

Hi,
Please have alook at my requirement and suggest the possible solution.
We have raw material which is handles in batches. Let's say a raw material has three batch in the stock M1, M2 and M3.
M1 expiry date is on march10,  M1 expiry date is on april10,  M1 expiry date is on June 10.
So when i create a process order system should always pick a batch for which expiry date is close. That is it should select batch M1.
Please let me know if it is possible.
Thanks,
Dutta

Hi Debasish,
Please follow the given below link. I hope this will serve your purpose.
Re: BATCH SELECTION DURING ISSUE
Regards,Kundan

Similar Messages

  • The stock consumption as per expiry date and not as per availability date

    Hi All,
    We had a requirement like below for our client:
    While creating batch in ECC we put the expiry date for the batch as per the business requirement.
    Suppose batch creation date: 01.01.2011
    If in case the SKU shelf life is 1 year the logical expiry date should be 31.12.2011.
    But here user can put any expiry date (there is genuine business reasons behind that), so for one SKU for one Availability date of the batch we can have 2 expiry date.
    Please see below one example for the same:
                         EXPIRY DATE                 SHELF LIFE                    AVL DATE
    batch-1        08.10.2012                       720                              19.10.2010
    batch-2        06.06.2012                       365                              12.06.2011
    batch-3        01.08.2012                       360                              03.08.2011
    In the above case the SKU which is available first is having a long expiry period and vice versa.
    As per standard SAP the stock which is available first will be consumed first. So as per standard SAP batch1 will be consumed first than batch-2 and than batch-3.
    But our requirement is to consume stock based on the expiry date of the stock.So the stock which is going to expire first will be consumed first. In the above scenario the consumption should happen like batch-2 first than batch-3 and than batch-1.
    The client requirement is to consume the stock as per the expiry date and not as per the Availability date (this is what happens in the usual scenario).
    Could you please suggest how to incorporate this?
    Thanks in Advance,
    Mukesh Pandey

    Hi Mani,
    Thanks for your prompt reply.
    I tried using the characteristic for Expiry date as the sort criteria as per sap note 377186.
    After doing the changes in the structure as suggested by SAP note i was able to see this characteristics as one of the sorting criteria. But when I am trying to create pegging relationship between demand and supply element he message i am gtting is "MAX_SL_DATE" can not be used as a sorting criteria in a fix pegging.
    System is just ignoring it.
    We have batch managed stock here and stock availability date is batch creation date.But since we are manually creating batch in ECC and cifing it to APO we are getting scenarios where for the same creation date of batches we have different expiry dates.
    I hope i am clear now.
    Could you please suggest any other option as sorting is not working .
    Regards,
    Mukesh Pandey

  • Issue regarding Batch determination in Production order as per Expiry date.

    Dear all,
                    first of all  happy Navratri.
    I have issue regarding batch determination in production order.
    I have to compare P.O header materialu2019s expiry date and issuing components expiry date at the time of batch determination.
    lets take example,  Material having self life is u201CXu201D years and batch determination against PO is based on FEFO with the help of self life we can determine Expiry date of manufacturing material  suppose it is u201CYu201D  I have to introduce restriction at the time of good issue if expiry date of issuing components u201CZu201D is less than expiry date u201CYu201D.
    Please give your valuable suggestions either standard or through SAP enhancements.
    thanks & Regards
    SIVA

    Dear
    Thanks for your reply, i am layman about batch derivation can u elaborate it.
    Thanks & Regard

  • Manual batch selection by production/expiration date

    Hi, SAPers.
    Our implementation of GR for IBD process requires manual selection of the batch in inbound delivery (VL31N) and other documents by material production/expiration/availability/GR date .
    I can not find such search type in a batch selection dialogue witch appears when I call it via F4 key.
    It looks like it's possible to find a batch by production date only via BMBC.
    Can I somehow setup this type of search or ABAPers help is required?
    Is there any other way to find a batch except BMBC?

    Hi, SAPers.
    Our implementation of GR for IBD process requires manual selection of the batch in inbound delivery (VL31N) and other documents by material production/expiration/availability/GR date .
    I can not find such search type in a batch selection dialogue witch appears when I call it via F4 key.
    It looks like it's possible to find a batch by production date only via BMBC.
    Can I somehow setup this type of search or ABAPers help is required?
    Is there any other way to find a batch except BMBC?

  • Same Batch with different expiry dates

    Dear all,
    My vendor produced the same batch Y28 at an interval of 3 days eg 10/10/2008 , 11/10/2008, 12/10/2008 with an expiry date of 1year.
    He sent in the batch Y28 to me with the following expiry date 10/10/2009, 11/10/2009 and 12/10/2009.
    During GR, I need to enter the expiry date. However, I realised that the Batch Master for the same batch can only have 1 expiry date. I end up with the latest expiry date of 12/10/2009.
    Could anyone advise on how the above scenario sould be handled?
    Can I maintain 3 different expiry date for the same batch?
    Is it a norm that the same batch can have different expiry date?
    Thank you

    You should create a separate batch per day, if you really think that the exact date of expiry matters for a material that has a shelf life of one year.

  • Report for expiry date of the material

    All SAP Gurus,
    We have certain Materials which are expirable.
    These Materials are batch managed, and each batch is having different expiry date.
    Is there any standard report available which can give is the days remaining to reach the expiry date (for that material)?
    Regards,

    Hi,
    Try MB5M,
    here
    Field name                                Field value
    Material                                Enter the material code to which the report is desired.
    Plant                                Enter the plant in which the report is to be generated.
    Storage Location                     Enter the storage location in which the report is to be generated. Optional entry. Leave it blank.
    Batch                                 Batch number to be displayed. Optional entry. Leave it blank.
    Remaining shelf life           Minimum amount of time for which the material must keep upon goods receipt for the goods receipt to be accepted by the system. Optional entry.     
    Remaining shelf life warehouse     Indicates that the remaining shelf life of a batch in                                                         
    Total remaining shelf life         Indicates that the system displays the total remaining shelf life of a batch.                                                                               
    The total remaining shelf life is calculated from the shelf life    
    Expiration date minus the current date.  Select this radio button.                              
         Indicates that the system also displays materials with zero stock. Optional, leave it blank.
         Display of remaining shelf life in days. Select this radio button to display the remaining shelf in days in the report.
    Regards,
    Pardeep Malik

  • BATCH SELECTION DURING ISSUE

    Hi...i have to issue raw material which is in batch in my storage location with charachterstics of expiration date.
    NoW i have to issue against prodcutionorder. How and where i can see the all batch depends on date at the time of issue.
    How can i make use of BATCH DETERMINATION.
    Reply get rewarded
    Thnaks

    I hope you have batch with production date and expairy date maintained in batch classification view so that system will determin which batch has to be taken first,
    full Procedure is as below\
    customising settings
    Implementation Guide for R/3 Customizing (IMG) Logistics u2013 General Batch Management Batch Determination and Batch Check -->Batch Search Procedure Allocation and Check ActivationAllocate IM Search Procedure/Activate Check
    Assign for 261 mov type - ME0001.
    Master data settingsa as below
    Create a class in transaction CL01 and assign the SAP std  characteristics  for expiry date - LOBM_VFDAT
    Create Raw material
    Maintain Classification view and batch management tick
    Create Sort Rule in CU70 and enter the characteristic what you entered in above class and select ascending or descending depending on yr requirement
    Crate batch determination rule in MBC1 depending in which transaction you want to determine the batch based on shelf expiry date
    Now the settings for MBC1 is given below
    Stg type u2013 ME01
    select/ plant/material/mov type option
    Mov type 261/262
    Plant u2013
    Give the selection criteria class and sort sequence created above as below
    selection with selection defined
    Sort sequence as defined above.
    no of split = say 999
    Changes aloowed
    Overdelivery allowed
    qty proposal = 1
    Display UOM = B
    Pl check yoiur settings and do the necssary adjustments
    then when you issue the material yoiu can see a batch determination icon by whcih system will give you the screen where in the batch data with sort rule -expairty date) will be present where you can change the batch qty and click on copy option. so that system wiull select the batch requiured

  • Promotional sales for sooner expiry date products

    Dear SAP gurus,
    I have following situation:
    My customer sells batch manged products and batches are based on expiry date. Batch is detemined at delivery creation with FEFO rule (first expiry first out).
    Now they have some older date batches that they want to give at a lower price. Since batch is not determined at sales order creation my solution would be to create new "promotional" code for that material, then with mvt type 309 transfer old batch quantity to new material, set new sales price for new material and sell it until this stock is sold out. Then this promotinal code could be used in future also for similar situations for that material.
    Is this the best solution? Any thoughts?
    Thanks,
    Suad.

    Dear Saud,
    The better option would be to give a discount on specfic batches (condition type KA00).Since batches are not determined at order level ,the condition KA00 would be redetermine at the time billing.
    Also check the pricing setting of copy control from delivery to bill.
    Regards
    Sanjay

  • Auto Select Batch No by Expiry Date

    Hi Expert,
    Is there any place we can configure so that when user clicks Auto Select button at Batch Number Selection screen, the Batch No with earlier Expiration Date can be selected?
    By default, Auto Select button will choose Batch No by Admission Date.
    Thanks,
    Regards,
    Lay Chin
    Edited by: Paul Finneran on Oct 15, 2009 12:37 PM

    Ok, I guess only program customization can help me.

  • Sales report with Batch number & expiry dates

    Hello friends,
    would any one please help me to frame this query to achieve the above ..
    my query is as bellow, but I want to add the batch number & expiry dates along with the other information.....
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    So which table to join to get the batch & expiry...
    Rgds
    Suman

    HI
    Batch table is OIBT, IBT1,OBTN
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[ExpDate] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry inner join
    IBT1 T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry inner join
    oitm T3 on T1.Itemcode=T3.Itemcode inner join OIBT T4 on T1.Itemcode=T4.Itemcode  WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    group by T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T4.[ExpDate]
    Thanks
    Mohammad Imran

  • Reg blocking of batch on expiry date

    Dear all,
    What are the selections to be done in QA07 for blocking a batch on expiry date which is 3 days from today, we also have batch status active.
    Thanks in advance
    Madhav

    Hi
    In QA07 select
    1. Block batch at lot creation.
    2.Initial Run  in days : 3 or maore
    3.click on the check box of Block batch
    Also Mainatin shelf life data in MM and keep expiry date 3 days later.
    schedule the batch run in the background.
    I hope this will add some values
    Regards
    Sujit

  • Querry Based Approval-AR Invocice-Batch Expiry Date

    Hi All,
    I want to set a query based approval which will check the expiry date of the batch no of the item being sold in AR Incoice. If the diffrence between the expiry date and today's date is less than or equal to 60, the AR Invoice should go for approval.
    CAn anybody please help me with the querry??
    Edited by: Philip Eller on Jun 9, 2008 11:22 AM
    Edited by: Philip Eller on Jun 26, 2008 10:24 AM*
    Edited by: Rui Pereira on Aug 6, 2008 4:18 PM

    Hi,
    try this query approval:
    IF @transaction_type = 'A' AND @object_type = '13'
    BEGIN
    IF EXISTS (SELECT T0.DocNum FROM Oinv T0 INNER JOIN inv1 T1
    ON T0.docentry = T1.docEntry inner join ibt1 t2 on t1.itemcode = t2.itemode and t2.whscode = t1.whscode inner join oibt t3 on t2.batchnum = t3.batchnum
    WHERE (T3.ExpDate - getdate()) <= 60 and T0.DOCENTRY = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @Error = 1, @error_message = 'expire date less/equal than 60'
    END
    END
    Rgds,

  • Batch shelf life expiry date at Plant level

    Hi All,
                We have a requirement from the client to maintain Batch shelf life at plant level.
    Current process: Batch shelf life expiry date is maintained at the global level.
    Requirement: Shelf life data to be maintained at Global level and plant level both.We want flexibility to maintain shelf life both at Global level and plant level .
    If any one has worked in this scenario then kindly throw some light to resolve this issue.And also let me know if we move ahead to maintain shelf life data at  global n plant level then which all the area it will get effected in other stream reagrding shelf life best before date.
    This is very critical requirement from client prospective as we have legacy system involved like LIMS & COREDB.
    Your valuable input will be highly appreciated.
    Thanks n Regards,
    Vikas Soni.

    Hi Vikas,
    A doubt out of your query,
    How the expiry date is maintained Globally .
    Whenever a GR is done then the expiry date will be tagged to the particulat batch & the expiry date is valid for the batch in the particulat plant. Am I right?
    Thanks & regards
    Mahesh

  • In the packing list, batch number and expiry date is not appearing for a ma

    Dear Friends,
    I have an issue in the packinglist.
    In the packing list, batch number and expiry date is not appearing for a material.
    But in the delivery the batch number and expiry date is appearing.
    Why this has triggered and how to solve this?
    With regards

    Hi Vamsi,
              Please go through the output type Smart form or script programe of the packing list and check with the abaper If is there any Bug.
    Regard's
    Murali.

  • BAPI_GOODSMVT_CREATE - Batch Expiry Date......

    HI Im,
    using this BAPI to post a goods movement from one location to another in the same plant.
    The stock is being posted to a specific Batch.  When I do this the material document gets created okay and the stock moves.
    The problem is that the batch expiry date is not updating.  The stock I'm moving has a later expiry date than the current date.  If I do this manually in MIGO it works fine and updates the batch expiry date with the later date.
    Has anyone else experienced this or know of a work around ?

    Hi
    I am populating the item data like:
    *- Populate item data
      LOOP AT i_items_trans.
        CLEAR ibapigm_item.
    *- Convert the matnr backto 18 char form (External)
        CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'
          EXPORTING
            input            = i_items_trans-matnr
          IMPORTING
            output           = i_items_trans-matnr
          EXCEPTIONS
            number_not_found = 1
            length_error     = 2
            OTHERS           = 3.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        ibapigm_item-material   = i_items_trans-matnr.
        ibapigm_item-plant      = x_user-werks.
        ibapigm_item-stge_loc   = x_user-lgort.
        ibapigm_item-move_type  = '101'.   "Goods Receipt
        ibapigm_item-mvt_ind    = 'B'.     "Goods Movement for PO
        ibapigm_item-po_number  = i_items_trans-ebeln.
        ibapigm_item-po_item    = i_items_trans-ebelp.
        ibapigm_item-gr_rcpt    = sy-uname.
        ibapigm_item-quantity   = i_items_trans-ktmng.
        ibapigm_item-base_uom   = i_items_trans-meins.
        ibapigm_item-entry_qnt  = i_items_trans-ktmng.
        ibapigm_item-entry_uom  = i_items_trans-meins.
        ibapigm_item-batch      = i_items_trans-charg.
        APPEND ibapigm_item.
      ENDLOOP.
    Header data like:
      MOVE: sy-datum TO bapigm_head-pstng_date,
            sy-datum TO bapigm_head-doc_date,
            sy-uname TO bapigm_head-pr_uname,
            v_mblnr  TO bapigm_head-ref_doc_no,
            con_bfwms_bestand TO bapigm_head-ext_wms.
    *- Document Header Text
      IF NOT v_bktxt IS INITIAL.
    *- Preceed "INV=" to the Invoice number entered
        CONCATENATE 'INV='(003) v_bktxt INTO v_bktxt
        SEPARATED BY space.
        bapigm_head-header_txt = v_bktxt.
      ENDIF.
      MOVE gmcode_01 TO bapigm_code-gm_code.
    And calling the BAPI as:
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header  = bapigm_head
          goodsmvt_code    = bapigm_code
        IMPORTING
          goodsmvt_headret = bapigm_headret
        TABLES
          goodsmvt_item    = ibapigm_item
          return           = ibapigm_ret.
    *- Commit on Success
      IF NOT bapigm_headret-mat_doc IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Havent faced any problem so far...
    Did you populate <b>EXPIRYDATE</b> in  structure <b>BAPI2017_GM_ITEM_CREATE</b>? If yes, see in debugging, whatz happening to this value.
    Regards,
    Raj

Maybe you are looking for

  • Application_id column in the Table FND_DOCUMENT_SEQUENCES?

    Hi, Can anyone clarify what does application_id column stands for in the Table FND_DOCUMENT_SEQUENCES? Does application_id stands for GL, AP, FA ...etc? If yes, then is there another table that explains this column in terms of a name rather than numb

  • I'm on Mac OS 10.9.2 and I can't figure out which Acrobat XI Standard to download!

    I can't figure out if I should buy monthly subscription of Acrobat XI Standard (it says Windows only) or actually buy it for $299.  Somewhere else it implies I can only buy the monthly subscription for Mac OS.  Very confusing!  Isn't there a way to t

  • Photo Booth

    Has anyone had a problem with the new Photo booth. The new effects seem to break down and don't work. I was wondering if it was happening to others. I have a MacBook Pro and I can't seem to keep the background to keep it's integrity. One of the reaso

  • HT201272 do i have to pay again for previously purchased tv shows

    do i have to pay again for previously purchased tv shows

  • Attach Certificate to Java Client

    Hi Need to attach a certificate to a java client but facing following error java.lang.SecurityException: Can not find public key for alias: "lahoticlient"      at weblogic.wsee.security.util.CertUtils.getCertificate(CertUtils.java:106)      at weblog