11-14-2008 1:13 PM
Hi,
I have a newbie question...
If I define 2 local classes in a report, the order of the class definitions seems to matter...?
E.g. everything is fine if I define class product before class item:
CLASS product DEFINITION.
PUBLIC SECTION.
...
ENDCLASS.
CLASS item DEFINITION.
PUBLIC SECTION.
DATA quantity TYPE i.
DATA orderedproduct TYPE REF TO product. "referencing product!
ENDCLASS.
However, the other way round there is a syntax error (The type "PRODUCT" is unknown.) in the declaration line of orderedproduct. In this simple example it's easy to choose the right order but e.g. if product had an attribute of type item that's a problem... Some hints would be very helpful.
Thanks a lot,
Heiko
11-14-2008 2:00 PM
Then you have to use first :
CLASS class DEFINITION DEFERRED.
the real definition will take place later, but you can use the class for other definitions.\
regards,
Hans
11-14-2008 2:00 PM
Then you have to use first :
CLASS class DEFINITION DEFERRED.
the real definition will take place later, but you can use the class for other definitions.\
regards,
Hans
11-14-2008 2:06 PM