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

Symbol $ in ABAP

Former Member
0 Likes
790

Hi All

This is my question :Which is the objetive to use $ symbol in ABAP sentences ??

For Example :


form maintain_list tables $list_rgdir structure list_rgdir
                   using  $hide_seqnr like list_rgdir-seqnr
                          $clicked_seqnr like list_rgdir-seqnr
                          $hide_persnr like hide_persnr.

  data: selected_persnr like hide_persnr.
  selected_persnr =  $hide_persnr.

  do.
    clear:  $hide_seqnr, $hide_persnr.
    read line sy-index.
    if sy-subrc ne 0.
      exit.
    endif.
    check not  $hide_seqnr is initial.
    read table $list_rgdir with key seqnr  = $hide_seqnr
                                    persnr = $hide_persnr.
    if sy-subrc = 0.                             
      $list_rgdir-selec = sy-lisel+1(1).         
      if  $hide_seqnr = $clicked_seqnr .
      and $hide_persnr = selected_persnr.        
        if list_rgdir-selec = ' '.              
          list_rgdir-selec = 'X'.
        else.
          list_rgdir-selec = ' '.
        endif.
      endif.
      modify $list_rgdir index sy-tabix.

Regards

Gregory

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
715

SAP sometimes uses "$"fields to denote subroutine parameters or temporary fields.I don't think they have any other significance other than naming convention.

4 REPLIES 4
Read only

Former Member
0 Likes
716

SAP sometimes uses "$"fields to denote subroutine parameters or temporary fields.I don't think they have any other significance other than naming convention.

Read only

0 Likes
715

yes. that's correct - they're just normal variables SAP uses in their programs - I think they have veered away from using naming conventions like that, and are adapting more standard naming convention lately.

Read only

Former Member
0 Likes
715

Hi Gregory,

I think there is no special significance to $ symbol in ABAP sentences. I thought he/she may be used to different these $ variables apart from the other variables used in subroutine and $ variables are ONLY paramet variables.

Thanks,

Vinay

Read only

Former Member
0 Likes
715

hiii

here $ represent as variable name only.because there is no any special use of this character in abap.so its just a name of variable to show it different from others.

reward if useful

thx

twinkal