‎2020 Aug 04 10:11 PM
Please suggest function module for Split order, we are splitting production order based on the operation.
‎2020 Aug 04 11:42 PM
Hi Anil
Can you confirm on what logic should the split happen?
Based on my understanding you can split the order in batches and you can also do the same when doing GR. So the system would create different batches for the same material
Read the information provided here
https://answers.sap.com/questions/9674376/creation-of-more-than-one-batch-during-production-.html
1.Use the Exit EXIT_SAPLCOBT_001 under enhancement PPCO0001 where-in based on your requirement you can create multiple batches for your production order. We have used this user-exit at current client to create multiple header batches.
2.You can use CALL FUNCTION 'VB_CREATE_BATCH' to create the batches as per your requirement.
If you are looking for mass creation then use this
https://answers.sap.com/questions/5694000/how-can-mass-creating-production-orders.html
Use the BAPI - BAPI_PRODORD_CREATE or for internal orders BAPI_INTERNALORDER_CREATE
Another useful link here
https://answers.sap.com/questions/10287152/create-multiple-batches-in-production-order-creati.html
Please review and see if that helped?
Regards
Vinita
‎2020 Aug 05 6:10 PM
Hi Vinita, We are splitting the same order and creating child order. Child order has different material. It is happening through CO02. Same I want to create through function module.
‎2020 Aug 06 5:48 AM
Kindly use comments section to respond, Answer sections are only for content contributing towards answer.