2006 Jun 09 1:53 AM
Hello,
A syntax question that I have.
I have seen example of this type of code many times.
DATA:
asdf TYPE /aaa/bbb.
CALL METHOD some_object->some_method
EXPORTING
some_var = asdf[].
What are angle brackets here for?
Thank you.
Hello,
A syntax question that I have.
I have seen example of this type of code many times.
DATA:
asdf TYPE /aaa/bbb.
CALL METHOD some_object->some_method
EXPORTING
some_var = asdf[].
What are angle brackets here for?
Thank you.
2006 Jun 09 1:54 AM
2006 Jun 09 1:56 AM
2006 Jun 09 2:00 AM
Header line is like a built in work area in which a line of the interal table is read. When you loop at an internal table, the line of data needs to go somewhere, if you have declared with a header line, no problem reading like this.
data: itab type table of string with header line.
Loop at itab.
Write:/ itab.
endloop.If you have not declared with a header line, then you must declare a work area to put the data into.
data: itab type table of string.
data: wa type string.Loop at itab into wa.
write:/ wa.
endloop.Remember, declaring an internal table like this, the header line is implied.
Data: begin of itab occurs 0,
fld1 type string,
end of itab.Most important, header lines are illegal in ABAP OO. So get used to not using them.
Regards,
Rich Heilman
2006 Jun 09 1:54 AM
asdf[] imply the contents of an itab asdf.
Regards,
Suresh Datti
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |