Application Development and Automation 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: 
Read only

BAPI_BUS2001_CREATE , User Locking issue

Former Member
0 Likes
914

Hi,

I have an issue when using this BAPI_BUS2001_CREATE.

When i try to upload multiple projects using this BAPI, then sometimes it uploads and sometimes it returns with an error message u201CProject xxxx is currently locked to user yyyu201D.

It is not always the case, it uploads most of the time, but it throws this locked error sometimes.

As per my understanding, the editing mode of the previous Project ceation using this BAPI will not get reflected immediately in runtime tables and throws an error that it is locked by user.

Can anybody suggest me on how to resolve this issue.

i'm using correct sequence of BAPI for creating the projects ( followed documentation).

1. BAPI_PS_INITIALIZATION

2. BAPI_BUS2001_CREATE

3. BAPI_PS_PRECOMMIT

4. BAPI_TRANSACTION_COMMIT ( wait = 'X' )

5. and BAPI_TRANSACTION_ROLLBACK , if create bapi or pre-commit bapi retuerns error messages.

5 REPLIES 5
Read only

Former Member
0 Likes
782

Hi sriniu,

I am also facing issue please help on this i think you already clear the issue

Regards,

Raghavendra

Read only

0 Likes
782

I used this code to wait for the update to happen.

CLEAR T_ENQ.
CALL FUNCTION 'ENQUE_READ'
EXPORTING
   GCLIENT       = SY-MANDT
   GNAME         = 'PROJ_ENQ'
   GUNAME        = SY-UNAME
  TABLES
    ENQ           = T_ENQ.
IF T_ENQ IS NOT INITIAL.
  WAIT UP TO 5 SECONDS.
ENDIF.

CALL FUNCTION 'ENQUE_READ'
EXPORTING
   GCLIENT       = SY-MANDT
   GNAME         = 'EDIDC'
   GUNAME        = SY-UNAME
  TABLES
    ENQ           = T_ENQ.
IF T_ENQ IS NOT INITIAL.
  WAIT UP TO 5 SECONDS.
ENDIF.

Read only

0 Likes
782

Hi Srinivasu,

Thank you reply

Now i am getting error like"Individual check for creating the object Project Definition Z-DFS-200000006 required"

Please help me on this.

Regards,

Raghavendra

Read only

0 Likes
782

Moderator message - please start a new discussion with your question.

OK - locked.

Rob

Message was edited by: Rob Burbank

Read only

Former Member
0 Likes
782

Hi

For project creation i am using the "BAPI_BUS2001_CREATE" it showing the error message like "Individual check for creating the object Project Definition Z-DFS-200000006 required"

If i am Exiting in SE37 also i am getting same error.

Please help me on this.

Regards,

Raghavendra