Skip to Content
0
Former Member
Aug 19, 2005 at 02:45 PM

SELECT-OPTIONS in global class definitions

240 Views

I'd like to 'type' selection ranges inside a global class created with SE24.

For example:

The data element PRODH_D (Product hierarchy) has no range structure or range table in SE11.

Before I go to the trouble of defining the structure and table type in SE11, I'd like to define them in my global class and then use the 'type' for selection parameters.

For example:

types: begin of ty_kunnr_select,

sign(1) type c,

option(2) type c,

low type kunnr,

high type kunnr,

end of ty_kunnr_select.

data: st_kunnr_range type ty_kunnr_select.

data: ta_kunnr_range type standard table of ty_kunnr_select.

I've tried entering the code in multiple areas of the global class. I can get the code to compile just fine. But, when I try to use the type with a parameter definition of a method it won't compile.

Does anyone know how to do this?