New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace Refactoring #1178
Comments
Yeah, this would be a nice feature, but difficult to implement 😄 Several people have asked for this feature |
added label crazy which means it is a lot of work, the idea is good |
I looked into this some time ago but couldn't find an approach that would cover the main use cases. Some things that help:
Doing it outside of the ABAP stack seems really risky (regex renaming), unless there if there's going to be a nicely featured ABAP parser in the future. In SCN there's also a blog about gettting abap2xlsx ported into a reserved namespace somewhere. (I also feel like I already typed this up at some point, but I cannot find it...) |
Can these 2 blogs maybe help? https://blogs.sap.com/2013/03/06/namespace-refactoring-in-abap/ https://blogs.sap.com/2011/05/17/chain-and-rename-your-saplink/ Wasn't there also an option for SAPLINK, where you could change the namespace during import? Can't find it at the moment, though. |
Hello, as a workaround, I've wrote this script: https://github.com/nathanss/search-and-replace with the main goal of using it in an abapgit project (after serialization). I've had success applying it to a project I work for. As it is very manual, you need to be careful not to screw up the files before you import them again. Also, remember to run it two times, one with old and new namespace in uppercase and other with lower case. |
Hi, check out the ABAPSpace application to refactor namespaces. |
think this is outside the scope of abapGit, can be solved with projects like https://github.com/SAPAssets/ABAPSpace |
@mnemotron we shared a solution for this: https://github.com/isisdanismanlik/NamespaceChanger |
Now you can also check out: Automagic standalone renaming of ABAP objects |
Hi,
first of all, abapGit is a great tool!
This is a request for a needed feature.
A lot of people I know need to change the namespace of the ABAP objects.
A manual refactoring takes a lot of time and effort.
i.e. Z... to /IPS/... or something.
A standardized way to refactor the namespace would be great.
For example:
Repository (default) Namespace (i.e. Z) -> import -> Specific SAP System with namespace /IPS/...
or
SAP System /IPS/ -> export -> Z -> Repository
Greetings
The text was updated successfully, but these errors were encountered: