cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown values from feeder class are not populated in FPM

former_member374952
Participant
0 Kudos

Hello,

I have created a Feeder Class to create and  populate the values for the  dropdown but the values doesnt seem to get populated in the Drop Down .

Here is my Code .

class ZFPM_SALESORDER_FORM definition

public section.

   interfaces IF_FPM_GUIBB .

   interfaces IF_FPM_GUIBB_FORM .

   TYPES : BEGIN OF TY_DROPDOWN,

                        blank type char16,

                        na type char16,

           END OF TY_DROPDOWN.

           data: t_dropdown type standard TABLE OF TY_DROPDOWN,

                    wa_dropdown type TY_DROPDOWN,

                   drop_data type TY_DROPDOWN.

ENDCLASS.



method IF_FPM_GUIBB_FORM~GET_DEFINITION.

* Code to Create a Drop Down in Sap FPM

***********Declaration *******************************************************

   data wa_field type FPMGB_S_FORMFIELD_DESCR.

   data wa_action type fpmgb_s_actiondef.

   data it_action type fpmgb_t_actiondef.

   data lt_fixed_value type WDR_CONTEXT_ATTR_VALUE_LIST.

   data ls_fixed_value type WDR_CONTEXT_ATTR_VALUE.

******************************************************************************

   eo_field_catalog ?= cl_abap_tabledescr=>describe_by_data( wa_dropdown ).



   ls_fixed_value-value = 'blank'.

   ls_fixed_value-text = 'Blank Setting'.

   append ls_fixed_value to lt_fixed_value.

   ls_fixed_value-value = 'NA'.

   ls_fixed_value-text = 'Not Applicable'.

   append ls_fixed_value to lt_fixed_value.

   wa_field-name = 'DROPDOWN'.

   wa_field-FIXED_VALUES = lt_fixed_value.

   wa_field-LABEL_TEXT = 'dropdown Text'.

   wa_field-DEFAULT_DISPLAY_TYPE = 'DD'.

   insert wa_field into table et_field_description.

   wa_action-id = 'ON_DROP'.

   wa_action-enabled = 'X'.

   wa_action-action_type = 0.

   append wa_action to it_action.

   et_action_definition = it_action.


Would any of you  who've done this before be able to provide me with a sample solution or some pointers on how to proceed.


Regards,

Vicky

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Vicky,

Go to your FPM application component configuration and select the DROPDOWN field, Display type property as Drop Down List Box.

It will works.

No need to mention in the get_definition method.

Regards,

Naga

Answers (0)