01-12-2015 3:44 PM
I have c “Z” table Zstatus in Z table and the field “Zstatus” this status would be open / close.
Table name is Ztrans and field name is Zstatus default status of that filed is “open”.
When I see the table entries I am not able see open/close drop down / search help /F4 values below screen shot.
So I want the same functionality in My ALV output. This is status field is editable in alv.
01-13-2015 3:13 AM
Hi
@Dieter is right, and here is brief way:
To create a search help in SE11, then maintain it in zstauts field in 'search help' tab.
In your program, fieldcat-ref_table = 'ZTABLE', fieldcat-ref_field = 'ZSTAUTS'.
regards,
Archer.
01-12-2015 5:11 PM
Hi,
have a look into Report: BCALV_TEST_GRID_F4_HELP
Regards Dieter
01-13-2015 3:13 AM
Hi
@Dieter is right, and here is brief way:
To create a search help in SE11, then maintain it in zstauts field in 'search help' tab.
In your program, fieldcat-ref_table = 'ZTABLE', fieldcat-ref_field = 'ZSTAUTS'.
regards,
Archer.
01-13-2015 6:13 AM
Hi,
In your program, Field cat pass
REF_FIELDNAME | 'ZSTAUTS' |
REF_TABNAME | 'ZTABLE', |
or maintain in domain of fixed value for ZSTAUTS field
for drop down reuse_alv_grid_display_lvc
* drop down lists in ALV.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
ls_dropdown-handle = '1'
ls_dropdown-value = 'Option1'
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'
ls_dropdown-value = 'Option2'
APPEND ls_dropdown TO lt_dropdown.
CALL METHOD g_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.
ls_fcat-drdn_hndl = '1'