‎2016 Mar 10 12:57 AM
Is there a way to extract source code-based format from a class, in a productive client?
I have read-only access to SE24 in productive client. The Source Code-Based button does not appear here (it does in development). The option setting to start in source code-based view does not work in productive client.
SHOW_CLIF function in SE24 gives me a popup "SAP system has status not modifiable". I choose display button and receive error message "Changes cannot be made, display user only" Message no. TR026.
Is there something else I can try?
Thank you for your help.
‎2016 Mar 10 5:27 AM
hi sue,
could you use enhancement in class? try it...
Regards,
raja
‎2016 Mar 10 3:01 PM
I don't understand what you're suggesting, please give details?
‎2016 Mar 10 3:11 PM
It isn't good practise to modify code in a production system.
Not sure what your aim is but if you want to compare syntax, you can do so via SE24 > Utilities > Versions >.. from the development system
the remote compare button will allow to compare between systems..
‎2016 Mar 10 3:20 PM
I'm unclear where you got idea I want to modify code in productive client? I do not want to do this. I have listed things I've tried (and the error messages) to see the source-code based format in productive client.
Unfortunately, option to see productive code via develoment remote compare is not available to me.
Is there a way I can display the source-code based format directly in productive client?
‎2016 Mar 10 3:31 PM
If SE24 doesn't work, have you tried SE80?
And the error message you mentionned generally pops up when one tries to open stuff edit mode in a system where that is not meant to happen. It was at no means an accusation, and my apologies if you were offended.
‎2016 Mar 10 5:45 PM
Hi Patrick, Yes I get it that SHOW_CLIF tried to open in change mode. I was merely stating that is one of the things I've tried, and that was the result -- no display mode offered so I could not use that function to get to the class-based source code.
I've looked in SE80 at the class but I'm not sure what you want me to look for? The dispaly of the class looks identical to the hierarchy view from SE24. I can browse the individual methods and sections (private, public, etc.) but still unable to find Source-based class display from SE80 or SE24.
‎2016 Mar 10 3:36 PM
Hi..
Are you looking for a workaround?
Function SEO_CLASS_GET_METHOD_INCLUDES gives you ABAP report names , giving CLASS NAME.
Then from SE38 or SE80 you'll be able to see code.
Hope to help
Bye
‎2016 Mar 10 5:46 PM
Hi Roberto, I ran function SEO_CLASS_GET_METHOD_INCLUDES, gave the class name, and it displays a list of the includes for the methods. How do I use that result to get to the class source-code based display from SE38 or SE80?
‎2016 Mar 10 8:01 PM
I guess Roberto's idea was to check those includes in SE38, but it looks like that will not get you much further
‎2016 Mar 10 9:31 PM
Hi Sue,
I wonder why you need the source-code based display of the class. Actually, this kind of viewing and editing a class is "artificial" - the method definitions and implementations are still split in the many include files and just put together and split again when saving any changes.
You productive class has come from a development system. Here you can do a remote compare of the public, protected and private sections to see differences.
Hope this helps a little.
Clemens
‎2016 Mar 10 9:35 PM
Hi Clemens, as mentioned earlier the remote compare option is not available to me for this. I need to look in the productive client. Is there a function module or program I can run which will show the class source-based code format?
‎2016 Mar 11 9:56 AM
Hi Sue,
I don't know a way to show the class in source code format. Anyway, use SEO_CLASS_GET_METHOD_INCLUDES and compare the includes one by one - Idoubt there are so many.
Sometimes it's harder to search for ghe easy way than easily do it the had way 🙂
Regards Clemens
‎2016 Mar 11 3:18 PM
I can already copy/paste the same code from SE24/SE80, without the function module.
About 110 classes and close to 1000 methods. Plus types, attributes, etc. Hence why I'm looking for a way to get at the class source-based code listings 🙂
‎2020 Jan 12 7:23 PM
Hi Sue,
Did you find any solution for this?
I am interested as well
Thank you
Lahcen
‎2020 Jan 13 6:42 AM
‎2023 May 16 8:57 AM
From Eclipse IDE ( as in the comment of previous response)
it is source code only in all systems from dev to production.
It worked for me
Hope it helps