cancel
Showing results for 
Search instead for 
Did you mean: 

Using FPM configuration change input field as dropdown

former_member198064
Participant
0 Kudos

Hi Experts,

In my VIEW layout having input field  using FPM configuration i need to change input field as dropdown field

not in the VIEW layout using configuration i need to change input field as dropdown.

Can any one help me out in this.

Thanks,

Venkatesh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In the Feeder class go to the Get_Definintion method  in that you will be able to change the field properties whether a field needs to be Drop down or input or display as shown in below code.

method if_fpm_guibb_form~get_definition.

   data: lo_structdescr   type ref to cl_abap_structdescr,

         l_component      type abap_compdescr,

         l_field_desc     type fpmgb_s_formfield_descr,

         ls_fields        type fpmgb_s_formfield_descr,

         l_fixed_value    type wdr_context_attr_value.

* Defining the dictionary structure for the GUIBB

   lo_structdescr ?= cl_abap_typedescr=>describe_by_name( 'ITOB' ).

   loop at lo_structdescr->components into l_component.

     clear: l_field_desc.

case l_component-name.

       when 'FIELDNAME'.

         l_field_desc-DEFAULT_DISPLAY_TYPE = "Type you need"

INInput Field
TVText View
DDDropdown List
CBCheckbox
LULink To URL
LALink To Action
BTButton
TBToggle Button
BCButton-Choice
SESeparator
TEText Edit
RGRadio Button Group


endcase.

append l_field_desc to _field_descriptions.

endloop.

et_field_description  = _field_descriptions.

   eo_field_catalog      = lo_structdescr.

Thanks

Phani

former_member198064
Participant
0 Kudos

Hi Phani and Jitendra,

Thanks for giving this information.

Thanks.

Venkatesh

Answers (1)

Answers (1)

Former Member
0 Kudos

in FORM FEEDER CLASS method get_defination  you can change  display_type property for field as per your need.

if its standard class then you need to enhance your feeder class