Today I'm going to explain the difference between Program and System variables.
The program variables are all data declare in the top of the main program or in the include top of it.
The System variables are data internal declare in the system and it's structure is SYST.
An example of program variables, it shows you in the following image:
Example of Program Variables |
In the system variables, we have the following structure:
here, the most importann are: Index, Tabix, subrc, and Langu.
SY-INDEX: Indicates in which row of the table we are.
SY-TABIX: Indicates how many line a table has.
SY-SUBRC; Indicates if the instruction like select, if, where, an other was successful.
Sy-LANGU: Indicates in which language the user is logged.
I hope, this information helps you.
I hope, this information helps you.
Regards,
Rober.
PS: If you have any comments or any doubt about something of abap, debugging or you want a tip. Let me know it.