Skip to Content
0
Former Member
Mar 18, 2009 at 02:30 PM

Question on OOPS

31 Views

Hi

I am trying to write a program in OOPS. I have defined class & methods & their implementations in a program in SE38. I am trying to pass the select-options that I get in the input in one of the public methods.

I have declared that in my method like this:

TYPES: t_vkorg TYPE RANGE OF vkorg.

;

;

;

METHOD: get_deliveries IMPORTING imt_vkorg TYPE t_vkorg.

ENDMETHOD.

SELECT-OPTIONS: s_vkorg FOR likp-vkorg.

When I call this method...

<objectname>->get_deliveries EXPORTING imt_vkorg = s_vkorg.

When I do this I get syntax error that imt_vkorg is not type-compatible with s_vkorg..

.. I have also tried to use

TYPES: t_vkorg TYPE STANDARD TABLE OF selopt.

Still it doesn't work.. Can anyone help..

Thanks

Geetha