on 02-02-2011 9:53 AM
I have added 8-9 custom fields to the financial information view (V_FIN_OVER) of /RPM/ITEM_DETAILS component. Some of them are drop down and some of them are input fields. I need to make a field, say A, read-only if the custom field B has a particular value. I do not know how to do this and where I must do the coding for the same. Please help.
Did an implementation of a BADI /RPM/ITEM_API and did the coding there and it worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One of the way to realize that is to create context attribute or attributes of type wdy_boolean.
Bind this attribute to the enable/read-only properties of the UIElement you want to enable/disable.
You can supply a default value in the Context property editor so that when the application starts they are all enabled /disabled.
When some action happens like OnSelect event of DropDown or onEnter of input field you can set the value of the respective attribute to abap_true or abap_false.
Example: In the context node create attribute
attri_1 type wdy_boolean.
OnSelect event
-
Use the code generator (ctrl+f7) to get or set values for the attri_1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.