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: 

SE24 - Unable to restore Private Section of Z Class using Version Management

angmatalv
Discoverer
0 Kudos

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.

1 ACCEPTED SOLUTION

thalesvb
Active Contributor

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.

2 REPLIES 2

AlexGourdet
Community Manager
Community Manager
0 Kudos

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

thalesvb
Active Contributor

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.