gram77
asked on
ABAP : Reading itab and displaying it's values
I have the following ABAP program.
The program splits a line of text by space and fills variables and an internal table itab.
How to read the internal table in a loop and display it's values.
REPORT z_test110.
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string,
itab TYPE TABLE OF string,
text TYPE string,
wa LIKE LINE OF itab.
text = `Where do you want to go today`.
SPLIT text AT space INTO: str1 str2 str3,
TABLE itab.
The program splits a line of text by space and fills variables and an internal table itab.
How to read the internal table in a loop and display it's values.
REPORT z_test110.
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string,
itab TYPE TABLE OF string,
text TYPE string,
wa LIKE LINE OF itab.
text = `Where do you want to go today`.
SPLIT text AT space INTO: str1 str2 str3,
TABLE itab.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.