Application Development 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: 

Is there arrays or FOR loops in ABAP?

Former Member
0 Kudos

Hi everyone!

Is there an array and FOR loops in ABAP similar to the C Language?

If there is, please give example. _

Thanks a lot!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

There is no array concept in ABAP but there are field-symbols which are same as pointers in C.As for the FOR loop there is no such command in SAP/ABAP but we do have the do..while and loop...endloop commands.There is also CASE statements and if..endif commands.

Thanks,

Sandeep.

3 REPLIES 3

Former Member
0 Kudos

Hi,

There is no array concept in ABAP but there are field-symbols which are same as pointers in C.As for the FOR loop there is no such command in SAP/ABAP but we do have the do..while and loop...endloop commands.There is also CASE statements and if..endif commands.

Thanks,

Sandeep.

Former Member
0 Kudos

Hi Ricardo Caliolio Jr.

we dont have arrays here in ABAP but we can replicate the functionality of arrays using the 'do - endo' loop within 'loop - enloop'.

For vertical processing of records we go for LOOP - ENDLOOP.

For Horizantal processing of records we go for DO - ENDO.

0 Kudos

Hello,

Could you please elaborate on how to do the horizontal processing usin DO... Enddo?

Regards,

Shruti