on 07-31-2015 10:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.