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

Similar Messages

  • Batch number determination from process order

    Dear Gurus,
    I need when I'm receiving on a process order, the batch number is copied from the batch of the process order.
    Regards,
    MaX

    Yes, it is possible depending on the setting of your order type (IMG -> Production Planning for Process Industries -> Process order -> Master data -> Order -> Define Order Type-Dependent Parameters)
    If here, in the combination plant - order type, there is the setting in Process data documentation area on "Batch record required", then batch can not be changed in process order after the release.
    If the setting is in one of the other two options, then you can change the batch after release.
    Bye

  • Batch Characteristics copying from material HALB to FERT

    Dear Experts ,
    I have one typical scenario, in whcich we want copy the batch Characteristics semifinsihed  product to finished product.
    ( these Characteristics recorded by quality dept for semifinshed products and updated in batch)
    Please let me know the solutions.
    Regards
    Sandeep

    Hi Sandeep,
    This can be achieved by Use of Batch Derivation Functionality.
    Go to t.code DVSP and activate Batch Derivation.
    Now ,First Create Sander Condition by usng T.code DVS1,
    Assign Material type (Halb) and assign required characteristic for which you want to transfer Batch value to Fert Code.
    Then create recipient condition by T.code DVR1.
    Assign material Type Fert to it and Characteristic which you have assign in T.code DVS1.
    This will work during Production Order or Process Order release.
    And for this you have do Batch Determination for Halb in Order itself
    Regards,
    Dhaval

  • Vendor article number copying from Generic to follow-up Variants in ME21/22

    Dear experts,
    When creating or changing a Purchase Order, we want to be able to change the Vendor Article Number (EINA-IDNLF) on the Generic article (in the sub-screen Item detail > Article Data tab) and have the Variant items adopting the changed Vendor Article Number.
    This works for the PREPACK and subsequent materials but not for the Generic / Variant articles ?
    In both cases the Generic or Prepack top articles have the field VENDOR ARTICLE NUMBER editable and not the subsequent articles (variants or elements of the pre-pack).
    Please let me know if there is a configuration in VARIANTS or in MM-PURCHASING that could allow the replication of updated Vendor Article Number in Purchase Order Creation or Change.
    Sincerely,
    Richard

    Dear experts,
    When creating or changing a Purchase Order, we want to be able to change the Vendor Article Number (EINA-IDNLF) on the Generic article (in the sub-screen Item detail > Article Data tab) and have the Variant items adopting the changed Vendor Article Number.
    This works for the PREPACK and subsequent materials but not for the Generic / Variant articles ?
    In both cases the Generic or Prepack top articles have the field VENDOR ARTICLE NUMBER editable and not the subsequent articles (variants or elements of the pre-pack).
    Please let me know if there is a configuration in VARIANTS or in MM-PURCHASING that could allow the replication of updated Vendor Article Number in Purchase Order Creation or Change.
    Sincerely,
    Richard

  • Number copy from DMS to Authocad

    Hi,
    Is it possible in sap dms, that once the dms document number is generated, it can be automatically transferred or paste on to the autocad drawing.
    Regards,
    Punam

    Hi,
    There is an Integration tool avaliable called SAP PLM ACAD Integration to integrate SAP and AutoCAD.
    This is a product of Cideon Germany who is a partner of SAP.
    This tool provides a lot of features to integrate AutoCAD and SAP in a very effective manner.
    By configuring that integration tool we can able to achieve this Title block Data to SAP DMS.
    if you are already using this tool then let me know so that i can give you further details.
    Regards,
    MRK

  • Creation of Batch number

    Hi Experts,
    I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
    If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
    EXIT_SAPLV01Z_001 (ZXVBZU01)  & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
    If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
    Any body has an idea about this requirement, to ignore the user entered value.
    Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
    Any suggestion or Any alternative way or Any idea Please......?
    Warm Regards,
    Vijay

    Hi,
    I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
    You can restirict by using automatic generation using number ranges
    <<Function module Documentation>>
    Functionality
    You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
    Number assignment is carried out using the central number assignment.
    The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
    Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
    Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
    Example
    You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
    SAP delivers a total of 6 examples for batch number assignment:
    1. Copying the production order number to the batch number
    2. Copying the sales order number to the batch number
    3. Material-type-dependent batch number assignment
    4. Material-number-dependent batch number assignment
    5. Including the date in the batch number
    6. Including the plant number in the batch number
    For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
    For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
    For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
    For a detailed description of the examples, see below.
    Prerequisites
    1. Internal batch number assignment via the customer exit is activated:
    To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
    2. Maintaining the number range object
    Two number range objects are provided for batch number assignment:
    Standard number range for batch number assignment BATCH_CLT
    Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
    Activities
    1. Use the SAP enhancement SAPLV01Z:
    a) In transaction CMOD, create either a new project or use an existing project.
    b) Add the SAP enhancement SAPLV01Z to the project.
    2. Copying the example code:
    a) Choose Component.
    b) Choose Change.
    c) Choose:
    EXIT_SAPLV01Z_001 for examples 1-4
    EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
    d) Choose Edit -> Copy SAP source text.
    The example code is copied to the relevant table in the function module exit.
    e) To copy the example, remove the comment symbol before the include it pertains to.
    3. Activate the project.
    When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
    Examples
    Example 1
    Copying the production order number to the batch number
    When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
    Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
    If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
    The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
    Note:
    In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
    Example 2
    Copying the sales order number to the batch number
    If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
    If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
    Note:
    In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
    Example 3
    Material-type-dependent batch number assignment
    In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
    For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
    Example 4
    Material-number-dependent batch number assignment
    In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
    If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
    Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
    The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
    Examples 5 and 6
    Including the date or plant number in the batch number
    The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
    Parameters
    X_BNCOM
    CUST_NO_INTERNAL
    NR_RANGE_NR
    OBJECT
    SUBOBJECT
    TOYEAR
    MESSAGE_WHEN_AUTO
    MESSAGE_DONE
    Exceptions
    CANCELLED
    Regardas
    Krishna

  • Cancelling Goods Receipt and Using of Batch Number

    Hello,
    i did a wrong goods receipt with the MIGO and canceled after two days the material document with movement typ 102.The Material uses a Batch number.
    Now i want to use the old Batch number to do the right goods receipt, but the System says that the Batch number already exists.
    I thought when i cancel the material document i can use the old Batch number.
    I would be happy about every message.

    SAP does not stop you from re-using an existing batch number. The message that you get is in a SAP standard delivery just a warning, as it is from a business process unusual that the same batch can be received multiple times.
    If it is an error in your case, then somebody in your organization has changed the message attributes. so you should talk to them (see the change log in your DEV system) to know why this was done and  what the solution for your case could be

  • Bug? - Spaces missing when copying from Adobe Reader

    I have found that when attempting to copy text from some documents (in Adobe Reader)on IOS, to paste into a writer program, that all the spaces are missing.
    There is not aproblem with the same document / Adobe reader on my Windows PC.
    There was also not a problem copying from the same document using another reader (ios FileBrowser native reader), then pasting.
    I quick Google found that I was not alone...
    https://groups.google.com/forum/#!msg/plaintext/2Bs49s1K9_o/KTwelaiqEIsJ
    This link lays out the issue, not common to all IOS PDF readers, with a solution: use another reader.
    Is there a solution for this in Adobe Reader, or how can it be reported to Adobe?

    There are no spaces there. That is not how pdf files are constructed. HOWEVER, on PCs and Macs, the applications are smart enough to figure that spaces should be inserted into the text being copied. The iOS app is not smart enough to figure out on certain pdfs that it should insert spaces on copying from those problemsome pdfs. Adobe does have a feature request/bug reporting form where you can report the problem:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Error in changing the number range from the external to the internal no.

    Dear all,
                 Here is the error found when using the T-Code PA30  for hiring an employee. while changing the number range from external to internal using Tcode  PE03, the error found was ' could not find interval for the number range'
    Can anyone help me out?

    Hi,
         Thanks for your reply.
    Please check out what i have done
    The number range intervals displayed using T-code PA04 are
    No        From                    To                           Current No.               Ext.
      1       00000001            00069999                                                  checked
      2       00070000           00079999                 70295                       unchecked
      3       00080000          09000000                                                   checked
    Using T-code PE03, the feature numbkr was changed i.e the  return value has been changed from  3 to 2(internal no. assigned)
    Error found when performing action using T-Code PA30 is -could not find interval for the number range 2.
    Could you please clarify?
    Thanks

  • How to Define Batch Number

    Hi,
    Regarding the batch management,I have a question ..can we design a special batch number when we use auto generate batch number?Do you have any suggestion for it?thanks ..
    for example:
    if the PO use work center A1,it will get a batch number 201110A1+00001
    if the PO use work center A2,it will get a batch number 201110A2+00001

    Please refer following link to get user exit of MIGO:
    [Re: User Exit for MIGO]
    [Re: User Exit for Migo?]
    [User Exit in MIGO or MB1A for reason for movement]
    [User exit at  MIGO transaction]

  • How to load a selective request from PSA to DSO using DTP?

    Hi Gurus,
    The PSA is having 3 requests, how to load the request number 2 from psa to DSO using DTP?
    Thanks
    SDP
    Edited by: SDPSAP on Nov 15, 2011 7:58 PM

    Let us say that requests are 1,2 and 3. 1 being the first one and 3 is the last one. Now you need to load request 2 in DSO from PSA.
    - create a Delta DTP
    - Tick "Only Get Delta Once"
    - Tick "Get One Request Only"
    - Untick "Reterive Until No More New Data"
    - execute the DTP, it will load request 1 to DSO
    - delete this request from DTP
    - execute DTP again, it will load request 2 to DSO; this is what you need.
    If DSO is write optimized, you do not need to untick "Reterive Until no More New Data"; just execute the DTP, it will create 3 requests in DSO, delete first and last and you will get only 2 in DSO.
    I hope it helps.
    Regards,
    Gaurav

  • Batch Number Not copied over from Production order to Confirmation

    Dear Experts,
    In the production order, I specify the batch # for the components.  But when I do the confirmation, the batch number for the components is not getting copied over. 
    Can anyone suggest what has to be done.
    Regards
    Tom

    Dario, I have not saved my confirmation.  But when I execute CO11N and go to "Goods Movement" tab, I expect the Batch to be copied from the production order for the components.  But the batch field is Blank.
    How do we make the batch field to be copied over from the production order.
    Thanks in advance.
    Regards
    Tom

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Copy from VBRP to technical object Serial Number in Sales Order

    Hi SAP colleagues,
    I need some help in the following issue. Hopefully somebody can assist. In a F2 invoice in the field VBRP-CHARG, the serial number of the product is available. In the business of my client, many return orders exist (KR, RE, etc.). The return order is created while referencing to the billing document. At this moment SAP users (transaction VA01) must fill in the serial number manually via Extra -> Technical Objects. Regularly people forget to do this or use an incorrect serial number. This leads to all kind of problems further on in the process.
    The question is: how can this process be automatized? So the serial number which is available in VBRP-CHARG, should be copied automatically into the return order in the technical object area in the field SERNR.
    Who knows how to solve this technically in SAP?
    Best regards,
    Paul

    Hi Karan,
    First of all thanks a lot for your answer. Unfortunately it is more complex... The batch number which is available in VBRP-CHARG should be copied into the Technical Object area in the sales order. Menu path: Extra -> Technical Objects. So this is equipment functionality related to sales orders. So copying using copy control from VBRP to VBAP or VBAK will not solve the problem. Do you have any idee how this can be achieved (tables like SER02, OBJK are relevant)?
    Best regards,
    Paul

  • Copying of Batch number in GI and then to GR - MM

    Dear SAP Gurus,
    I have created a Stock transport order (STO). Against that STO I have created the delivery. In the delivery I enter the Batch Number/Characteristics(MM). When I do the Goods Issue against that delivery the Batch number is not being copied. Against that Goods |ssue, when I do the Goods Receipt I have to enter the batch number/characteristics manually.
    We have a two step Storage Location to Storage Location transfer.  When we do the Goods Issue the stock goes to Goods in Transit and then the GR is done against that GI.
    Please let me know how to copy the batch number/characteristics automatically. Please also mention the name of the user exit if this can be handled through a user exit.
    Thanks and Regards
    Shehryar Zuberi

    Hi Shehryar
    When you post the receipt (via MIGO or MB01) if you change the way you receive (e.g with reference to the outbound delivery) then all of the batch details and characteristics will be copied into the receipt
    The batch is only copied when you receive with reference to the outbound delivery from the STO
    Good luck
    Steve

Maybe you are looking for