Reading UI mode and setting field mode in WebUI
Just getting into crm and I have some questions.
How do I determine if a UI view is in create or change mode?
How can i change a fields from input fields to display fields?
The reason is I need to close 2 fields for input on the screen in change mode. But they need to be open i Create mode. It is the same view that is used for Create and Edit mode.
Hope you can hint me in the right direction.
I am quite sure what Carsten has mentioned should work. I have myself done it. To read whether the view is create/change mode really depends on which view you are in. As long as you know OO ABAP you should be able to read it. You could possibly be able to identify from one of the method of the controller class of that view.
simple step would be to create GET_I method for the fields you want and read the view mode, set to disable/enagbled.