cancel
Showing results for 
Search instead for 
Did you mean: 

Get Allocated Batch no.s in GRPO using DI API

former_member275826
Participant
0 Kudos

Dear all,

I am working on GRPO form. I am allocating batches in batch form.

I want to get allocated batch no. with quantity before adding the record in system.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pravin,

After setting the values of itemcode,quantity,warehousecode,price & taxcode, write the below three lines of code for assigning batch numbers.

oGrpo.Lines.BatchNumbers.BatchNumber = BatchNumber

oGrpo.Lines.BatchNumbers.Quantity = Quantity

oGrpo.Lines.BatchNumbers.Add()

Regards

Kartheek

former_member275826
Participant
0 Kudos

Thanx Pari and Kartheek for your reply.

Kartheek:

I don't want to assign the batch.

User will manually assign the batch and then after updating batches in Batch form.

I just want to know which batches he has assgigned in batch form at the time of add button.

Pari

Yes i have checked it.

But there is no option of knowing batches assgined by user in batch form.

Plz reply

Former Member
0 Kudos

Hi Pravin,

Check the following link. Hope it is helpful

http://scn.sap.com/thread/3368239

Former Member
0 Kudos

Hi Pravin,

Have you checked the sample provided by SAP working with Batchs and Serial Numbers. ?

Hope that help you .

Regards