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: 

simple report issue

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi ,

For this issue use so_option-low to refer to from feild and so_option-high to refer to from feild.

Regrds

Nitin

0 Kudos

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

Former Member
0 Kudos

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.

_IvanFemia_
Active Contributor
0 Kudos

Hi Pranshu,

try to declare it as type EFG_TAB_RANGES

regards,

Ivan

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

implemeted in diff way.