cancel
Showing results for 
Search instead for 
Did you mean: 

Makin a custom field read only based on another custom field's value in FPM

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did an implementation of a BADI /RPM/ITEM_API and did the coding there and it worked

Former Member
0 Kudos

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.