Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get f4 values interactive ALV report.

mahabaleshwar_patil
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Hi,

have a look into Report: BCALV_TEST_GRID_F4_HELP

Regards Dieter

Former Member
0 Kudos

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.

former_member182915
Active Contributor
0 Kudos

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'