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

validating selection screen select options based on domain values

Former Member
0 Likes
1,488

Hi,

I need to validate select-option in selection screen with domain values(this domain doenot have a value table).

I was able to get domain values using FM - DDIF_DOMA_GET and pouplate an internal table(similar to selet options table) but was not able to compare two select options table

since user entry is a select option how do i find if value exsists in domain table or not.

Please note its a select-option with extension in selection screen and not a parameter.

Thanks,

Phani.

3 REPLIES 3
Read only

Former Member
0 Likes
789

Hi,

You can use the IN comparision to compare the two select option tables.


select-options: s_matnr for mara-matnr.

if s_matnr IN domain_table.
write: 'valid'.
else.
write: 'invalid'.
endif.

Regards,

Vikranth

Read only

MarcinPciak
Active Contributor
0 Likes
789

Why don't you simply create data element which uses this domain and then type select options with this data element. Validation will come automatically.

Regards

Marcin

Read only

Former Member
0 Likes
789

just check where used on that domain and see what data element is using that domain,

and define the select option as this data element