Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 03, 2017 at 10:26 AM

    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( ).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 03, 2017 at 10:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded