Quantcast
Channel: SCN : Popular Discussions - ABAP in Eclipse
Viewing all 1215 articles
Browse latest View live

Strange quick fix suggestion for method implementation

$
0
0

Hi all,

 

I'm trying to follow the example from the REST How-to. When implementing the resource application class (chapter 2.3.2), I've noticed something I do not understand. I've created a new class (using AiE of course), set the base class and then used the quick fix to generate the missing methods. The quick fix then generated method implementations for REGISTER_RESOURCES and GET_APPLICATION_TITLE -- which are both abstract methods of the superclass CL_ADT_DISC_RES_APP_BASE, so this is not surprising. In addition to that, a redefinition of IF_REST_APPLICATION~GET_ROOT_HANDLER was generated, and I don't understand why. This method is implemented by CL_ADT_RES_APP_BASE, so there's no obvious reason to generate a redefinition. I figured that maybe some glitch occurred and deleted the method. I then added the redefinition for  IF_ADT_REST_RFC_APPLICATION~GET_STATIC_URI_PATH and opened the quick fix to create the method body. I was surprised by this suggestion:

 

 

Pressing Ctrl+1 while focused on the class header yields a similar result:

 

 

The warning that causes the yellow underline of the method looks strange as well:

 

 

It shows GET_STATIC_URI_PATH twice, but the quick fix still suggests GET_ROOT_HANDLER. Did I trigger some kind of bug there?

 

Thanks

  Volker


Code generation: UML to ABAP

$
0
0

Hello all,

Could you please tell me if it is working on an feature/eclise plugin to generate ABAP code based on UML class diagrams?

Thanks,

Catalin Chiuaru

Syntax check for a particular version of ABAP

$
0
0

Hi!

 

Is there any way to check the ABAP code, if it is compatible with a particular ABAP version? It happens, that our customers have older ABAP release in their system. However, as we want to use Eclipse (and of course like the new ABAP language features) we program on our newer system. Later we have problems with transports, because customers system is not able to compile the code. So is there any way to set the syntax check, that it will proof the code, say, for ABAP version as it is in SAP_BASIS 700?

 

I guess something like this doesn't work in the NetWeaver, but there is a language definition, according to which Eclipse is doing all the syntax highlighting and quick syntax checks, am I right? Would it be possible to change this definition (or set as project specific parameter), so that we can see potential problematic places? This would be REALLY very helpful!

 

Thanx for information!

O.

Error occurred when open data preview of CDS in eclipse

$
0
0

Hi all,

I have developed one CDS view in eclipse, when I try to preview the data of this CDS view, I received errors from eclipse as attached file, but records are shown and the view is looks fine as well in the ABAP system, is there any body knows why the errors are coming out and how to solve it?

 

Cheers,

Victor

UML diagrams in ADT

$
0
0

Hello everybody,

 

Does anybody know any ways to build UML diagrams directly from Eclipse?

 

The only way to export UML I know is to do this directly from UML_CLASS_DIAGRAM report .

 

Thanks.

ADT plugins error for Eclipse Luna

$
0
0

Hi,

 

I would like to start experimentating with ABAP in Eclipse Luna.

I have download the ADT for Eclipse Luna, because I cannot connect to the internet directly.

 

I am using this file with ADT plugings SAPBASISAIE00_7-80000035.zip

 

But I am getting this error:

 

Cannot complete the install because one or more required items could not be found.

  Software being installed: ABAP Core Development Tools 2.31.7 (com.sap.adt.core.feature.group 2.31.7)

  Missing requirement: CDS DDL Source Tools 2.31.6 (com.sap.adt.cds.ddl.ui 2.31.6) requires 'bundle org.eclipse.emf.transaction [1.4.0,2.0.0)' but it could not be found

  Cannot satisfy dependency:

    From: ABAP Development User Guide 2.31.7 (com.sap.adt.abapdev.guide.doc.user.ext 2.31.7)

    To: bundle com.sap.adt.docu.ui [2.26.0,3.0.0)

  Cannot satisfy dependency:

    From: ABAP Core Development Tools 2.31.7 (com.sap.adt.core.feature.group 2.31.7)

    To: com.sap.adt.abapdev.guide.doc.user.ext [2.31.7]

  Cannot satisfy dependency:

    From: ABAP Online Help UI 2.31.6 (com.sap.adt.docu.ui 2.31.6)

    To: bundle com.sap.adt.cds.ddl.ui [2.26.0,3.0.0)

 

Can some one help me solve this problem.

When open the Eclipse has an error

$
0
0

Hello everyone,

 

After i finish the installation and open the Eclipse, I have met an error like below:

 

ABAP communication layer is not configured properly. This might be caused by missing Microsoft Runtime DLLs VS2010. Consult the installation guide or download page for further details on how to install this component.

Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: C:\TONY\eclipse-SDK-3.7.2-win32-x86_64\eclipse\configuration\org.eclipse.osgi\bundles\316\1\.cp\lib\sapjco3.dll: Can't find dependent libraries

 

 

Does anyone tell me why?(Microsoft Runtime DLLs VS2010  have already installed in the system or anyboby could give me the link to down the

Microsoft redistributable runtime DLLs VS2010 SP1 (x86)).

 

 

 

 

Thanks and best regards,

Tony

REST Tutorial: Unclear on Resource Application Class

$
0
0

Hi all,

 

I'm tring to follow the REST Tutorial, and I may have a slight problem understanding the implementation in chapter 2.3.2 (pages 11/12). There's a note before the code that says

Here, the first call of REGISTER_DISCOVERABLE_RESOURCE is shown as an example for a discoverable resource. You can uncomment the code at first since there is no description in the tutorial of how to implement the collection resource Z_CL_##_SFLIGHT_RES_COL.

The first call does not refer to the class Z_CL_##_SFLIGHT_RES_COL but to CL_SFLIGHT_ADT_RES_CARRIERS, though, and I do not have that class in my 7.31 SP 13 system. There is no commented code, so I suppose that I should comment some code, but which call? The second call fills the local variable COLLECTION, so if I comment that out (which I probably should as it refers to the _RES_COL class mentioned in the note), I'll get a short dump because the reference will be initial.

 

Maybe I've been staring at this for too long, but I can't make head not tail of it. Am I too blind to see the obvious or is there an slight flaw in the document?

 

Thanks

  Volker


Handling issue with quick fixes.

$
0
0

Hello,

 

while going throught the REST tutorial, I noticed a small difference in the handling between the JDT Java editor and the ADT ABAP editor. It's not much of a difference, but it's one of the small grains of sand in the gearbox

 

When you use a quick fix in the JDT Java editor to create a missing local variable, you can do so anywhere in the line. I prefer to complete the method call first and then immediately press Ctrl+1 while the cursor is still at the end of the line:

-- Ctrl+1 -->

 

As you can see, the cursor jumps to the beginning of the item to be fixed, which makes sense - I explicitly asked for a fix, so find something to fix in the vincinity.

 

In the ADT editor, things are a bit different at the moment:

 

 

The cursor does not move when I press Ctrl+1. Even if there is something to be fixed in the current line, I first need to navigate to the statement in question manually in order to use the quick fix.

 

Would it be possible to adapt the behaviour of the ADT ABAP editor in a future version so that this additional navigation step is no longer necessary?

 

Thanks

  Volker

Incomplete type inference in quick fix?

$
0
0

Hi all,

 

I'm implementing the examples from the REST How-To and have come across the following behaviour: I've created the basic classes and want to add the method REGISTER_RESOURCES as described in section 2.3.2. Now I have the following code:

 

  METHOD register_resources.    registry->register_discoverable_resource(      EXPORTING        url             = '/restflights/01/carriers'        handler_class   = 'CL_SFLIGHT_ADT_RES_CARRIERS'        description     = 'Carriers'        category_scheme = 'http://www.mycompany,com/adt/categories/examples/flights'        category_term   = 'carriers' ).    collection = registry->register_discoverable_resource(        url             = '/restflights/01/flights'
*        accepted_types  =
*        handler_class   =
*        parameter       =        description     = 'Flights'        category_scheme = 'http://www.mycompany,com/adt/categories/examples/flights'        category_term   = 'flights'    ).  ENDMETHOD.

 

Naturally, the editor will complain about collection not being defined. If I use the quick fix to declare a local variable, I get

 

DATA: collection TYPE any.

which is not quite what I expected - I think this should be a TYPE REF TO IF_ADT_DISCOVERY_COLLECTION since this is what the method returns. The backend is SAP_BASIS/ABA 7.31 SP 13. Is this a known issue?

 

Thanks

  Volker

Is it possible to change display names for tabs with views?

$
0
0

Hello all,

 

does anybody know, if there is a possibility to change how view names are displayed in tab-titles in Eclipse? My current format looks like this:

 

[System] Component_Name | View_Name

 

As there are usually more views in the component, which are changed at the same time and the name is truncated, all the tabs look the same (see the screenshot).

ViewName.png

I would prefer if the View Names were displayed first and than the component name. The system name could be omitted completely, as I usually work in one development system. This way instead of having 5 tabs all displayed as "[WGT] ZLE_WINGS_WD_H" I would have: "CONFIRM | ZLE_WINGS", "INFO | ZLE_WINGS_WD_H" etc.

 

Is it possible to set it somewhere? Or is this a feature to request?

 

Thank you in advance,

have a nice day!

O.

ABAP in Eclipse in HANA Studio

$
0
0

Hello,

I have seen several blogs about ABAP in Eclipse. The prerequisites always mention Eclipse release 3.6 or 3.7.

I have noticed that the HANA Studion is based on  Eclipse 3.8.

Can I install the ABAP for Eclipse Plugin in the HANA Studio or do I have to install a second IDE with the version 3.6 or 3.7?

 

Thanks,

Michael

Missing authorization for new project

$
0
0

Hey folks,

 

I have a problem getting started with abap in eclipse.

When I want to start a new project I receive the following message, when trying to connect to the system:

User <user> is not authorized to access system <sid> via ABAP in Eclipse (No authorization to access the resource  /sap/bc/adt/compatibility/graph.)

 

I have the done all the things described in the following blog:

Enabling ABAP in Eclipse

 

Can someone help me?

 

Transaction SU53 was not helpfull.

Shortcuts or favorites list for transactions

$
0
0

Hi all,

 

I'm looking for an easy way to start regularly used SAP GUI transactions from within ABAP in eclipse. Currently I know three ways to execute a transaction:

 

1. Open any development object in the integrated SAP GUI and enter the transaction in this SAP GUI session.

2. Search for development objects (<ctrl>+<shift>+a) and search for the transaction.

3. Create a custom run configuration in the run menu for a transaction.

 

However, none of these approaches is really what I'm looking for. Is there any better approach to execute SAP GUI transactions? Maybe something like the favorites list in SE80 or even better a keyboard shortcut that allows me to enter and execute any transaction int eh context of the current project?

 

Christian

ADT - Unhandled event loop

$
0
0

Hi,

 

I've been trying to use some of the versions of ADT. I've tried kepler and luna so far and in every one of them I usually get the following error:

 

ScreenHunter_25 Oct. 07 11.39.png

and then I get prompted to close eclipse due to this 'SWT error'.

 

this is a clean install of eclipse(both Juno 4.4 and Kepler 4.3), I just installed and downloaded ADT following the instructions here

 

I've looked around the web, seems to be a memory problem in eclipse. I've tried raising the maximum memory that it can use to 1gb and I still get this error.

 

Some other information that might be usefull:

 

Running Windows 7 64 Bits.

Kepler and Juno are x64.

Java 1.7.0

 

Any Ideas?


Eclipse Plugin for the Debug Perspective

$
0
0

Hello,

 

I try to write an Debugger Plugin for AiE. My Target is, to read some Informations of different Variables (Internal Tables, References etc), match this Infos, and show its in a tree.

But i'm not really successfull.
I read the "Getting started..." Document from: http://scn.sap.com/docs/DOC-59944

and the linked Blogs from Martin Steinberg and Christian Drumm.

 

But my Problem is a little bit specially, because i want to use my Plug-In in the Debug Perspective...
For Example: When i try the "Hello World" Plugin from Martin Steinberg: http://scn.sap.com/docs/DOC-54728

it works.
I have the "Hello World" Plug-In Project in Eclipse, when i start it, an second Eclipse Instance is starts.

In the Second Eclipse instance i have the new Menu-Button for the Plugin, and can start the plugin. => Everything is okay.

 

But: When i connect to a Abap Project (in the second eclipse), and start the debugger, the second Eclipse freeze

and hangs up.... Have someone an Idea to solve this Problem?

I think its a Problem of the second Eclipse Instance and ADT.

 

What i already tried:

When i use not an ABAP Project (in the second eclipse), and use a Java Project, and start the Debugger for Java,
the second Eclipse hangs up too.   => i thought its a generally Eclipse Problem.

 

BUT: I tried a complete new Eclipse Installation (Without installed ADT), and with this eclipse, i can start my Plug-In Project =>

Second Eclipse Instance starts, and doesn't hang up when i start the Debugger there.

 

I installed the Eclipse some times again (with and without ADT) and i only have the Problem when ADT is installed.

 

P.S. I use Luna and the newest ADT-Version.

 

Have someone an Idea?

Regards

Stefan

Can't create ABAP Projects anymore

$
0
0

Hi,

 

i can't create ABAP projects in my AiE workspace anymore. I'm getting the following error message.

 

2014-12-10 09_50_44-Clipboard.png

 

2014-12-10 09_56_07-Java EE - Eclipse.png

I'm on eclipse Luna (64 Bit) and ADT 2.36. The same issue occurs when i install a plain new eclipse and ADT 2.36 and using a new

workspace. The same for my 32 Bit Installation.

 

I can't say for which configuration it worked the last time. Recently i did a upgrade to ADT 2.36. But I can't say whether it's a coincidence. With existing ABAP projects i can use ADT without problems.


Does anyone have an idea on what could be the problem?

 

Thanks.

 

Regards Christian

Add message class

$
0
0

Hello, is it possible to add a message class to a global class in Eclipse? Thanks for help.

Attached Javadoc in ADT SDK is displayed only for some classes

$
0
0

Hi everybody!

 

I'm trying to explore the ADT SDK a bit. I have attached Javadoc to the 3 libraries I'm using in my project (com.sap.adt.project.ui_2.36.1.jar, com.sap.adt.project_2.36.1.jar, com.sap.adt.sapgui.ui_2.36.2.jar) as it is described in http://scn.sap.com/docs/DOC-59944 (Getting started with the ABAP in Eclipse SDK).

The problem I'm facing is that for some classes (like AdtSapGuiEditorUtilityFactory) the Javadoc is displayed correctly:

2014-12-10 08_16_15-Plug-in Development - TranLauncher_src_tranlauncher_views_TranLauncherView.java .png

But for others (like IAdtSapGuiEditorUtility), even thought these are in the same package, it is not displayed;

 

2014-12-10 08_18_56-Plug-in Development - TranLauncher_src_tranlauncher_views_TranLauncherView.java .png

I just get the message: Note: The Javadoc for this element could neither be found in the attached source nor the attached Javadoc.

 

Is there something I forgot to set up?

 

Thanx for help!

Have a nice day!

Ondrej

When open the Eclipse has an error

$
0
0

Hello everyone,

 

After i finish the installation and open the Eclipse, I have met an error like below:

 

ABAP communication layer is not configured properly. This might be caused by missing Microsoft Runtime DLLs VS2010. Consult the installation guide or download page for further details on how to install this component.

Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: C:\TONY\eclipse-SDK-3.7.2-win32-x86_64\eclipse\configuration\org.eclipse.osgi\bundles\316\1\.cp\lib\sapjco3.dll: Can't find dependent libraries

 

 

Does anyone tell me why?(Microsoft Runtime DLLs VS2010  have already installed in the system or anyboby could give me the link to down the

Microsoft redistributable runtime DLLs VS2010 SP1 (x86)).

 

 

 

 

Thanks and best regards,

Tony

Viewing all 1215 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>