Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Batch while creating Production Order

uday_1994
Explorer
0 Kudos

Hi Experts,

Good Day!

We have a requirement to create batch ,Production Order and assign that batch to "Goods Receipt" tab in production Order created.

But BAPI_PRODORD_CREATE bapi doesn't have batch field , hence we aren't able assign the batch while creating Production Order.

Is there any way to assign batch to production order while creating?? or the ultimate option would be changing the production order once it is created.

Thanks in advance!

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
0 Kudos

Hi, you don't need to create batch and create production order in two separate steps.

You can have batch created automatically during production order creation. You can set that in production scheduling profile - SPRO: Production -> Shop Floor Control -> Master Data -> Define Production Scheduling Profile:

Best regards

Dominik Tylczynski

5 REPLIES 5

DominikTylczyn
Active Contributor
0 Kudos

Hi, you don't need to create batch and create production order in two separate steps.

You can have batch created automatically during production order creation. You can set that in production scheduling profile - SPRO: Production -> Shop Floor Control -> Master Data -> Define Production Scheduling Profile:

Best regards

Dominik Tylczynski

uday_1994
Explorer
0 Kudos

Thanks much 3a9e4ce873a94034b33dc62b0ce600ee ! We discussed the solution you suggested with our process team and they are okay with this approach.

Now the batch is created and assigned to Production Order the time of Production Order creation , and in program we are trying to get the batch no assigned to this PO and updating the batch characteristics.

Thanks once again for the quick help 🙂

0 Kudos

Hi uday_1994

I'm glad it works for you and your team. A good way to say "thank you" would be to up vote and accept the answer.

BR

Dominik Tylczynski

Shubham_K
Discoverer
0 Kudos

Hi,
I tried the same approach SPRO: Production -> Shop Floor Control -> Master Data -> Define Production Scheduling Profile:
And also made sure that the Batch management is enabled for the material.
Still the batch number not getting assigned on production order creation.
Am I missing anything? 
Thanks in advance.

Shubham_K_0-1706711459327.pngShubham_K_1-1706711655041.pngShubham_K_2-1706711679199.pngShubham_K_3-1706711726455.pngShubham_K_4-1706711739619.png

 

0 Kudos

Solved!
After maintaining the production scheduling profile in the material master Work Scheduling View.