Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Dropdown values from feeder class are not populated in FPM

$
0
0

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


Viewing all articles
Browse latest Browse all 1726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>