Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

attributes as enhancements are not supported for persistent classes

Former Member
0 Kudos


Hello Experts,

To add two custom fileds to meet a customer requirement in Leave Request (infotype 2001), I need to enhance standard class

CL_PT_REQ_ATTABSDATA.

This class is used in carrying data from wd abap screen fields to r/3 tables.

I need to add two Z atrributes as well as need to add their getter/setter methods.

As soon as I go to add attribute, I get the below error:

"attributes as enhancements are not supported for persistent classes".

Is there any way out? Do I need to obtain access key to modify the class? enhancement is not possible?

Thanks

Arindam

3 REPLIES 3

Former Member
0 Kudos

Hello Arindam,

I have the same problem with same error message. Have you found any solution?

Or could please somebody provide anything that could help?

Thank you!

0 Kudos

Hi,

In any case, talk to SAP support, explain what you are trying to do, ask for advice and for possible alternatives.

If the "real need" to extend persistent classes is there (the class CL_PT_REQ_ATTABSDATA mentioned above has what looks like generic predefined attributes intended for customers use at least from EA-HRRXX 6.00 SP 0080 onwards) , by the looks of it, it would have to be a modification. Do ask SAP what will happen with such modified objects during upgrade, how are they supported in modification adjustment tools.

cheers

Jānis

0 Kudos

Thanks for reply.

I thought so, but I didn't want to contact them before (at least some) investigation.

Actually I was looking for enhancement of different class, but while searching throught the scn and the internet, this was the only thread about that error message. I have ended with workaround [enhancing the methods that get these attributes] which works according our needs, but I know that it is not the perfect one as attributes enhancement could be.

Michal