on 2018 Mar 01 10:34 AM
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?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
22 | |
13 | |
4 | |
1 | |
1 | |
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.