Application Development and Automation 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: 
Read only

ALV - Clearing Values with

Smitha
Product and Topic Expert
Product and Topic Expert
0 Likes
477

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. We are really trying hard to get a solution.

Thanks in advance for your help,

Best regards,

Smitha.

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. We are really trying hard to get a solution.

Thanks in advance for your help,

Best regards,

Smitha.

2 REPLIES 2
Read only

former_member404244
Active Contributor
0 Likes
450

Hi,

Try to enter the value from the VBTYP drop down list and see..

Regards,

Nagaraj

Read only

Former Member
0 Likes
450

Hi,

The issue can be due to the refernece field exsitance on field 'VBTYP' in table 'ZVBOOKING'.

In that case standard ALV will automatically validate the value entered by you with the check table value.

If not, will show you the message. Try to populate some valid and then delete.

Regards,

Rajesh Kumar