Hi Experts,
We have a requirement where we need to release the Lock on the BOL entity i.e switching it from CHANGE mode to DISPLAY mode. I am unable to find any specific method other than COMMIT. In my case, commit cant be used as it causes issues with different process.
Requirement Scenario:
- When a BP is search and loaded on Identification screen, changes are to be done in attributes before displaying on the screen.
- Since the BP entity is getting loaded in display mode, it doesnt allow any changes in the attributes in CRM_IUICMD_BADI ( Method Fill Caller Display)
Solution:
1. Using method SWITCH TO CHANGE MODE, updated the required attribute changes but the BP gets into changes mode on the identification screen.
2. IF used Commit after the change mode to release the Lock, Identification Screen loads in DISPLAY mode but facing issues during CA load/ CA creation. As the method Fill Caller Display triggers everytime, the COMMIT call causes problem.
So if we can switch the BP entity back to display mode (without commit) after the changes are done can solve the issue.
Appreciate if someone can help us with the solution.
Many thanks in advance.
Parth Shah