07-10-2015 1:00 PM
Hi All,
How can I provide Dropdown In ALV OM I tried using SET_CELL_TYPE( vaule = if_salv_c_cell_type=>dropdown ) But unable to see any drop down and if i use Button or Hyperlink they are working fine and how can i provide values to the dropdown VRM_SET_VAULES?
07-10-2015 1:09 PM
Hi,
Please refer the standard program....
BCALV_EDIT_06
and BCALV_EDIT_07.
Regards,
Vijay SR
07-10-2015 1:29 PM
Hi,
step 1 prepare a internal table and set to your grid
ls_dropdown-handle = '2'.
ls_dropdown-value = '64 Doctors Degree Ph.D'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '89 None'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '2'.
ls_dropdown-value = '90 Unknown'.
APPEND ls_dropdown TO lt_dropdown.
*method to display the dropdown in ALV
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.
step 2 in fcat do this for which column you want dropdown
WHEN 'ABART'.
ls_fcat-drdn_hndl = '2'.
ls_fcat-outputlen = 15.
MODIFY gt_fieldcat FROM ls_fcat.
step 3 before call of set_table_for_first_display call step 1
Define a drop down table.
PERFORM dropdown_table.
*Display ALV output
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fieldcat
it_outtab = gt_outtab.
07-13-2015 9:47 AM
Thank you for reply,
I am using ALV OM , here the problem is i am able to provide the dropdown by using the methods SET_DROPDOWN_ENTRY,ADD_DROPDOWN but here i need to select the value from the dropdown which has to be loaded in that field value but i am unable make ALV OM output editable as there is no method for this i came to know by searching we need to mix ALV OM with ALV GRID so that we can edit as you mentioned above but in particular is there anyALV OM method to edit particular field.