Application Development 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: 

Sales order cross system locking(CSL) issue in ECC

jitendra_it
Active Contributor
0 Kudos

Hi Folks,

I am updating sales orders and applying billing block on them in ECC.

I am facing cross system locking issue as soon I open sales order in VA02. It shows message "

Sales document XXXXX is currently being processed (by user XXX (DEAC)

I can see lock in SMCL tcode. To process further I have to manually delete the lock from here.

This is strange issue we started facing recently. Any one could please provide any input.      

Best Regards,

Jitendra

4 REPLIES 4

jitendra_it
Active Contributor
0 Kudos

Still looking for help regarding this.

Former Member
0 Kudos

How exactly are you updating the sales documents? Are you updating them directly from VA02 transaction or through some program? If you are updating the document from program using BAPI, then you will have to make sure that BAPI transaction Commit or rollback is done after BAPI call.

If you are updating sales document manually by going into standard transaction VA02, then follow below steps.

Find out the lock object name name for the sales order. I think you will get it in SMCL or SM12 tranasction. Once you got the lock object name, note down the Enque and deque FMs.

Then go to VA02, enter sales order number, turn on debugging mode, hit execute/enter to go into the document. This will open debugging mode where you can set a breakpoint at Enque, Deque FMs.

Once document editing is finished & document is saved, program should deque all the tables under same lock object. Check if Deque FM is getting called or not.

0 Kudos

Hi Tejas,

I am updating orders in program via BAPI BAPI_SALESORDER_CHANGE

Also performing commit work using BAPI_TRANSACTION_COMMIT with wait = X.

Still facing the locking issues. But for some orders it is working fine.

0 Kudos

Hi Jitendra,

Are you able to replicate the issue again and again with same order? If yes, then you will have to check why BAPI is not removing the lock from the table. If no, then its kind of intermittant issue. Before editing any order in your program, you will have to first check if its locked or not(using enque FM). If it's locked already, then wait for 1 or 2 second and then retry. Repeat this procedure for another 4-5 times and if order still remains locked, then you will have to report this error at the output of your custom program.

You can also mannucally call Deque FM after BAPI_TRANSACTION_COMMIT FM.