cancel
Showing results for 
Search instead for 
Did you mean: 

Fields in fpm should be grayed which display type is Input Field

sandeep_gvv2
Participant
0 Kudos

Hi,

As per my requirement i want to make 5 fields to be grayed i.e in display mode.In that i write code in feeder class but in that 5 fields four are of Input fields

and one is text view.The field which is of type text view is working fine but The input field type i can't make grayed?

How to make them grayed. What i need to do make a field of type "Input Field" in display mode(Grayed)????

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198833
Active Participant
0 Kudos

Hi Srikanth,

Have you tried making the Input Fields disabled? This should make them as display mode.

Regards,

Felipe

sandeep_gvv2
Participant
0 Kudos

Hi,

Yes i tried through feeder class get definition method through coding but its not working.

the other field which is of type TEXT VIEW it is grayed.

How to convert text view to input field through coding?????

former_member198833
Active Participant
0 Kudos

Hi,

You should change the Input Field to Read-Only in the GET_DATA method of the feeder class. Hope this helps.

Cheers,

Felipe

sandeep_gvv2
Participant
0 Kudos

How can i change is there any method or any special code need to be added additional???

former_member198833
Active Participant
0 Kudos

Hi Srikanth,

This document might help you on this topic:

Regards,
Felipe

sandeep_gvv2
Participant
0 Kudos

I already go through the document its working for only "text view" type fields.I want input fields to be grayed...

former_member198833
Active Participant
0 Kudos

Srikanth, in order to gray them, you need to make the Input Fields Read Only.

sandeep_gvv2
Participant
0 Kudos

Hi,

I have write the code like above to grey the field in get data method.


       FIELD-SYMBOLS: <fs_field_usage> like LINE OF ct_field_usage.

READ TABLE ct_field_usage ASSIGNING <fs_field_usage> WITH KEY name = 'IDENTIFICATIONTYPE'.
   if sy-subrc EQ 0.
      <fs_field_usage>-READ_ONLY = abap_true.

ev_field_usage_changed = abap_true.
   endif.


Note : If my field is text view the above code is working it is grayed but if the field is "INPUT TYPE" it is not allowing to gray the field.



former_member231368
Participant
0 Kudos

Hi Srikanth,

Same requirement I have. Is it done? Can you please send that piece of code?

Thanks in advance.

Thanks,

Yerukala Setty