Application Development 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: 

using this (~) symbol in select query ?what does this mean?

Former Member
0 Kudos


Suppose

SELECT   mapl~vbeln INTO IT_TAB mean what? also is this obsolete practice or still existing?

Thank you for your time and answers in advance !

5 REPLIES 5

Former Member
0 Kudos

Hi,

The tilde(~) is used in SELECT statements when doing INNER JOINs or LEFT OUTER JOINs,  in the field lists, the join conditions, as well as in the WHERE clause.

Still existing..

Former Member
0 Kudos

Dear Anajai

Tilde(~) is used in Join query i.e where data come from more then one table.

Hiphen ( - ) is used in normal queries.

Regards

Parveen

Former Member
0 Kudos

It is used when alias name is used instead of actual table name. You don't have to use join in order to use alias.

See ABAP Keyword Documentation and this:

  1. DATA lv_cityfrom TYPE spfli-cityfrom.
  2. SELECT SINGLE cityfrom FROM spfli AS
  3.   INTO lv_cityfrom WHERE a~carrid EQ 'AA'.
  4. IF sy-subrc EQ 0.
  5.   WRITE lv_cityfrom.
  6. ENDIF.

/.

Former Member
0 Kudos

Hi,

The Tilde(~) symbol is used to represent the field of the respective table while you are using joins in your select statement for fecthing the data from database.

Regards,

Chakradhar.

raymond_giuseppi
Active Contributor
0 Kudos

Read column selector in online help (accessible thru SELECT - join documentation)

Regards,

Raymond