Skip to Content
author's profile photo Former Member
Former Member

Symbol $ in ABAP

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 16, 2008 at 01:42 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 01:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 01:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.