Skip to Content
author's profile photo Former Member
Former Member

Structure locking

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 12:10 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2009 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.