on 12-19-2015 3:57 PM
Hi all - I am trying to make a screen table field as read-only in webdynpro component GRAC_UIBB_ACCESS_REQUEST view
V_REQUEST_ITEMS. Table N_ITEM_DATA has the field valid_from and that needs to be set as read only. I have tried below code in POST-EXIT on the method WDDOMODIFYVIEW. But it isn't working, ui_element is empty after this code is triggered. Please help, if anyone knows how to do this.
DATA : ui_element TYPE REF TO cl_wd_input_field.
ui_element ?= view->get_element( id = 'VALID_FROM' ).
ui_element->set_read_only( abap_true ).
Thanks in advance.
Pranav
Hi,
I think you are using the wrong id for the element. Use id = 'INPT_VALIDFROM' in your code.
I hope it helps.
Regards,
Taiyeb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Taiyeb - Thanks for your reply. That did help. Now ui_element has the values but its still not make that field as read-only. I am able to change that field, but when I change the date I am getting runtime error 'Element/Node COMPONENTCONTROLLER.1.N_ITEM_DATA.1.VALID_FROM Cannot be changed'. Am I missing something here?
Thanks,
Pranav
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.