Skip to Content
0
Jun 24, 2016 at 09:55 AM

How to convert an Input field to Text view in nwbc fpm??

259 Views

Hi,

As per my requirement i need to gray out a list of fields in my fpm application but the coding for gray is working only for fields of display type 'TEXT VIEW'.

but not of type 'Input fields'.

here in my scenario there are list of input fields type so i write the above code in get definition method to convert input field to text view but it is not working.

Please check and let me know how to achieve it???

get_definition :

------------------------

if sy-uname = 'TSTIC_DSPEC'..

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'IDENTIFICATIONTYPE'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'.
ENDIF.

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'IDENTIFICATIONNUMBER'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'.
ENDIF.

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'IDINSTITUTE'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'..
ENDIF.

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'IDENTRYDATE'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'.
ENDIF.

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'COUNTRY'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'.
ENDIF.

READ TABLE et_field_description ASSIGNING <ls_field_description>
WITH KEY name = 'REGION'.
IF sy-subrc = 0.
<ls_field_description>-DEFAULT_DISPLAY_TYPE = 'TV'.
ENDIF.
ENDIF.

please help me out soon.....