2016 Feb 16 7:02 AM
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.
2016 Feb 16 9: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.
2016 Feb 16 7: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
2016 Feb 16 7:53 AM
Thank you for looking into this, but things are not that easy. The code completion is on, and it works fine when, e.g., the whole class code (definition and implementation) is in one include. But once I move definition to a separate include, code completion does not show class memebers in implementation section any more. Local and global types/variables are still visible.
2016 Feb 16 8:09 AM
2016 Feb 16 9: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.