cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I want to add a new column in the standard table in FPM UIBB.

murtaza_nadiadi
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi,

Guess you should set reference of the eo_field_catalog in GET_DEFINITION method as below.

eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( 'Your Table Type' ).



BR,

RAM.

murtaza_nadiadi
Discoverer
0 Kudos

Hi,

Thanks for the reply. But what I am trying to do here is that I want to add a column in the standard table (Pre defined structure) not a z table. So there is no custom table type,

  wa_field-name = 'Department'.

  insert wa_field into table et_field_description.

The field is added in et_field_description but cannot be added in the catalog.

former_member197475
Active Contributor
0 Kudos

Hi,

Ok, then you can try for adding the new field to the standard structure and pass that structure as the importing param in describe_by_data method.

Please check once.

BR,

RAM.

murtaza_nadiadi
Discoverer
0 Kudos

Hi,

There is no way by which I can find the standard structure type. The get definition contains only

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 ).

Now we know that if I insert a row in et_field_description the column should appear in the display. But we also need to add it in catalog.

former_member205613
Participant
0 Kudos

Hi,

the field needs to be added to the fieldcatlog EO_FIELD_CATALOG and ET_FIELD_DESCRIPTION. Otherwise you have no possibility to fill the data within the method get_data.

Please check with the component the original feederclass belongs to if they have any possibility to extend the standard type with customer fields so these fields are available within the FLUID automatically.

Regards

Heike Leopold

Development FPM