Auto-block expired batch

Hi SAP Masters,
Is there any way to block those expired batch automatically from the MM point of view? Any standard t-code can do so or any ABAP enhancement is required?
Thank you in advance.
Regards,
Edwin

Jeyakanthan A wrote:>
> >
Edwin Fu Kee Fung wrote:
> > Hi SAP Masters,
> >
> > Is there any way to block those expired batch automatically from the MM point of view? Any standard t-code can do so or any ABAP enhancement is required?
> >
> > Thank you in advance.
> >
> > Regards,
> > Edwin
>
> If material is batch activated with shelf life after expirty,system will automatically put stock in quality for further descision.
really?
I dont think so.
for this you need an inspection type for recurring inspection.
QA07 then controls what will happen to the expired batch.
and QA07 can of course be scheduled to run every night in batch.

Similar Messages

  • How to block an expired batch from GI?

    Hi Gurus,
    My system is issuing a warning message when GI an expired batch. But I need to get an error message, how to set up?
    "Depending on the system setting, the system issues either a warning or an error message."
    Thanks a lot.
    Jason

    Thanks a lot.
    Points awarded

  • How to do STO of expired batch stock

    Hi,
    How can I do STO for expired batch stock? i need to do it for scrapping which is handled in other plant.
    Thanks in advance.
    Ninad

    Hi
    I suppose the expired batch is blocked stock & for doing the STO, we need to bring the stock to unrestricted. What you can do is, create one separate new storage location in which there wont be any other stock available. Move the expired blocked stock to unrestricted stock in this storage location. Process the STO cycle with this storage location. In recieving location, stock can be again recieved in quality stock & can be treated for further process i.e scrapping.
    Thanks
    Sachin

  • Expired Batch Number Selection

    Dear All,
    How to block selection of batch number already expired during delivery creation?
    Currently i'm using 2007B version.
    Thanks and Regards

    Hi,
    Thanks for your prompt reply.
    What i want is during delivery creation we can block user to select expired batch number.  Because probably user forgot to update batch detail (to locked expired batch) so that the other can select those expired batch during delivery creation.
    Thanks

  • Preventing expired batch from being sold

    Currently in one of our client's setup, I can select expired batch from the list of items. Is there a way to prevent expired items from being selected when creating sales order (VA01) or, if the user can select the expired item, at least display an error or warning message?

    Hi,
    Do try making the batch in resticted use in change batch basic data1 tab,activate radio button of batch status for Batch restr.
    It makes
    Batch in Restricted-Use Stock
    Specifies that the batch is included in restricted-use stock.
    Use
    If, though a batch has the status "restricted", you want to use a goods movement to post a quantity to unrestricted-use stock, the quantity is posted to restricted-use stock and not to unrestricted-use stock.
    If the status of a batch is set to restricted, the total unrestricted-use stock is transferred to restricted-use stock by means of a transfer posting. A material document is created.
    You cannot change the status of a batch (unrestricted/restricted) in a goods movement, only with the following functions:
    by maintaining the batch master record manually
    using the control function provided in the QM system
    Configurations for Restricted-Use Stock
    For planning purposes, restricted-use stock is treated like blocked stock, that is, it is either available or not available, depending on your system configuration.
    Withdrawals from restricted-use stock are either possible or not possible, depending on your system configuration.
    The status of a batch can be considered in batch determination, that is, you can search for unrestricted or for restricted batches.
    _(This has been adopted from SAP documentation.)
    Change batch T.code-*MSC2n*Regards,
    Reddyy

  • Any Functionality to automatically put expired batches into quarantine?

    Hi guys and girls,
    Do you know of an SAP functionality that will automatically put expired batches into quarantine status.
    From a replenishment point of view our systems think that batches are available as long as they have status released, so this feature would be extremely helpful in decreasing supply risk.
    Thanks,
    Jannik

    SAP has given function called dead line monitoring to help on this. Tx is QA05 or QA07.
    Search in this forum you will get lot of info on this.
    [Shelf Life Expired Material will automatically be transferred to block stk |Re: Shelf Life Expired Material will automatically be transferred to block stk]
    Revert back if you have any specific issue.

  • ATP Settings and Expired Batches

    We are using SAP-WM for its warehouse activities and batch management activated for few materials. We have situation where some batch managed materials are expired but the delivery IS created for these expired batch materials. Though the batches are expired the material is in unrestricted stock.
    Since the batch is expired, ideally the ATP should not see this as an available stock and delivery should not be created. Can prevent this type of situation through some ATP (or other SD) configuration?
    Thanks
    Tejas

    This you would have to manage by moving the expired batch to 'restricted' (when batch status management is active) or 'blocked' (when batch management status is inactive) status. Typically, QA07 is a standard transaction that is set as a batch job to move batches to restricted/blocked status upon expiry.
    Once you are able to manage to move the status, you can tweak the delivery ATP to exclude 'restricted' or 'blocked' (typically, these are not set as part of standard in which case no further configuration is needed).

  • Auto creation of Batch master data when external batch no entered in PR

    Dear All,
    At persent we can auto create batches at production order creation level, Goods receipt level.
    In same way how we can achive auto creation of Batch master data at Purchase Requisition level.
    Regards,
    Manoj

    There is no auto-creation of batches that are entered in ME51N. SAP issues message ME178 telling you that the batch entered does not exist.
    You have to maintain the batch in MSC1N first, then you can enter it in the PR.

  • Stored Procedure for Batch Number Format and Block Duplicate Batch Number

    Hi Experts !
    I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
    Example :
    My Batch number format Like  BATCH00001 - It should be first five digit is text format and next five is Numeric.
    IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .

    Dear Nagarajan K.
                         Thanks for your replay ..
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    --set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    set @count = (select count(*) from oibt quantity > 0 and where  batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item 
    select @error, @error_message
    END
    END
                  I used above Stored Procedure. here we can use one batch number for different item but  i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
             After that I want format for Batch, we should follow unique Batch number for all items.

  • Warning message is required while selecting expired batch in WM

    While picking expired batch in LT01, system is not giving any warning or error message...
    Batch Management is active...LOBM-VFDAT is part of material classification
    SELD is active on Warehouse and Storage Type
    Stock Removal Strategy is H
    I have check all relevant configuration suggested on forum, however still im unable to figure it out...
    Tell me if warning or error messege is possible to trigger here or not and if possible then how?
    Dear Expert where are you all????
    Full points will be awarded...
    Edited by: Sana Khurshedi on Jul 21, 2010 12:54 PM

    Hello Jurgen,
    It was my dream talking to you, your replies always been very helpful for all of us...
    As such Im using batch search procedure with selection criteria and sort rule, LOBM-VFDAT is define is my batch class.
    Infact one has said warning and error message can triggered in WM but he dont exactly remember the procedure, system is picking material quantity from expired batch first while issuance from LT01,however not giving any warning for choosing expired batch.
    This is my client requirement...
    If any one can help in this regard...

  • 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

  • Sessions from apex are blocking by batch job

    Hi All,
    In my 10.2.0.3 linux with apex 3.1.1
    We have a batch job using a package,that is doing DML operation in tables depends upon some condition.And this job will run daily 5 hours.
    The sessions from apex that is also using some procedures in the same package.Some days the sessions from apex are blocking by batch job.While blocking wait event from apex sessions are 'library cache pin'.Once the batch job completes then automatically removes the block.
    What may be the reason?
    Thanks in Advance,
    Sunil

    The query against v$lock is not relevant if the blocked sessions are waiting on "library cache pin" - so you seem to have two separate problems.
    If you have a session waiting on another session's transaction slot in mode 4 there are several possible causes - often related to indexes, but there are a couple of "internal" problems as well. If you see this locking issue again some of the simplest things to check for would be session 1 inserting (without commit) some rows in a table with a unique key, and session 2 then trying to insert a duplicate. Session 2 has to wait for session 1 to commit or rollback before deciding whether to return a "duplicate key" error, or to continue processing.
    The "library cache pin" waits suggest that the package had become invalid while the batch job is running it, and one of the Apex jobs is trying to recompile it. But if the batch job is currently running (hence pinning) the "executable", then the Apex job can't get the necessary exlusive pin until the batch job ends and releases its pin.
    Read the notes in the script $ORACLE_HOME/rdbms/admin/catblock.sql about creating views that let you see more of the information about library cache (KGL) locks and pins.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Blocking a Batch Or Material for postings

    Dear Experts,
    Can we block a batch Or a material for postings? We don't have QM in our system.In our warehouse we have a material with a specific batch that need to be blocked.
    I appreciate your help in adavance.
    Thanks

    Hello
    could u please check the above details available for MSC2N tcode. You can check this and accordingly you can set the 'Restricted & Unrestricted' buttons for transaction.
    Program Name      SAPLCHRG       
    Screen Number     2100                                                                               
    Program Name      SAPLCHRG       
    Status            BATCH                                                                               
    Table Name        DFBATCH        
    Field Name        FZUST          
    Data Element      FZUST          
    DE Supplement     0                                                                               
    Screen Field      DFBATCH-FZUST  
    Program Name      SAPLCHRG       
    Screen Number     1000           
    Amol

  • SSH failures - auto-block by ip?

    I know there are several ways to auto-block IPs of failed SSH dictionary attckers on Linux, are there any such scripts or apps for Xserve?
    I've looked at several of the Linux scripts, and most of them are specific to the distribution they are written for. I'm not a programmer, not even a shell scripter, so building custom stuff is a bit beyond me.
    Any help would be greatly appreciated, since my server is going live on Monday (in a datacenter which has caused me script-kiddie trouble in the past, but it's my only option currently) and I want to be as protected as possible.
    Turning off SSH is really not an option, since I'm going to be doing all server administration from my home, and I'll have minimal site access.
    Thanks,
    -Gregg

    Another thought I had was simply remapping SSH to
    port 9922 and removing it from port 22 - effectively
    "hiding" it from the dictionary attacks and script
    kiddies.
    Which doesn't protect you from weak passports. I'd disable all but pubkey auth method in sshd_config.
    Changing the default ssh port in tiger is quite tricky beacause ssh is launched by launchd. Launchd is listening for connections on the port defined by the pair i) SockServiceName in sshd.plist and ii) the corresponding port value for ssh in /etc/services. These values have to be changed to your port of choice and I suggest to maintain the ascending sorted list and place the changed lines at the end.
    -Ralph

  • Add-on 9000034 failed with exception; in blocking expire date batch in GR

    Hi all ,
    I try to set mandotory in expire date field in batch setup of good receipt. My code is like this
    If (pVal.FormTypeEx = "41") Then
                oForm = SBO_Application.Forms.Item(FormUID)
                If (pVal.Before_Action = True) Then
                                Else
                    If pVal.ItemUID = "3" Then
                        mat = oForm.Items.Item("3").Specific
                        currow = pVal.Row
                        currCol = pVal.ColUID
                        If (pVal.ColUID = "10" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN And pVal.CharPressed = 9) Or (pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                            Try
                                Dim expdate As SAPbouiCOM.EditText
                                expdate = mat.Columns.Item(10).Cells.Item(currow).Specific
                                tgl = expdate.Value
                                Try
                                    If expdate = "" Then
                                        SBO_Application.MessageBox("Expired Date empty is not allowed")
                                    End If
                                    Exit Sub
                                Catch ex As Exception
                                    Debug.Print(ex.Message)
                                    Debug.Print(ex.ToString)
                                End Try
                            Catch ex As Exception
                                Debug.Print(ex.Message)
                                Debug.Print(ex.ToString)
                            End Try
                        End If
                    End If
                End If
            Else
                If pVal.ItemUID = "41" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE Then
                    Exit Sub
                End If
            End If
    When i try to close the batch setup and return to Good receipt form there is an error message
    Add-on 9000034 failed with exception; Event Type : 17
    Does any one know what the error message means ?
    Does I miss something ?
    Thanks in advance
    Regards
    Jia Shun

    Hello,
    for sorting batch codes by GR time sort from high to low after finding the codes from the date(s) you want (since the batch codes are created in numeric order the lower number will be the older batch codes)
    perhaps I did not understand...

Maybe you are looking for