2022 Nov 30 5:13 PM
Greetings experts,
I've encountered an issue in TX. SE24 while attempting to restore the private section of a class to a previous version.
Some context first: The attributes of this class contain very long STRING constants used for e-billing. Upon adding a new attribute, I'm unable to activate the class, and SAPGUI is displaying the following error:
"Literals that take up more than one line are not permitted."
Upon inspecting the code for the private section, I saw that one of the already-existing constants in the Z class is extremely long and does not have a closing " ' " at the end, which causes certain parts of the code to appear in red and thus is unable to activate.
I tried bringing back an older version of the include through Version Management, but so far this has been unsuccessful. Upon retrieving the old include, the one that appears is still the incorrect one.
I have also attempted to remove the faulty attribute through SE24 to make it from scratch, but the error I get is:
Error OO401 "You cannot perform this action in modification/enhancement mode"
Note 2629624 indicates that the change has to be performed on the original system, but it is no longer available since this is a very old class.
Is there any way I can change the Private Section manually? The old, working version of the Private Section seems to be using '&' symbols to concatenate the different parts of the long STRING constants, so finding a way to copy this code may be the solution.
Kind Regards,
Ángel.
2022 Nov 30 5:27 PM
You should use the Private section code editor to type such long strings, on se24 is through Goto menu, but you can also use Eclipse ADT (or Code)
About error OO401: if you are sure the system is decommissioned (the new development system is the one you are logging in), you can change the "Original system" through SE03.
2022 Nov 30 5:13 PM
Thank you for visiting SAP Community to get answers to your questions.
As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:
I hope you find this advice useful, and we're happy to have you as part of SAP Community!
All the best,
Alex
2022 Nov 30 5:27 PM
You should use the Private section code editor to type such long strings, on se24 is through Goto menu, but you can also use Eclipse ADT (or Code)
About error OO401: if you are sure the system is decommissioned (the new development system is the one you are logging in), you can change the "Original system" through SE03.