on 06-16-2015 1:16 PM
Hello Experts,
I am changing the status of custom field of /SCTMS/TOR BO via custom report.
I am facing the locking issue in this report. When I execute the report and leave the screen as it is, all the FOs are locked for others. Is there any mechanism by which we can unlock the Fos without pressing the BACK button.
Thanks in advance!
Pratibha
Hi Shukla,
You should use retrieve_by_association with parameter iv_edit_mode = /bobf/if_conf_c=>sc_edit_exclusive.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pratibha,
Could you check the change using the transaction /BOBF/TEST_UI?
I think that have a method to check if the document is in "Edit' mode.
kind regards,
Vicente Picardi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha
There is a standard SAP program /SCMTMS/PROCESS_TRIGGER_BGD which will help you remove locked entries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please share your code how you are doing it.?
Regards,
Rajiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Expert ,
At the end of my report I am writing below code:
DATA l_t_enq | TYPE TABLE OF seqg3. |
DATA l_t_all_enq | TYPE TABLE OF seqg3. |
DATA l_subrc | TYPE sysubrc. |
CALL FUNCTION 'ENQUEUE_READ'
EXPORTING | ||
gclient | = sy-mandt | |
gname | = '' | |
guname | = sy-uname | |
TABLES | ||
enq | = l_t_enq | |
EXCEPTIONS | ||
communication_failure = 1 | ||
system_failure | = 2 | |
OTHERS | = 3. |
CALL FUNCTION 'ENQUE_DELETE'
EXPORTING
check_upd_requests = 0
suppress_syslog_entry = ' '
IMPORTING
subrc = l_subrc
TABLES
enq = l_t_all_enq.
Thanks !
Pratibha
Hi Pratibha,
I meant how are you changing the Status of TOR BO..
Are you passing modification Entries are or have you created a Custom Action for it(Since you are updating a Custom Status).
I would Recommend going for Creating Custom Action on the BO and Changing Status in its EXECUTE method and call this method using Service Manager in your Custom Report.
Actions Handle the Locking mechanism Automatically and you would not require your code above to explicitly handle your Locking Mechanism.
Regards,
Rajiv
Dear Pratibha,
From the above code snippet that you have pasted, i do not see DEQUE.
Have you done it properly.
Every time after run of the program, you can see in SM12 if number of lock entries are increased.
If that is happening, try debugging or paste the complete code here. Will be able to help you.
Thanks,
Bharath.
User | Count |
---|---|
7 | |
4 | |
3 | |
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.