Skip to Content
0
Former Member
Jan 10, 2008 at 06:50 AM

Drop down in REUSE_ALV_GRID_DISPLAY

380 Views

Hi,

I am using REUSE_ALV_GRID_DISPLAY function module,

I am facing a problem with drop down list used for the fields that are displayed in ALV.

To get the search help or drop down for the field I am using the below code in field catalogue.

wa_p_i_fieldcat_alv-fieldname = 'VBTYP'.

wa_p_i_fieldcat_alv-ddictxt = 'M'.

wa_p_i_fieldcat_alv-seltext_m = 'VBTYP' .

wa_p_i_fieldcat_alv-seltext_l = wa_p_i_fieldcat_alv-seltext_s = wa_p_i_fieldcat_alv-seltext_m.

wa_p_i_fieldcat_alv-reptext_ddic = wa_p_i_fieldcat_alv-seltext_s.

wa_p_i_fieldcat_alv-ddic_outputlen = 1 .

wa_p_i_fieldcat_alv-col_pos = 4.

wa_p_i_fieldcat_alv-edit = 'X'.

wa_p_i_fieldcat_alv-ref_fieldname = 'VBTYP' .

wa_p_i_fieldcat_alv-ref_tabname = 'ZVBOOKING'.

APPEND wa_p_i_fieldcat_alv TO p_i_fieldcat_alv.

But for the field VBTYP the values are maintained in domain level value range.

So when I enter any value in the field 'VBTYP' and save the value, and try to deleted that value, FM is poping me an error message 'Enter an valid value', which should not happen, since its not a mandatory field in ZVBOOKING table.

Please any one guide me how to over come it.

Correct answer, points will be rewarded.

Regards,

Nithya