cancel
Showing results for 
Search instead for 
Did you mean: 

what does underscore(_) before the field in abap?

Former Member
0 Kudos

Hi All,

I am checking some of the standard programs and i found (_) before the fields or methods and I am curious to know what does underscore(_) before the field in abap?

can anyone of you help me on this?

Regards,

Subhanshu

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor

There is no formal syntax meaning. (at least not that I know of).

It's often used to indicate something internal or a copy. So a public interface update_foo( ) might be implemented as: do some validation and call private method _update_foo( ).

Former Member
0 Kudos

Hi Mike,

Thanks for the explanation 🙂

Regards,

Subhanshu

Answers (1)

Answers (1)

Former Member

Hi Subhanshu,

Greetings!

It absolutely do not posses any special meaning.

The only point is that generally it is seen when the method are defined private and for internal use.

No special meaning anyways just there naming convention.

Regards,

Ankit Mahajan

Former Member
0 Kudos

Hi Ankit,

Thanks for the explanation 🙂

Regards,

Subhanshu