2009 Sep 03 9:12 AM
I want to create objects from a abstract class in one Report an store them globally, to have access to this objects from another Report. With shared-objects it is only allowed, to create objects from classes, which are not abstract. Is there any solution, to realize this?
Hi Sandra,
don't you have to separate between fully abstract classes (class is explicitely defined as abstract) and those which only have some abstract methods (or attributes)? Doesn*t this fact influence the instantiation capability?
Greets
Matthias
2009 Sep 03 12:07 PM
in Object Oriented Programming (whatever the language is), you CANNOT instantiate abstract classes directly. They are kind of models which are used by sub-classes (inheritance).
You must find out which real class is instantiated by copying the logic of other programs which do that.
2009 Sep 03 12:55 PM
Hi Sandra,
don't you have to separate between fully abstract classes (class is explicitely defined as abstract) and those which only have some abstract methods (or attributes)? Doesn*t this fact influence the instantiation capability?
Greets
Matthias
2009 Sep 03 1:19 PM
are you the same person than the original poster? 😄
If you have an abstract method, it implies that the class is abstract.
2009 Sep 03 1:45 PM
Hi Sandra,
no I am not. How do you think I could? But actually I know him...
OK, no question what you state is logical. But according to wikipedia (german version) this actually makes a difference. So I was a little curious and wanted to know if this makes a difference regarding instantiation.
Greets
Matthias
2009 Sep 03 2:18 PM
maybe, I don't speak all programming languages
What I say is valid for ABAP 😄
2009 Sep 03 4:29 PM
@Dietmar,
you will have to use shared objects if you want to have access from two different ABAP reports.
Maybe you can use a static attribute of a "dedicated" class to carry the instance reference and then use it in both reports. For sure this is kind of dirty.
Greets
Matthias
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |