2022 Feb 11 6:41 AM
In ABAP Development Tools, the quick assist tool can propose the creation of a new method based upon the context in the code. This is a nice feature.
Is there a means to influence the naming convention applied to the parameters? I'd dearly like to remove the Hungarian notation if that were possible.
I've looked through settings, and nothing leapt out at me. Perhaps some clever community member has already looked at this and can provide some guidance.
Greetings from Australia.
2022 Feb 14 7:05 PM
Hi Andrew,
AFAIS the work is done in class CL_ART_CONTRIB_4_MISSING_METH and its local class LCL_METHOD_CALL. Have a look at method FILL_RETURNING. Note R_RESULT is the hard-coded default value.


Should be possible to influence naming in an enhancement.
Chris
In ABAP Development Tools, the quick assist tool can propose the creation of a new method based upon the context in the code. This is a nice feature.
Is there a means to influence the naming convention applied to the parameters? I'd dearly like to remove the Hungarian notation if that were possible.
I've looked through settings, and nothing leapt out at me. Perhaps some clever community member has already looked at this and can provide some guidance.
Greetings from Australia.
2022 Feb 11 12:54 PM
I'd say there's nothing at all currently, but who knows.
Maybe it can be easily changed by enhancing the corresponding ABAP code?
2022 Feb 14 6:12 PM
When it comes to Hungarian notating, the use of
i_
e_
c_
r_result
For importing, exporting, changing and returning are not discouraged in ABAP clean code. What is discouraged is the use notation to hint at type, instead of use.
I did some digging. It appears this is done in the back end.
2022 Feb 14 7:05 PM
Hi Andrew,
AFAIS the work is done in class CL_ART_CONTRIB_4_MISSING_METH and its local class LCL_METHOD_CALL. Have a look at method FILL_RETURNING. Note R_RESULT is the hard-coded default value.


Should be possible to influence naming in an enhancement.
Chris
2022 Feb 15 2:16 AM
Hi Matthew - thanks for that reference back to the ABAP clean code. It wasn't so much the importing, exporting or (shudder) changing , but rather the annotation of the result.
For those looking for further resources around ABAP clean code, a couple of links:
the styleguide cleanABAP Clean ABAP
and the book Clean ABAP book