cancel
Showing results for 
Search instead for 
Did you mean: 

How to grayout or Non-editable a field in UI ?

Former Member
0 Kudos
671

Hi All,

Could please tell me any one how to gray out a field in the UI.I have attached a screen shot, please gothrough it.

I want to grayout "Transportation Group" field like above "Cross-Distr-Chain Status" Field.

Please replay me as soon as possible,its urgent for me...

Reagards,

Biren

Accepted Solutions (0)

Answers (4)

Answers (4)

bharathi_s3
Discoverer
0 Kudos

hello biren,

      

          I am having the same requirement. Can you please share how you solved this issue??

          Anyone who has done this, please help me.

Thanks,

Bharathi.

former_member283411
Participant
0 Kudos

Hello Bharati,

it's solved now, please take a look at this thread: https://scn.sap.com/thread/3654798

However, the best way to achieve it is through UI configuration, if I remember well, you have this option already from MDG 7.

Thanks,

Tamas

former_member283411
Participant
0 Kudos

Hello Biren,

could you tell me what solution did you use after all? Your answer would be highly appreciated.

Thanks,

Tamas

former_member215610
Active Participant
0 Kudos

Hi,

CT_FIELD_USAGE will contain all the field properties do the read statement in get_data method for a particular field using field NAME. set the value of field READ_ONLY = abap_true and EV_FIELD_USAGE_CHANGED = abap_true of get_data method parameter.

refer below code.

READ TABLE ct_field_usage ASSIGNING <fs_field_usage> WITH KEY name = 'YOUR_FIELD_NAME'.

    <fs_field_usage>-read_only = abap_true.

EV_FIELD_USAGE_CHANGED = abap_true.

Regards,

Ragavendra

Aliaksandr
Active Participant
0 Kudos

Hello Biren,

Please, look at this message.

P.S. I assume that you are working with FPM application.

Kind regards, Aliaksandr.