‎2009 Sep 16 9:16 AM
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.
‎2009 Sep 16 9:24 AM
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
‎2009 Sep 16 9:26 AM
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
‎2009 Sep 16 10:00 AM
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