Skip to Content

Is there arrays or FOR loops in ABAP?

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2007 at 08:08 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2007 at 08:10 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.