Skip to Content

How to get f4 values interactive ALV report.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 13, 2015 at 03: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 06: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'

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 12, 2015 at 05:11 PM

    Hi,

    have a look into Report: BCALV_TEST_GRID_F4_HELP

    Regards Dieter

    Add comment
    10|10000 characters needed characters exceeded