Transaction COR2 release userexit , Batch number should be blank

Hi,
     My requirement is , when i release process orderf rom COR2 tcode, the batch number should come us blank. I used EXIT_SAPLV01Z_002 from function module VB_NEXT_BATCH_NUMBER and made the batch number as blank. But after that exit, there's a condition in VB_NEXT_BATCH_NUMBER saying if batch number is blank then throw an error. Is there any way, i can get the batch number as blank after releasing the process order.
Thanks,
Vandana

Hi Vandana,
I don't recommed the use of a FM not release by SAP. You could have problems in future SAP versions or when you apply support packages.
Regarding the main request: you can manage the Batch creation by Plant and Production Scheduling Profile.. So you don't need an exit for it. This is setup in CORY:
Please try...
Kidn Regards,
Mariano

Similar Messages

  • Re: Batch Number Rabge

    Dear All,
    I am facing an issue.
    I am using internal number range for batches for process order. The number range nomenclature has need designed as per clients requests.
    Now my issue is that if I release the order the system creates a batch for the order,Now but due to some reasons if the user doesnot save the order at that time,this batch is lost.So when the user tries to release the same order again this time the system creates a new batch instead of the one it is supposed to create.
    BAsically my issue is the batch number range is jumping.
    Please advice.
    Regards,
    Vivek

    Hi Vivek,
    Please check with your ABAP guy and ask him to specify the condition in enhancement SAPLV01Z like when Order is released assign batch number but when it is not saved batch number should not be saved in system and it should be re-used.
    Just to add: Once you click on the Release button, system creates the new batch and even if you don't save next time it assigns the next number in the range. I feel it's the standard fucntionality and you can get rid off this using SAPLV01Z (if you are using numerical number range) and SAPLV02Z (if you are using alphanumeric number range).
    Drop-in if you've solve the issue or please close the thread.
    Thanks,
    Shoyeb
    Edited by: Shoyeb A on Jan 5, 2010 2:09 PM

  • GRN batch number assignment error?

    Dear All,
    We have configured that whenever we do GRN batch number should generate automatically but while doing GRN if i don't save or post the document also it is generating batch number i mean to say without saving a PO GRN one batch number is generated and if i go in to MIGO screen for same PO then new batch number getting assigned.
    so anyone tell me where have set wrong and how to check and correct it?

    Hi,
    If you are coming out of the transaction completely by using F3, then system won't create any batch, but after entering all the details if you are clicking on "Check", then system will create a batch number, this is standard behaviour only.

  • Internal Batch Number for specific Production Order Type

    HI PP Guru
    We need to activate Internal Batch Numbers to a specific Production Order type.
    We need this at order confirmation level. i.e. (CO11/CO12)
    Is it possible? HOW ?
    Please let me know customizing Steps.
    If this is not possible then, Batch number should be internally assgisned at Order release stage. Please let me know customizaing steps for this even.
    Thks.

    hi Siva
    Thk for suggestion
    However, if we do not wish to activate Internal Batch Assigment and want to remain on manual BUT still we want system should not allow duplicate BATCH NUMBER, then, is there any way to achive this.
    This is because, once we manually enter batch in confirmation (CO11), we further break the material in to several part and we need to understand original batch number. For this we just take the original batch number and add further serial number like below
    Orinigal Confirmation Batch Number - 100001
    Batch Split of 10 - 10000101,10000102,..............10000110.
    So, what we want is system should check that same batch number is exist or not in confirmation. Is it possible or how it can be handle.
    thk in adv.
    SK

  • Pass batch number from ECC system to GTS

    Hi Experts,
    I want to pass material batch number(MSEG-CHARG) to GTS system while creating the material document(GR) in ECC system. This batch number should be displayed in item level at custom declaration screen and should be stored at table /SAPSLL/CUSWLM.
    Could you please help me how to do this? actually at ECC side i m not getting the api where i can pass batch number. also at gts how to retrieve the same even if we able to pass the same from ECC
    Many Thanks,
    Prafull.

    Hi,
    i suggest you to have a closer look at the BAdI for Mapping and Enrichment of Data from Material Documents (MM0C) on ERP site and also at BAdI for Mapping External Data to Customs Declaration.
    You will find them by following thes paths in the IMG:
    In your SAP GTS System:
    -SAP Customizing Implementation Guide
    --SAP Global Trade Services
    ---SAP Customs Management
    Business Add-Ins for SAP Customs Management
    Copy External Data to Customs Declarations and Customs Shipments
    BAdI for Mapping External Data to Customs Declaration
    In your SAP ERP (feeder) System:
    -SAP Customizing Implementation Guide
    --Sales and Distribution
    ---Foreign Trade/Customs
    SAP Global Trade Services - Plug-In
    Change and Supplement Document Data for Transfer
    BAdI for Mapping and Enrichment of Data from Material Documents (MM0C)
    To display the (external data) Batch number on the User Interface on the customs declaration document,
    you must implement  BAdI for UI Control When Connecting External Applications to CD/CS
    regards,
    Ralf

  • GR date as batch number

    Hi Experts,
    I have a situation where I should configure the system, so system should automatically create batches at the time of GR and the batch number should be GR date (27102001)
    Please suggest.
    R.S

    I dont know for what reason you use batch managment. We are doing it for quality reasons.
    if we get 2 batches of the same material from our vendor, we usually have slightly different quality data, hence we create as well 2 batches in our system.
    I kow it is possible that each material can have the same batch number. but if you just use the date as batch number, then you can only have one batch per material and day. so you could never manage above mentioned case.
    Maybe it is not a problem with your materials, and you just want 1 batch despite of having serval receipts of the same material on the same day.......but if you have to distiguish, then you need more than just the date, maybe an additional character like A or B or -001 and -002

  • Automatic Batch Number to Be Picked Up

    Hi Gurus,
        Need a urgent help from u guys. While doing Finished Goods Posting (MIGO),I want to automatically pick up the Batch Number from the Mother Coil Number. The batch number should be the same as the one as entered (Batch Classification) during RM Posting.
         Could u please help me on the configuring the same.
    Regrds,
    Binayak

    Hi
    You need the following settings
    a) condition tables (you can use available in SAP)
    b) Acess sequeences (you can use available in SAP)
    c) Strategy types (you can use available in SAP) Here assign your class for batches and sort sequence.
    d) Batch search procedure (you can use available in SAP)
    Path: Logistic General > Batch management>Batch determination and batch check --> Batch search procedure Definition --> Define Inventory Management Search Procedure
    e) In tcode OMCG, assign your batch search procedure to your relevant movement type and if required then assign to a movement type and special stock indicatior too.
    f) Maintain condition records. tcode MBC1
    This will resolve your problem. If useful then please dont forget to reward points.

  • Batch Number problem

    Hi,
    When i check the Batch Transaction report, I find Batch Number and qty and Whse. But when i try to issue, Iam getting quantity fall into negative inventory. The stock is not showing in the whse althought in the Batch report, it is showing as qty available.
    We have not allocated negative inventory.
    The item is managed set to "Relese"  and on every transaction. Same in General settings.
    This is happening for 2 items. and for 8 batches.
    What could be the problem?
    Iam using SAP 8.81 PL 06
    Rgds
    Kalli

    Hi,
    Please check Note No. : [1250867|https://b1-support.wdf.sap.corp/sap/support/notes/1250867] and run the detect query attached with the Note.
    If the reported item appears in the result, then you need to contact the Support Centre by creating a support ticket on SMP to get your issue investigated.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Storage Location & Batch Number

    Hi Experts
    I am doing Milestone confirmation of the last operation, at that time the Materials are also Issued to the Production Order, the storage location and Batch number should appear in the goods movement screen so that Milestone confirmation is successful.
    Can you let me know where I should maintain inorder that the storage location and batch numbers are derived and the milestone confirmation is done without any errors.
    Please revert on the above.
    Thanks....

    Dear Jade,
    The storage location and Batch of the component are populated from production order. To default the location of a component in the order creation, you need to maintain it either in BOM>Item details>Status/Lng text Tab or in material master MRP-2 view of the component.
    For Batch to appear automatically on goods movement screen of confirmation, you need to carry out the batch determination on Change order> component overview screen. You can carry out batch determination on goods movement screen also (As per your choice).
    I hope this will solve your problem.
    Regards,
    Uday

  • Map BATCH number corresponding to ORDER number and Material number .

    hi all,
    i want to map the BATCH number corresponding to Material Number .
    i searched tables MCHA which has two fields Material number and Batch number but it doenot have Order number.
    so how can i get Batch number as in table AFPO/AFKO i have all these three fields batch/material/order numbers.
    but the batch number column is blank for all .
    and in case of table MCHA , these is assigned batch number to every Material number .
    also i want to ask , either the Material number in both tables (MCHA AND AFPO) is same or different as i didnot found any relation to map these three field by other fields too.
    so please suggest me the Possible way to resolve this .....
    sunny

    hi dsk,
    thanks for your earliar reply,
    actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
    how can i map batch number with corresponding to PO num ber, '
    in the report i used structure vbplp with field charg"(batch num).
    also i want to know from which table i can get customer part number and Po number .
    how can i add batch num ,..
    from which table or with which field i can compare itr to get .
    sunny

  • Automation of batch number copy from RESB to AFPO using COR2/COR5

    Dear exports,
    As subject, I need to copy batch number from RESB-CHARG to AFPO-CHARG AUTOMATICALLY.
    I made enhancement in user exit ZXVBZU02. It works manually when click "create button" under tab "Goods recpt" in transaction COR2 after batch number determination (assign value to RESB-CHARG first).
    For automation, I'd like to do copy by either RELEASE (in COR2 or COR5) or SAVE (in COR2) this process order instead of clicking "create button".
    I found an BAdI WORKORDER_UPDATE, and put break-points in method AT_SAVE, AT_RELEASE, IN_UPDATE. But somehow it's NOT stopped.
    I think I may pick the wrong BADI, or no such solution.
    Your help is most welcome.
    Thanks alot.
    Steven
    Edited by: Steven Zhang on Oct 29, 2008 10:48 AM

    YES, badi is active. Also the break-point was placed in before_update (actually, I prefer at_release). It's bypass all those methods.
    Now I am suspecting whether this is the right BADI. From naming, it looks it is. But as we knew there is a tool (useful report), it can report all enhancements (including user exit and BADI) according to transaction. The badi WORKORDER_UPDATE is not listed in both COR2 and COR5.
    How? pls throw a light on this.:(
    By the way, I'm using ECC6.
    rgds,
    Steven

  • Batch Number Transaction Report

    Dear Experts,
    Is it possible to modify the form settings of Batches table in Batch Number Transaction Report as I need to add in some user-defined fields into it?
    Below is the layout of my Batches table in the report:
    Batches
    #   Item No   Item Description   Batch   WhsCode   Qty   Status   Manufacturing Date
    and I would like to add in Width, Length & Height columns in the table.
    I can't preset the value of length, width & height of the item in Item Master Data because different batches of same item will have different length, width & height. So I created these fields (Width, Length, Height) in Goods Issue & Goods Receipt and assigned different values there. After that, I need to do some references at Batch Number Transaction Report to find out which batches got the specified measurement of that item.
    Thanks in advance.

    Hi Sachin. I think you have misunderstood what I mentioned before.
    I want the report to show like this
    Item No.   Item Description              Batch   WhsCode   Qty   Direction   Status        T     W        L
    A893S     Pine 14 x 125 x 1030mm          A123    WH01       100   In        Released   14   125    1030
    A893S     Pine 14 x 125 x 1030mm          A123    WH01       -10  Out       Released     14   125    1030
    A126B     Ash 14 x 125 x 1090mm          J123     WH01        50   In         Released   14   125    1090
    In fact, below is the result table that I get
    Item No.   Item Description                Batch   WhsCode   Qty   Direction   Status        T     W        L
    A893S     Pine 14 x 125 x 1030mm            A123    WH01       100   In           Released   14   125    1030
    A126B     Ash 14 x 125 x 1090mm            J123     WH01        50   In            Released   14   125    1090
    using this query
    SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], T0.[WhsCode], T0.[Quantity],
    case when T0.[Direction]=0 then 'In' when T0.[Direction]=1 then 'Out' end Direction,
    Case when T1.[Status]=0 then 'Released' end Status, T2.[U_Height], T2.[U_Width], T2.[U_Length]
    FROM IBT1 T0 
    INNER JOIN OIBT T1 ON T0.BatchNum = T1.Batchnum and T0.Itemcode=T1.ItemCode
    INNER JOIN IGN1 T2 ON T1.ItemCode = T2.ItemCode and T0.Quantity = T2.Quantity
    WHERE T1.[ItemCode] =[%0]
    Thanks,
    Xavier

  • Number of transactions in the current batch input session ...

    Hi,
    How to control a Number of transactions in the current batch input session ...
    for LSMW.
    Pls help. I'm new to LSMW
    Thanks
    Ram

    > Main idea is to get an idea about the DB
    >
    > currently in the PRD DB auditing is disabled.
    > Im thinking of enabling the DB auditing.
    > Therefore i'm looking to get rough idea about, number of transactions that will occur in the DB
    >
    > audit_sys_operations                 boolean     FALSE
    > audit_trail                                    string      NONE
    >
    > Will enabling auditing, make additional overhead to the database.!
    I see.
    Just my two cents on this:
    - you enable auditing, when there is a requirement for it (business/legal wise), so it isn't really about the technical overhead
    - and of course there is overhead. It's just the question whether or not your users will see a increased response time because of that.
    > how can i check these stats in DB level. (table/view)
    Check V$SYSSTAT and V$SYSMETRIC on Oracle level.
    These should contain the information you like to see.
    (btw: in my first reply I referred to how easy it is to create these statistic information on DB kernel level )
    regards,
    Lars

  • Listing Batch Number with transaction detail

    We use the Sales Order Usage Indicator to designate a Site location for order materials we supply to customers' building sites and I've written a report that lists component material details used in the Production orders created per sales order for each of those sites. What the user department would like is for the batch managed items detail to include the batch number associated with the material.
    However, I'm finding it difficult to find which file this batch number data is actually in. I've found some batch numbers in RESB (which I use to get the component material number and configured data) but out of the millions of records in there only about 66 have the batch number included in the record. The other files I've checked that include the batch number field do not have any data in it. It is at component level that the batch field should have a batch number included.
    Can anyone please advise as to where I can find the relevant data to complete my report.
    FYI, I start with getting Sales Orders with selected Usage Ind in from VBAK, then pick up relevant sales order item data from VBAP with joins to MARA and MAKT for basic material data.
    I get the Production order number from AUFK using the Sales order number and then I chain to RESB for the component material data using the Productioon order number. I pick up the batch field from RESB at this time but so far it has always been empty.
    Thanks very much
    Jim Jackson

    Thanks, Jurgen
    I was hoping to get away without using the MSEG file because of the size implications and resultant search time - as per BSEG on the financial side of things. 
    Anyway thanks for the confirmation of what I need. Much appreciated.
    Best regards
    Jim

  • Batch number coming automatically at the time of Process order release

    Hi All,
    I want the system generated batch number for header material to come automatically at the time of process order release.
    At present ,the batch number is entered manualy dering process order creation.
    Can anyone pls guide abt the settings required for the same

    Dear,
    Define the  production scheduling profile CORY then
    Auto Batch Creation = 2 On release.
    Then assign this to your FG or SFG materials in work scheduling view in material msater MM02. Then create new order and check.
    Now for automatic generation i have to set internal number asignment for batches.
    Batch will create for movement type say 101 SPROLogistics - GeneralBatch mangment--Creation of New Batches --Define Batch Creation for Goods Movements. so it will have same logic in MM for 101 GR against PO will be internal number range but no effect in SD.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Mar 12, 2010 12:40 PM

Maybe you are looking for

  • Writing two linked objects (obj1 is linked to obj2)?

    writing two linked objects (obj1 is linked to obj2) Approach A: ObjectOutputStream o = new ... o.writeObject(obj1); o.writeObject(obj2); o.close(); Approach B: ObjectOutputStream o = new ... o.writeObject(obj1); o.close(); o = new ... o.writeObject(o

  • Using backspace in text box deletes everything except current word.

    When I press the backspace button twice it deletes everything in the box except the current word I am on.

  • CQ5 PDF Generation

    PDF generation in CQ5 is very limited, doesn't renders a lot of items, components and contents of the originals htmls pages, neither styles. I try to customized the /libs/wcm/core/content/pdf/page2fo.xsl file in order to try to improve it, but is alm

  • IPhoto 08 Quits Unexpectedly during Imports

    After (erase and install) upgrading to Leopard and iLife 08, I tried to import my photos from either my photos library (used by Lightroom) or DVDs, I get maybe a couple hundred photos and iPhoto crashes, saying "iPhoto quit unexpectedly." I have only

  • Ldap - how to check how many users are connected?

    Hi Guys, Please help me. We have iPlanet installed using LDAP. I want to check in ldap console that how many users are connected currently and monitor that. please tell me how can i do it thanks