cancel
Showing results for 
Search instead for 
Did you mean: 

Is Abap a "case sensitive" language or not?

yalcin_mete
Participant
0 Kudos
437

Hi Masters

I knew the Abap language as a non-case sensitive language. I created my programs with Z with this in mind. Also, 

Spoiler
In programming languages
Some programming languages are case-sensitive for their identifiers (C, C++, Java, C#, Verilog,[2] Ruby,[3] Python and Swift). Others are case-insensitive (i.e., not case-sensitive), such as ABAP, Ada, most BASICs (an exception being BBC BASIC), Common Lisp, Fortran, SQL (for the syntax, and for some vendor implementations, e.g. Microsoft SQL Server, the data itself)[NB 2] Pascal, Rexx and ooRexx. There are also languages, such as Haskell, Prolog, and Go, in which the capitalisation of an identifier encodes information about its semantics.  source : wikipedia.org

 

If I use "@WMARA-MATNR" I get an error.

yalcin_mete_0-1733122663194.png

 

If I use "@wmara-matnr" I don't get any errors.

yalcin_mete_1-1733122693188.png

 

Is Abap a "case sensitive" language or not?

 

Thanks .

 

 

View Entire Topic
Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert

wmara-matnr or
wmara~matnr ?

It is not same thing. Second is wrong independently on case.

yalcin_mete
Participant
0 Kudos
I apologize, I didn't notice. Thank you
radinator
Participant
@Tomas_Buryanek can you explain why accessing struct member via ~ (tilde) is wrong (independently on case)?
Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
@radinator ~ (tilde) is "Column selector" you can read a bit of ABAP documentation to find more details about it 🙂 Link: https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abentable_comp_select...