cancel
Showing results for 
Search instead for 
Did you mean: 

f4 help not working in oo grid alv with fixed values from domain

kjyothiraditya
Participant
0 Kudos
531

Hi,

I am trying to display some status fiels in CL_GUI_ALV_GRID ALV output which have fixed values defined at domain levels.

It is displaying the statuses, but need the f4 help also.Any ideas on how to trigger this.

Sandra_Rossi
Active Contributor

No issue to make it work. For instance, the smoker column.

REPORT.
DATA go_alv TYPE REF TO cl_gui_alv_grid.
DATA gt_SBOOK TYPE TABLE OF SBOOK.
PARAMETERS dummy.
AT SELECTION-SCREEN OUTPUT.
  IF go_alv IS INITIAL.
    CREATE OBJECT go_alv
        EXPORTING
          i_parent = cl_gui_container=>screen0.
    SELECT * FROM SBOOK INTO TABLE gt_SBOOK.
    go_alv->set_table_for_first_display(
        EXPORTING i_structure_name = 'SBOOK'
        CHANGING it_outtab = gt_SBOOK ).
  ENDIF.
AT SELECTION-SCREEN ON EXIT-COMMAND.
  go_alv->free( ).
  free go_alv.
raymond_giuseppi
Active Contributor

If you actually used CL_GUI_ALV_GRID and not CL_SALV_TABLE (I suppose some fields are in input mode, else why?) check your field catalog (how did you build it, structure with correct ddic reference (structure name), you should get the F4 help for no-charge)

kjyothiraditya
Participant
0 Kudos

yes its editable ALV, thats why used CL_GUI_ALV_GRID. using a field catalog instead of structure as I need to change some labels. Getting data for the structure using FM DDIF_FIELDINFO_GET and passing the same to fieldcatalog with some changes.

Accepted Solutions (0)

Answers (0)