![FPM-Doubt.jpg]()
I have created a Z application and Z feeder class (ZCL_EHHSS_RAS_OIF_PER_LST) for this purpose.
Inside Get definition method I have inserted a row with the name Department.
method IF_FPM_GUIBB_LIST~GET_DEFINITION.
super->if_fpm_guibb_list~get_definition(
importing
es_message = es_message
eo_field_catalog = eo_field_catalog
et_field_description = et_field_description
et_action_definition = et_action_definition
et_special_groups = et_special_groups
ev_additional_error_info = ev_additional_error_info
et_dnd_definition = et_dnd_definition
es_options = es_options ).
data: lr_s_field_descr_ID type ref to fpmgb_s_listfield_descr,
lr_s_field_descr_ROLE type ref to fpmgb_s_listfield_descr.
read table et_field_description with key name = 'PERSON_ID' reference into lr_s_field_descr_ID.
lr_s_field_descr_ID->mandatory = abap_true.
read table et_field_description with key name = 'ROLE' reference into lr_s_field_descr_ROLE.
lr_s_field_descr_ROLE->mandatory = abap_true.
*************************************************************************************************************************************************
***Code written for appending a custom row in field descriptiom
DATA: wa_field TYPE FPMGB_S_LISTFIELD_DESCR.
wa_field-name = 'Department'.
insert wa_field into table et_field_description.
endmethod.
However, when I go in the component configuration for adding the column in UIBB element it gives me an error stating that field needs to added in field catalog also. Please explain how this can be achieved. Also If there is a way by which I can insert the new field in initial structure directly this process can be avoided.
![FPM-Doubt2.jpg]()