Skip to Content
author's profile photo Former Member
Former Member

Code completion not working for local classes

Hello, everyone.

Need help with a weird code completion issue that I'm facing since upgrade to SAP GUI 7.40.

The problem is the following. I'm writing a report with a set of local classes; each class resides in its own include. Say, I have LCL_A in ZINCL_A and LCL_B in ZINCL_B. I try to use LCL_A from LCL_B, but the code completion does not "see" the LCL_A's members (neither methods nor its parameters), so I have to type everything manually.

The same happens if I put definition and implementation in separate includes: in implementation include the code completion does not show any of the class members (even method parameters).

I've updated client to patch level 7 (the latest one), but that does not seem to help. Am I missing something?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2016 at 09:20 AM

    Solved it.


    What I was missing is the place where my includes are "included". I used to organize includes as following:


    REPORT zz_rep.


    INCLUDE zz_rep_top. " TOP include

    INCLUDE zz_rep_cl_def_a. " LCL_A definition

    INCLUDE zz_rep_cl_def_b. " LCL_B definition

    ...

    INCLUDE zz_rep_cl_imp_a. " LCL_A implementation

    INCLUDE zz_rep_cl_imp_b. " LCL_B implementation


    This works fine in 7.30, but in 7.40 all global definitions should go to TOP-include, in this case code completion will process them properly. So, these lines:


    INCLUDE zz_rep_cl_def_a. " LCL_A definition

    INCLUDE zz_rep_cl_def_b. " LCL_B definition


    need to be moved to the TOP-include.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2016 at 07:34 AM

    Hi Alex,

    Once you got to SE38 editor --> click on this icon

    Go to code completion --> check on the check boxes indicated and try reducing the seconds to lower value.

    Regards,

    Thanga


    1.jpg (8.3 kB)
    1.jpg (60.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.