Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding the quickfix with multiple includes

adrianos_campanhola
Participant
0 Likes
1,292

Hi,

I've been working with ADT for quite some time now but one thing always bothered me. In some cases I can't get the quickfix to work for method creation.

If, for example, I'm programming a module-pool and I try to follow the example of the MEGUI function group:

  • Class Definitions ending with CDX where x is a number or a letter
  • Class Implementations ending with CIX where x is a number or a letter.

I've done some tests, both involving function groups and module pools. I can get the quickfix to work if I use the default naming recomendation(Class definitions on the top include inside includes with naming L+Function Group name + DXX) that is described inside the function groups, but If I deviate from this standard in the class names, the quickfix doesn't work at all but the navigation works fine.

So, Is it due to a lack of support on the eclipse side or is a special naming convention always necessary? If so, is it only supported on function groups?

3 REPLIES 3
Read only

Former Member
0 Likes
1,252

I have had the same problem, I hope some guru can help us with this issue,

Thx all

Read only

0 Likes
1,252

Hi Adriano and Erick,

in principle those quickfixes should also work inside function groups.

I'm not sure for module pools.

For my knowledge module pools were already deprecated when  I started my career at SAP about 20 years ago.

We can investigate further if you tell me which kind of method creation you talk about.

  • Create method from call?
  • Create missing interface methods?
  • Create missing method implementation or definition?
  • ...?

Does the problem appear in in module pools only or also in function groups?

Regards,
Michael

Read only

0 Likes
1,252

Hello Michael, I've talked to Erick and he's using a namespace, we found the SAP Notes 1799896 and 1806765 that are related to the problem, but we're both on SAP Kernel Version 741 SP 11.

In his case, the code completion doesn't work at all in the function group, even variables won't show up, but the quickfix works.

I've done some testing today, and I found out that it's a very specific call that causes an error and that has a workaround: If I try to generate a static method from another class, it doesn't work properly:

Also, If I save every time before using a quickfix it works:

What seems to be working(without the workaround):

  • Generating instance and static methods inside the same class.

  • I've tested the quickfix with the variable on top(changing it to an attribute) and it works fine without saving.

  • Declaring a method and using the quickfix works(although, it doesn't warn me that an implementation of the method doesn't exist) without saving:

  • Generating a method directly from an implementation also works fine.

I also asked Erick, since his case is a bit different in the sense that he uses a namespace. In his case, the workaround for the static call doesn't work and the rest seems to be working fine

Edit:

I kept doing the development in the function group and I noticed that the create from call, and even saving it, eclipse won't auto-detect the variable types