‎2011 Feb 23 12:57 PM
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.
‎2012 May 05 6:27 PM
Hi sriniu,
I am also facing issue please help on this i think you already clear the issue
Regards,
Raghavendra
‎2012 May 07 9:16 AM
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.
‎2012 May 07 4:58 PM
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
‎2012 May 07 5:09 PM
Moderator message - please start a new discussion with your question.
OK - locked.
Rob
Message was edited by: Rob Burbank
‎2012 May 08 5:11 AM
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