Skip to Content
author's profile photo Former Member
Former Member

Batch number allocation in process order.

Hi

I have a sceanrio where batch number allocation in process order should be material specific. This is client requ.

For E.G

Header material A is made of Component B and C.

Component B is internally manufactured and should have external batch number assignment at time of order release. "Create Batch" option in "goods reciept" Tab of process order should be greyed out to avoid error.

Process Order should not be released for any material if batch number is not assigned.

How to do the setting so that Component B always has external batch assignment while Header material A has internal batch assignment.

Please note that Creating two different process order is not an option.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 17, 2012 at 07:35 AM

    Hi

    There are 2 things in batch management.

    For header material A - Create internal batch with batch master, batch number assignment and creation of new batches in configuration along with maintaining batch management tick mark in material master, and other relevant settings in config and master data as per your requirement. Maintain a custom table where you can define the materials which needs to be assigned internal number during order release and create the batch if this material is available in this custom table, and use user exit for order creation for this.

    For component material B - You can mention batch externally because this material you are not going to define in custom table. And order should allow this to add external batch, this you can set in function module with ABAP help.

    You have to customize this requirement with ABAP support and this can be achievable.

    Regards,

    Sharat

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 17, 2012 at 07:32 AM

    Hi,

    Use user exit PPCO007 - User exit when saving a production order. And ask your ABAPer to develop a logic using the order type. So that B material system will check for external batch assignment and A material auto batch generation.

    Regards,

    Alok Tiwari

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 17, 2012 at 07:45 AM

    Dear,

    Use the Exit EXIT_SAPLCOBT_001 under enhancement PPCO0001 where-in based on your requirement you can create batch for your order. You can use CALL FUNCTION 'VB_CREATE_BATCH' to create the batchs as per your requirement.

    For details please refer this link,

    http://scn.sap.com/message/8004872#8004872

    Regards,

    R.Brahmankar

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear,

      Make sure the automatic batch creation setting in Prodn Scheduling profile OPKP has been turned-off so that the batch is created only through the user-exit.

      Also do you have batch status management active?

      Also in the bapi VB_CREATE_BATCH there is a fm called CALL FUNCTION 'TRANSACTION_END, this is issuing a commit work you can put a break-point and check the same.


      Regards,

      R.Brahmankar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.