cancel
Showing results for 
Search instead for 
Did you mean: 

Make a field read-only when you click on SAVE button in WEBUI

0 Kudos
511

Hi,

I have an attribute ZZINV_25 in context node BTAdminH of component BTCATEGORIES.

I have to make this field read-only when I click on Save Button . The method EHONSAVE is present in a different Component SRQM_INCIDENT_H .

Initially I changed the field to read-only in GET_I method but the requirement is that this field should be made read-only when the user clicks on SAVE button.

I want to use an object of interface if_genil_obj_attr_properties in order to change the attribute property to read-only , but I am unable to use it .

Is there any alternate solution available?

View Entire Topic
kumar_rituraj
Active Participant
0 Kudos

Hi Tejas,

In such case I can suggest two approach :-

1. On EH_ONSAVE of srqm_incident_h , check value of custom field is 3. if it is 3 use abap_memory concept and register some value.Now your get_I is a roundtrip method which will be called on each action.In Get_I read value set in eh_onsave using ABAP_memory and thus you can disable the field.

2. Else read about do_finish_input, it might help.

Do let me know if you happen to solve the issue.

Regards

Rituraj