cancel
Showing results for 
Search instead for 
Did you mean: 

Make a custom field from a structure - edit or display in Form UIBB

Former Member
0 Kudos

Hi SAP Gurus,

I have a standard FORM UIBB which fetches the fileds from a standard table. I have a requirement to add one field on the standard UIBB, so I have enhanced the standard Structure and add one custom filed. In configuration of FORM UIBB, added this custom filed using enahcement of configuration. I am able so see the added field on FORM but its coming in DISPLAY mode always while other existing fields are coming in Editable mode.

Can anybody help me out on this as to how to make field ediatable/non-ediatble in FORM UIBB?

Thanks in advance.

Regards,

Sumesh  

Accepted Solutions (1)

Accepted Solutions (1)

former_member213957
Participant
0 Kudos

Hi Sumesh,

data: ls_field_descr type fpmgb_s_formfield_descr.

   CLEAR ls_field_descr

    " check before read only mode is required  based on condition, otherwise use directly..

  

    ls_fields_descr-name = 'FIELD_NAME'.  
    ls_fields_descr-read_only  = ' ABAP_TRUE' .  " OR ABAP_FALSE
    INSERT ls_field_descr INTO TABLE et_field_description.

Regards,

Kishorekumar

Former Member
0 Kudos

Thanks Kishore and Jitendra for your valuable inputs. I got it resolved by myself as it was controlled through some inbuit profile class.

Regards,

Sumesh

Message was edited by: Sumesh K

Answers (1)

Answers (1)

Former Member
0 Kudos

in debugger  check  value  of   READ_ONLY  component of structure type FPMGB_S_FORMFIELD_DESCR when you are appending field in GET_DEFINATION method into

ET_FIELD_DESCRIPTION

if helpful reward points