cancel
Showing results for 
Search instead for 
Did you mean: 

Git in Eclipse with the ABAP Development Tools?

Vlad_Ghitulescu
Participant

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Vlad_Ghitulescu
Participant

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

NTeunckens
Active Contributor

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.

pokrakam
Active Contributor
0 Kudos

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.

Vlad_Ghitulescu
Participant
0 Kudos

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?

pokrakam
Active Contributor
0 Kudos

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.

Vlad_Ghitulescu
Participant
0 Kudos

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?

pokrakam
Active Contributor
0 Kudos

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.

Vlad_Ghitulescu
Participant
0 Kudos

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?

pokrakam
Active Contributor
0 Kudos

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.

Vlad_Ghitulescu
Participant
0 Kudos

Oh, this doesn't sound like fun!

Ok, I'll see how the abapGit-on-the-server-alternative is seen and in parallel I'll still try to find out the "official" way to have local repositories.

Armin_Beil
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Vlad_Ghitulescu
Participant
0 Kudos

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

pokrakam
Active Contributor
0 Kudos

...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.

joschkarick
Explorer
0 Kudos

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

Vlad_Ghitulescu
Participant
0 Kudos

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.