03-30-2009 1:02 PM
Hi all,
I have developed a program to upload material master data using BAPI. Here the BAPI is not updatin few fields, so that i immediately running a BDC program to update other fields also. everything is going fine till now.
Now i got a requirement to create the same material in some other plant also. The program is working fine for first plant , for the remaining plants the error is coming like structure is locked. if i keep wait step working fine but taking long time to execute the programe.
Any one can suggest any idea to resolve this locking issue.
Thanks in advance.
Prakash.
03-30-2009 1:10 PM
You can call Commit work and wait. If not Dequeue the matnr and process again.
03-30-2009 3:24 PM
Hi phanindra,
I am already using that process. when i do dequeue sy-subrc is showing zero but the fields are not updating i.e. not saving.
Thanks and regards,
Prakash.
03-30-2009 1:16 PM
Hi,
Then try this .... first finish of creating all the materials using BAPI. Now have the details of those materials which you wish to extend to some other plants.
user bapi_transaction_commit and aslo wait and here give some value ( eg 2 or 3 ... depends. )
After all these records, got processed, now call the bdc for those records.
If it is not working then we will think for another way.........
regards,
Venkatesh
03-30-2009 3:22 PM
hi venkatesh,
here we have one more problem to do as you said.Here the data is coming from flat file. Flat file contains one single record with 4 plants. So we have to split them and creat new and extended. The flat file may contains change material data too. So every time it has to check condition and create.
Thanks and regards,
Prakash