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 set Null / Empty value for Drop down list on ABAP Intractive forms

Former Member
0 Kudos

Hi,

Iu2019m using Drop down List and I'd like to have the first entry as "Empty" automatically be selected the first time that the interactive form is opened. Iu2019m using ISR DDL 1st Element preselect for Drop down list and values are populating dynamically into the drop down list.

Problem Iu2019m having in adding empty value into the drop down list.

Is there any setting for "empty" value, can we change empty to "unknownu201D.

Can anyone help me?

Thanks

Ali

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

PARAMETERS: p_wrkctr(4) TYPE c AS LISTBOX VISIBLE LENGTH 15 OBLIGATORY.

data : list TYPE vrm_values,

value TYPE vrm_value.

value-key = 'M'.

value-text = ' '.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P_WRKCTR'

values = list

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

Thanks & Regards,

Sateesh.

1 REPLY 1

Former Member
0 Kudos

Hi,

PARAMETERS: p_wrkctr(4) TYPE c AS LISTBOX VISIBLE LENGTH 15 OBLIGATORY.

data : list TYPE vrm_values,

value TYPE vrm_value.

value-key = 'M'.

value-text = ' '.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P_WRKCTR'

values = list

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

Thanks & Regards,

Sateesh.