cancel
Showing results for 
Search instead for 
Did you mean: 

WD Make Inputfield as READONLY

vinodkumar_thangavel
Participant
0 Kudos

Hi Friends,

I have a scenario in which through configuration I have added a input field and now I need to make the input field as READONLY pls help me out to for the solution.

Thanks & Regards,

Vinodkumar.

Accepted Solutions (0)

Answers (1)

Answers (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Vinod,

CT_FIELD_USAGE parameters has all the attributes required for controlling the field properties like required, enabled, , read only. Implementing the following piece of code in GET_DATA method, we can make a input field read only, 

LOOP AT CT_FIELD_USAGE INTO F_USAGE WHERE name = ' FIELD_NAME'.

     f_usage-read_only = 'X'.

       MODIFY CT_FIELD_USAGE FROM F_USAGE TRANSPORTING FIXED_VALUES_CHANGED

     ENDLOOP.



Regards,

Harsha