Application Development and Automation 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: 
Read only

Function module to lock a batch

Former Member
0 Likes
782

Hi ,

I am working on a custom progarm to simulate batch redetermination, SAP standard is using VB_BATCH_DETERMINATION to assign a batch, I am trying to use the same for my progam and it works fine if I sen in a consolidated quantity but it fails if I send line items, what I observed is that standard is able to lock the batch, is there a FM or a way I can achieve this for my custom program.

Thank you .

2 REPLIES 2
Read only

Former Member
0 Likes
485

In addition to the VB_BATCH_DETERMINATION function module, the standard program VA03 -> deliver is using the following function modules : LE_ATP_INT_MAP_DEL_TO_ATP

LE_ATP_YMDVA_YATPCS_GENERATE. I am not also able to figure out the purpose of these and how I can implement these in my custom program. Any insight on this will be of great help.

Thank you

Read only

Former Member
0 Likes
485

Ok, here is what I figured, by using the same function module VB_BATCH_DETERMINE in a loop through the sales order line items and by passing a correct ATP structure and a few flags set right , the FM can propose and lock batches.