Skip to Content
avatar image
Former Member

WD Make Inputfield as READONLY

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 06, 2014 at 10:58 AM

    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


    Add comment
    10|10000 characters needed characters exceeded