on 2021 May 05 6:28 AM
* 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 ).
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
5 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.