‎2007 Nov 20 8:17 AM
Hi all,
i have a class with one returning parameter.
R_FLIGHT returning type structure (with carrid and object references).
field-symbols: <wa_flight> like line of r_flight.
My error:
r_flight is unknown
Whats wrong? Why can i am not access the parameter r_flight??
regards
‎2007 Nov 20 10:12 AM
r_flight is a structure, not a table. Hence "<b>like line of r_flight</b>" makes no sense.
Either redefine r_flight as a table, or simply define
field-symbols: <wa_flight> like r_flightrgds, matt.
‎2007 Nov 20 10:12 AM
r_flight is a structure, not a table. Hence "<b>like line of r_flight</b>" makes no sense.
Either redefine r_flight as a table, or simply define
field-symbols: <wa_flight> like r_flightrgds, matt.
‎2007 Nov 20 10:47 AM
hi,
thanks.
But how can i get an internal table of the structure as a return value.
regards
‎2007 Nov 20 10:55 AM
If you want to return an internal table as a return value, then your return parameter must be defined as a type that is a table. Currently, your return parameter is a structure, not a table.
You can define the type in the TYPES section of your class. Or you can use a predefined table type in the data dictionary. Or you can define a table type in the data dictionary.
rgds, matt