cancel
Showing results for 
Search instead for 
Did you mean: 

Auto assignment of batches after delivery creation

Former Member
0 Kudos

We have BSS working as standard on delivery create. One of our businesses has a delivery ATP check which allows them to create deliveries when there is no stock (as long as there is a process order on system).

When the batches are goods receipted from production, they need to go into VL02n and manually re-run the auto batch determination using the Batch determination button within the batch split screen.

They also have to continuously monitor deliveries to be able to do this.

Is there a standard program that will do this or even a BADI etc. that we could call within a custom program? Has anyone else tried this?

I'm looking at VB_BATCH_DETERMINATION / BAPI_OUTB_DELIVERY_CHANGE

Any suggestions / comments?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

marianoc
Active Contributor
0 Kudos

Hello,

Try with FM:  VB_BATCH_DETERMINATION. Note that this FM is not released by SAP, so it could be a problem in a future SAP Enhancement or Release.

Check this thread:

Kind Regards,

Mariano

Former Member
0 Kudos

Hi Mariano,

We have a similar requirement.  Can you please tell me if the FM: VB_BATCH_DETERMINATION runs at line item, as opposed to delivery level?

For example, we will have multi-line deliveries and some lines will have batches assigned from initial creation, others will not have batches.

Is this FM capable of running batch determination for lines without batches only, and skip lines that have batches, or is this something that we must build into a custom program?

Regards,

Alain

marianoc
Active Contributor
0 Kudos

Hi Alain,

You can run FM: VB_BATCH_DETERMINATION at item level.

Note that you will be filling different tables in order to cal the function, and the delivery and item are entered here:

I_KOMKH-VBELN = LIKP-VBELN    " delivery

I_KOMKH-POSNR = LIPS-POSNR  " item

So you will have to create a custom program that will fill the tables needed for FM: VB_BATCH_DETERMINATION and then it will call the function.

Kind regards,

Mariano