Skip to Content
0
Former Member
Dec 04, 2007 at 08:21 AM

Creating Batch Through BAPI_BATCH_CREATE

1538 Views

Dear Friends,

i wrote a program for Batch Creation using ( BAPI_BATCH_CREATE ).

Now i am facing a problem.

Example.

Material = 10004

Batch = Z0001

Plant = 1001, 2001, 3001 ( Three Plants ).

I would like to create batch z0001 for all the three plant 1001, 1002 and 1003.

First i create the batch 10004, Z0001, 1001 using BAPI and after that use

Commit BAPI to save the racord in database.

But when i go for second second Plant like 10004, Z0001, 2001 it give me following

message.

Batch Z0001 of material 10004 is already locked by <username>.

<username> means my id.

some times its comming some time its not comming.

if i run it in dubug mode this message never come across.

really i dont know how to deal with this problem.

any help higly appricated.

regards,

Malik