2007 Dec 27 10:56 AM
Hi All,
From enterprise portal i am calling an RFC 'BAPI_PROJECT_MAINTAIN' to create objects .
While trying to create multiple objects simultaneously it gives error "sapuser is currently using, can't be created".
It seems like as i am creating multiple objects by calling RFC repeatedly , while the first one is not updated fully i am sending the second value to be processed.
Pl. tell me how to overcome this. Do I need to add any sleep time in EP or any other method is there in SAP to overcome this situation.
thanks
sandeep
Hi Sandeep,
If possile (from perspective of data consistency, considering how you are processing the project(s)), after every 'BAPI_PROJECT_MAINTAIN' call either the BAPI_TRANSACTION_COMMIT (if no errors are generated) OR BAPI_TRANSACTION_ROLLBACK (in case of errors).
The COMMIT/ROLLBACK will serve to dequeue any lock objects generated during the course of the BAPI call. Ensure passing WAIT = 'X' to the BAPI.
Regards,
Aditya
2007 Dec 28 3:29 AM
Hi Sandeep,
If possile (from perspective of data consistency, considering how you are processing the project(s)), after every 'BAPI_PROJECT_MAINTAIN' call either the BAPI_TRANSACTION_COMMIT (if no errors are generated) OR BAPI_TRANSACTION_ROLLBACK (in case of errors).
The COMMIT/ROLLBACK will serve to dequeue any lock objects generated during the course of the BAPI call. Ensure passing WAIT = 'X' to the BAPI.
Regards,
Aditya
2010 Dec 08 12:30 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |