Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Structure locking

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

You can call Commit work and wait. If not Dequeue the matnr and process again.

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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