2015 Sep 22 5:47 PM
Hi Gurus,
When a Do,Enddo loop is executed, how does SAP internally execute the code. For example,
Report Demo.
Do 5 times.
Write /"SAP".
Enddo.
ABAP is an imperative language - this means we only tell the system what to execute, not how to exeute it.
To contrast with C,to execute the same functionality in C, we would have to also have to tell the system how to execute the code:
#include<stdio.h>
void main()
{
int i;
for(i=0,i<=5,i++)
{
printf(/n"SAP");
}
}
What built in service gets executed when a do...enddo loop is executed?
Thanks for the help.
Hi Gurus,
When a Do,Enddo loop is executed, how does SAP internally execute the code. For example,
Report Demo.
Do 5 times.
Write /"SAP".
Enddo.
ABAP is an imperative language - this means we only tell the system what to execute, not how to exeute it.
To contrast with C,to execute the same functionality in C, we would have to also have to tell the system how to execute the code:
#include<stdio.h>
void main()
{
int i;
for(i=0,i<=5,i++)
{
printf(/n"SAP");
}
}
What built in service gets executed when a do...enddo loop is executed?
Thanks for the help.
2015 Sep 22 7:45 PM
I think you have mixed the concepts. From this post:
Declarative programming is when you say what you want, and imperative language is when you say how to get what you want.