cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance standard feeder class

SAPSeeker
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

please, mark your questions as answered or add more information, if not yet sufficient

Former Member
0 Kudos

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.

SAPSeeker
Participant
0 Kudos

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.

Former Member
0 Kudos

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.

http://scn.sap.com/thread/1392982