on 04-25-2013 2:38 PM
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.
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"
IN | Input Field |
TV | Text View |
DD | Dropdown List |
CB | Checkbox |
LU | Link To URL |
LA | Link To Action |
BT | Button |
TB | Toggle Button |
BC | Button-Choice |
SE | Separator |
TE | Text Edit |
RG | Radio Button Group |
endcase.
append l_field_desc to _field_descriptions.
endloop.
et_field_description = _field_descriptions.
eo_field_catalog = lo_structdescr.
Thanks
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.