fidley / ABAPFavorites

ABAP Favorites Eclipse Plugin
https://abapblog.com
37 stars 6 forks source link

Feature Idea SAP GUI Import #83

Closed OberstVonGatow closed 10 months ago

OberstVonGatow commented 2 years ago

Would be really great, if it would be possible to import the Transactions from the SAP GUI Favorites.

stockbal commented 2 years ago

Great idea. Just yesterday I talked with a developer who is getting started with eclipse and ADT. He also has the favorites plugin installed but wished for the option to maybe have the favorites from SAP GUI available there as well. As it would definitively need a back end part to get the favorites into ADT I would offer it as an additional "Import" or "Synchronize" button in the toolbar of the view(s). The button would only be active if the necessary backend part at the current ABAP project exists.

@fidley what do you think?

Regards Ludwig

fidley commented 2 years ago

Sorry for long answering time, but times are heavy now.

Thanks @OberstVonGatow for idea and @stockbal for opinion. I had such discussion already in the past with someone and it was on the to do list, but so far with the low prio.

Definitelly it would need to be done as additional, not mandatory part. Some things which would need to be done:

Questions for the import

  1. Import from SAP instance always to a folder with a fixed name EQ project name? If so, special settings for Icon would be good to have, to see which folder is synchronization available
  2. At synchronization -> delete all current entries and reimport again? Or any delta mechanism? If so, then which one?
OberstVonGatow commented 2 years ago

No problem 😉 For me it is still not a high prio thing. I would be happy if I could just export the favorites with the standard GUI export and import this weird text file in the favorites in adt. For me there would be no need for a sync function.

If a sync is planed I would prefer.

stockbal commented 2 years ago

I would not go with the FM approach you used in your Outline Plugin 😊. I always used the approach from SAP with BAdI as you can do proper checking if a given URI is reachable. All in all I think it is the cleaner approach.

fidley commented 2 years ago

I knew you will not like it :) You can check (and I do it like that in Outline Plugin) if the RFC FM is reachable from the system. But you're right, when you do it via BADI, then it is easier to find and it is clear what is the purpose of the code :)

fidley commented 1 year ago

I had today few minutes to look on this. In order to sync the information, tables SMEN_BUFFC and SMEN_BUFFI would need to be read.

I think I could read those tables using RFC_READ_TABLE, but I'm not sure if all devs will have the authorization to call it. If yes, I would avoid creation of any backend component for this part.

I would create separate folder type -> SAP GUI Favorites, always linked with specific project in order to be able to synchronize.

Hope to give more info soon after tryouts, but the structure of the export file is quite simple for the URLs and Transaction codes., so if RFC_READ_TABLE would be not an option then I can also read it from there.

hitek1878 commented 10 months ago

What about just import and export in the format file which GUI "download" and "Upload"? it would be enough i guess. So we can move favorites manually between Eclipse and GUI.

fidley commented 10 months ago

I need some time as this needs some refactoring to be done :D

fidley commented 10 months ago

1 0 63 Import Favorites From SAP GUI

fidley commented 10 months ago

Deployed to update site.

hitek1878 commented 10 months ago

What about export to GUI or to GUI file with can be manually imported :) ?

if somebody has many systems and systems are refreshed and so on exporting 1 or many favorites node directly to system GUI we want to support would be nice.

than i can keep all my "standard" favorites in 1 place and export it to any system in few clicks ( or few nodes of favorites)

fidley commented 10 months ago

If you have time, then you're welcome to do it :) I don't plan such export function on my side ;)