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

Fields beginning with a $ sign

former_member201275
Active Contributor
0 Likes
1,271

Occassionally I come across fields that have a $ as first character.

For example program MIT30F12 has field $kurs and many more beginning with $.

Is there any particular reason for this? It seems when I debug it performs pretty much the same as a normal field so I am just trying to understand the logic for this.

Any pointers greatly appreciated. Thank you.

1 ACCEPTED SOLUTION
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
949

Hi Glen,

Interesting but no clue!!  Might be this is just auto generated code.

Refer http://scn.sap.com/thread/879442... still it is a view, no standard answer.

regards,

Alok

Occassionally I come across fields that have a $ as first character.

For example program MIT30F12 has field $kurs and many more beginning with $.

Is there any particular reason for this? It seems when I debug it performs pretty much the same as a normal field so I am just trying to understand the logic for this.

Any pointers greatly appreciated. Thank you.

3 REPLIES 3
Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
950

Hi Glen,

Interesting but no clue!!  Might be this is just auto generated code.

Refer http://scn.sap.com/thread/879442... still it is a view, no standard answer.

regards,

Alok

Read only

Former Member
0 Likes
949

There is no particular reason.

Variable name can have any character except + . , : ( )

Several languages have dollar sign prefixed before variable name. e.g. Javascript, Ruby etc

So there is a good chance that the person who declared variable name starting with dollar used to program in different language that had rule or convention of using dollar sign.

Read only

Former Member
0 Likes
949

There is no specific reason for it. Like Alok said, it maybe part of generated code. You can also see the similar scenario in PBO and PAI of a report program with selection screen.

Regards,

~Athreya