‎2009 Apr 15 2:33 PM
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 .
‎2009 Apr 15 3:14 PM
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
‎2009 Apr 22 10:33 PM
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.