on 03-02-2015 2:30 PM
Dear Expert's,
I am trying to enhance an standard feeder class CL_EAMS_UI_FD_ORD_OPER_CONF_LI. The parameter's passed to it are EAMS_ORD (Block ID) and EAMS_OPER_CONFIRM (Node name).
I am trying to modify the GET_DATA method ( IF_FPM_GUIBB_LIST~GET_DATA ). But, when i tried to create a Z custom class by inheriting the standard class and redefine the method, i get the below message, saying the method cannot be redefined. I tried to copy this standard class to a Z custom class, but still facing the same issue.
Can someone please guide, how to enhance standard feeder class method's ?
Thanks and Regards,
Gaurav.
once the class is marked final, you can not inherit from it. The only option is either to:
- use it's interfaces to create a new class from the ground (but will need to code every method itself
- createa copy of the original class - once it is a Z-class, you can do anything there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please, mark your questions as answered or add more information, if not yet sufficient
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
I followed the same steps as you said, creating a z class by inheriting the standard class. In my case, it says the method IF_FPM_GUIBB_LIST~GET_DATA is implemented in /PLMU/CL_FRW_G_FEEDER_LIST(this is the super class for the class you mentioned). But it does allow me to enhance. You need to create a enhancement implementation and then you can create pre/post/over-write methods as per your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Soumya,
I tried to enhance, but after creating enhancement, i am still unable to do create pre/post/over-write methods.
When i try to redefine in enhancement mode, i get the below message stating "You cannot perform this action in modification/enhancement mode".
Again, when i try to inset a pre-method, i get the below message, stating "PRE-/POST-/OWR-Exits can be created only for redefined methods".
So, i am not able to redefine in normal mode and not able to redefine in enhancement mode. Without redefining, not able to create pre/post exits. Not sure, if i am missing something.
If possible, can you please add screenshot's on how did you enhance ? I might be wrong while creating enhancements.
Thanks and Regards,
Gaurav.
Hi Gaurav,
You are right. It allowed me to create an enhancement, but while trying to insert a pre exit via the enhancement I got the same message as yours.
Please refer to the following thread regarding re-defined method.
User | Count |
---|---|
93 | |
10 | |
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.