Skip to Content
1

Git in Eclipse with the ABAP Development Tools?

Jan 18 at 09:10 PM

336

avatar image

Hello!

I've read this about ABAP in Eclipse:

"The general idea of ABAP in Eclipse is to provide one Eclipse client that is installed on the developer PC and can connect to several backend systems from different releases. The connection is set up using a RFC/REST based protocol. The client provides a set of standard development tools such as the project explorer for system browsing and search views. In addition editors are available for each development object – classes, reports, function modules and so on. The development paradigm is still server based. This means that the development objects are stored solely on the backend (no local copies through check-in/check-out), and services such as syntax-check, search, where-used etc. run on the backend." (emphasis mine)

in "Get Started with the ABAP Development Tools for SAP NetWeaver".

On the other hand Eclipse can Git in the current version (Oxygen.2 Release(4.7.2)).

How can I create local repositories from the ABAP objects I create / change in Eclipse with the ADT?

Thanks!

Regards,
Vlad

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Vlad Ghitulescu Jan 19 at 08:22 PM
1

Hi, Nic!

I know already about ABAPGit but thanks nevertheless for the reminder.

What I rather would like is having local repositories for the projects I'm working as the only developer. The main goal is not the collaboration aspects of Git but the whole rest: versions, branching, rollback, etc.

I suppose I would be completely happy if Eclipse would allow me to create a local repository somewhere on the hard disk and to use (in Eclipse or - even better! - in Tower) all the Git-magic. That was the OT actually :-)

Thanks again!

Regards,
Vlad

Share
10 |10000 characters needed characters left characters exceeded
Nic Teunckens Jan 18 at 10:59 PM
0

Please be aware of the ABAPGit-Project to bring Git to ABAP : main link / documentation link
See the Documentation on how to set it up and run it in your IDE.

Share
10 |10000 characters needed characters left characters exceeded
Mike Pokraka Jan 25 at 09:37 AM
0

Offline editing is almost not worthwhile, you'd be missing all the server-based capabilities, might as well work in notepad++.

So I'm not sure what benefits of a local copy would give you that abapGit doesn't? Note also that you can also use abapGit with a local repository instead of GitHub.

Show 10 Share
10 |10000 characters needed characters left characters exceeded

I've must overlook the capability of abapGit to work with a local repository - I understood that GitHub is mandatory (and this is a show stopper for our company :-(). Wrong?

0

Well, sortof. It's not exactly a repository, but the ZIP capability does provide a local copy. If offsiteness is an issue then abapGitServer provides a Git host right there on your SAP system.

But note that although it's built by some very competent people, it is not provided by SAP and if you run into trouble it's not supported.

0

Fair warning!

A Git host on the SAP system is very unlikely to get through our company policies.

How about the local versions of Eclipse?
Could they be used to have a local Git repository?

0

I meant the warning regarding any opensource, abapGit or any Eclipse plugins or whatever included

Not sure what the issue would be running a Git service on your dev system. It already stores source code, now it will store a little more. You still need a logon, and it's (hopefully) not accessible from the internet. It's opensource so feel free to contribute enhanced authorization checks if they're insufficient.

0

You're right.
I'll ask about abapGit on the server.

Back to the other question about the local versions in Eclipse: Do you know where exactly are they stored and if it would be possible to use them for local Git repositories?

0

I did once find out where the files were, because I was interested in offline editing. As far as I remember it was quite obscure with coded names and such and I gave up on the idea.

I am not near a system right now, but it’s buried somewhere in the eclipse workspace folder.

0
Show more comments
Vlad Ghitulescu

Hi Vlad,

"How about the local versions of Eclipse?"
"Could they be used to have a local Git repository?"

ABAP Development Tools in Eclipse (2.89 and less) uses local files but they should rather be seen as kind of caches. The ABAP repository is located on the ABAP server and the main persistence is on the server. I think the way the local versions / files are currently constituted they cannot be used to have a local Git repository.

Best regards,
Armin

0

Hi, Armin!

Then it looks like

  • there's no way to have a local Git repository of ABAP development objects and
  • the only way to have a Git repository of ABAP development objects at all is using abapGit (on the server or on Github).

Ok, I guess I have to live with it :-)

Regards,
Vlad

0

...or you can set up a local Git repository and use that for abapGit. Technically it should work, though I don't see much benefit in it.

0
Joschka Rick Jan 24 at 09:02 PM
0

I was just trying to do exactly that, but without success. Let me know if you find a solution :-).

Show 1 Share
10 |10000 characters needed characters left characters exceeded

That's exactly my case: I tried and failed to do it my own before asking the question. I'll keep digging :-) and let you know.

0