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

ABAP Development Tools: Define Method Signature

AndrewBarnard
Contributor
2,923

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.

2022-02-11-17-36-40.png

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.

1 ACCEPTED SOLUTION
Read only

ChristianGnter
Contributor
2,623

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.

2022-02-11-17-36-40.png

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.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,623

I'd say there's nothing at all currently, but who knows.

Maybe it can be easily changed by enhancing the corresponding ABAP code?

Read only

matt
Active Contributor
2,623

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.

Read only

ChristianGnter
Contributor
2,624

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

Read only

AndrewBarnard
Contributor
0 Likes
2,623

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