‎2009 Apr 06 8:01 AM
H guys,
I have make use of select options.
SELECT-OPTIONS so_from FOR sy-datum NO INTERVALS OBLIGATORY DEFAULT sy-datum.
now on event - AT SELECTION-SCREEN. I have one PERFORM VALIDATE_SELECTION.
and this subrotine is defines in include which is included in report.
Now am using so_from in this perform , but while activating it says that so_from in unlown and not specifies.
How can I use it in include ?
Cheers,
Pranshu
‎2009 Apr 06 8:02 AM
Hi ,
For this issue use so_option-low to refer to from feild and so_option-high to refer to from feild.
Regrds
Nitin
‎2009 Apr 06 8:05 AM
Yeah am doing that ways only -
IF so_from-low >= so_todt-low.
Still not getting activating and same error that it desont not exist.
Any other viewa guys
Regards
Pranshu
‎2009 Apr 06 8:03 AM
in the Include program use some local variable to hold the value of the select-options. In the main program call the perform using that actual varaible. without this interface you cannot validate in the include.
Main Program :
perform validate_selection using s_from.
Include program:
form validate_selection using p_from like s_from.
endform.
‎2009 Apr 06 8:04 AM
Hi Pranshu,
try to declare it as type EFG_TAB_RANGES
regards,
Ivan
‎2009 Apr 06 8:05 AM
Hi
i think the issue is not with the include, it is with the selectoptions declarations.
you have declared select options using sy-datum reference, which is not a database reference parameter. try to declare a relevant database reference field for that, and i guess it would solve.
-srini
‎2009 Apr 06 8:05 AM
Hi,
In explanation to above point that we can refer to either the from feild or the To field of the select option.
And to access the from feild we need to specify the so_optin-low and to access the TO field we need to specify so_option-high.
Because so_option doesnot exists.
Regards,
Nitin.
‎2009 Apr 07 4:56 PM