Application Development and Automation 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: 
Read only

What happens internally when executing Do..enddo?

former_member182805
Active Participant
0 Likes
540

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.

1 REPLY 1
Read only

christian102094
Participant
0 Likes
493

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.