‎2008 Apr 04 4:08 PM
‎2008 Apr 04 4:15 PM
If you are unable to do it with standard comparision, then you have to loop through select options of them and then you have to collect each value into an internal table from include tab and exclude each value from exclude tab and then validate each of them...
‎2008 Apr 04 4:17 PM
Hi,
U can do the validations in AT SELECTIOn-SCREEN event.
Check below sample code.
AT SELECTION-SCREEN ON so_kunnr.
CHECK NOT so_kunnr[] IS INITIAL.
PERFORM validate_kunnr.
FORM validate_kunnr.
DATA: l_kunnr TYPE kna1-kunnr VALUE IS INITIAL.
SELECT SINGLE kunnr FROM kna1 INTO l_kunnr
WHERE kunnr IN so_kunnr.
CHECK NOT sy-subrc IS INITIAL.
MESSAGE e820.
ENDFORM. " validate_kunnr
I don't understand what do u mean by STATIC and DYNAMIC in selection screen validations. The above code will work when u enter some value in the select option and presses
ENTER or EXECUTE BUTTON.
Thanks,
Vinod.