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

updation problem while creating multiple objects from enterprise portal

Former Member
0 Likes
392

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

2 REPLIES 2
Read only

Former Member
0 Likes
355

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

Read only

Former Member
0 Likes
355

use saveandwait instead save in BAPI