on 06-06-2012 2:31 AM
As time goes on, I'm gradually switching my new workflow developments to OO, just to see what the benefits are.
Not sure I've found any yet... 🙂
Anyway, I have just run into a strange problem. I have defined a superclass ZCL_CLASS and a subclass ZCL_SUB_CLASS.
The subclass inherits all the methods of the superclass, and you can redefine them, which is good. However I've noticed that you can't redefine the critical method BI_PERSISTENT~FIND_BY_LPOR, because it is a 'static' method.
This causes a big problem when I start a workflow containing a ZCL_SUB_CLASS object, because I've found that FIND_BY_LPOR instantiates an object of type ZCL_CLASS in the container!
The workflow therefore runs into an error when it tries to execute <SuperclassObject>->MY_SUBCLASS_METHOD... it reports that the method does not exist.
I must be doing something wrong.. but what is it?
merci,
Paul Bakker
Hi,
Did you try to check by down type casting.. or What you can to is
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there,
Im having the same problem, can you explain in which method you do this cast and how???
Doesn anyone found any solution to this?
Thank you for reading.
Best regards,
Nelson.
PS: There's another post similar to this one, but it seems theres no solution
Hi Nelson.
This post is 2 years old. Please start a new discussion so we can help you.
You also might want to look at those arrow heads in the binding pop-up ... they hide a bunch of useful features that solve a multitude of problems such as casting.. and Paul himself might even answer.
Rgds,
Jocelyn
With my SCN moderator hat on..
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.