12-02-2014 6:16 PM
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
08-29-2015 6:37 PM
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!
08-30-2015 9:50 AM
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
08-30-2015 12:51 PM
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