cancel
Showing results for 
Search instead for 
Did you mean: 

Locking of freight order

jack_graus2
Active Contributor
0 Kudos

* I open a freight order in the UI in edit mode. In SM12 I see an exclusive lock on the freight order. I open the same freight order in another session in the UI. I expect an error message that the freight order is locked.

* I open the same freight order from an ABAP development in sc_edit_exclusive mode. I expect an error message or a record in ET_FAILED_KEY.

How to enque a freight order ?

go_service_manager->retrieve(
  EXPORTING
    iv_node_key  = /scmtms/if_tor_c=>sc_node-root
    it_key       = VALUE /bobf/t_frw_key( ( key = gs_root-key ) )
    iv_edit_mode = /bobf/if_conf_c=>sc_edit_exclusive
  IMPORTING
    et_data      = lt_root
    eo_message   = lo_message ). 

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello,

I don't know which TM release you have but in higher versions and S/4HANA, when a document is locked exclusively, opening the same document in edit mode again raises a warning message and not an error. The message can be seen if the Message Setting Customizing is maintained correctly:

https://launchpad.support.sap.com/#/notes/2463749

Best regards,
Melinda