on 10-01-2015 8:53 AM
Hi,
I have a requirement where value selection of one drop-down fields should populate the value to another drop-down list fields in same row of a list UIBB .
Thanks and Regards,
Shashank S Honakeri
Hi Shashank,
You can use SAP FPM standard Event which is raised
gc_fpm_guibb_list_cell_action TYPE fpm_event_id VALUE 'FPM_GUIBB_LIST_CELL_ACTION',
Handle this event in IF_FPM_GUIBB_LIST~PROCESS_EVENT method.
You can get selected value of Dropdown1 control as follows
WHEN gc_idb_btn-gc_event_stat_chg_form.
CLEAR gc_ok.
CALL METHOD io_event->mo_event_data->get_value
EXPORTING
iv_key = lc_wdevent_params
IMPORTING
ev_value = lt_attrs.
After this you need to read selected value of Dropdown1 as below
READ TABLE lt_attrs ASSIGNING <fs_attr> WITH KEY name = 'KEY'.
Then you need to find out the Row Index of List to get which Row Dropdown Control you have done operation, this can be done as follows
CALL METHOD io_event->mo_event_data->get_value
EXPORTING
iv_key = ‘FPM_GUIBB_LIST_INDEX’
IMPORTING
ev_value = lv_tabix.
Read on table based on Index you got above, prepare your data what you want to bind in another Dropdown Control of same table row and bind it as you did for Dropdown1 Control.
Hope this will help.
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shashank,
Assign some action to first drop down and onaction of this drop-down, pass required value to next drop down in get_data method using ct_data parameter.
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 |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.