cancel
Showing results for 
Search instead for 
Did you mean: 

Locking Problem while calling BAPI

Yashpal
Active Contributor
0 Kudos

Hi ,

I am calling a BAPI in my wd appln . if there is some problem while executing the bapi like posting period not open then i am displaying the error of the BAPI . but after that i see in the locked tables through SM12 some tables gets locked .

so when i call the BAPI again it gives me error like the following tables are locked by the user... so is there any way by which i can release the locks hold by the bapi if problems occurs.

Regards

Yash

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Yash,

Try the command ROLLBACK WORK if the error occurs.

This will remove all locks set by the BAPI.

Regards,

Jos