6

I found this data declaration in ABAP code. Does anyone know what this % means?

Data: %rlmob type str_mob 
gkubed
  • 1,849
  • 3
  • 32
  • 45

1 Answers1

12

Nothing more than any other character, outside of ABAP Objects ("The name must start with a letter or an underscore (_). Only outside of ABAP objects can the name also start with a different character."). It's recommended to use ABAP objects, so % is deprecated. Historically it's also often used by SAP for naming "system" (i.e. very low-level SAP programs) variables, types, and any other kind of symbols.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
  • 3
    The `%` at the start is a benign example! Outside of ABAP Objects, far worse identifiers are allowed, like a structure named `_` that has a component named `----`. – ACuriousMind Oct 05 '18 at 21:53