Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: How to release the Lock on a BOL Entity ( change mode to display mode)

$
0
0

Hi Parth,

 

There is no way to release the lock on an entity without either committing the changes or rolling back the changes. After you edit the entity, to release the lock, you will either have to save and commit the changes or rollback the changes.

 

By the way, commit shouldn't be causing any issues if called in right way. I recommend doing it in following way.

 

lr_transaction = lr_btadminh->get_transaction( ).

IF lr_transaction->save( iv_force_save = abap_true iv_asynchronous = abap_false ) EQ abap_true.

    lr_transaction->commit( iv_keep_locks = abap_false ).

ELSE.

    lr_transaction->revert( iv_suppress_buffer_sync = 'X' ).

    lr_transaction->rollback( ).

ENDIF.




Hope this will resolve your issue. If it doesn't then please share your code.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>