2007 Jun 26 2:47 AM
Hi,
I am facing an error that it is not a internal table or structure when moving an itab to itab1 using the code
data: begin of it occurs 0,
.
end of it.
data : itab like it occurs 0 with header line.
data : begin of itab1 occurs 0,
.
end of itab1.
loop at itab.
Move-corresponding itab to itab1.
endloop.
so help me to solve this issue.
Thanks,
Deesanth
2007 Jun 26 2:57 AM
I just used your code and it is working fine in my system.
data: begin of it occurs 0,
test TYPE char4,
end of it.
data : itab like it occurs 0 with header line.
data : begin of itab1 occurs 0,
test TYPE char4,
test1 TYPE char5,
end of itab1.
itab-test = 'abcd'.
APPEND itab.
loop at itab.
Move-corresponding itab to itab1.
APPEND itab1.
endloop.
WRITE itab1.
Regards,
Atish
Hi Deesanth,
You should not get that error. there must be something wrong in your code.
Please paste your whole code here.
Regards,
Atish
2007 Jun 26 2:56 AM
See the changes with comments
data: begin of it occurs 0 with header line, " include header line here
.
end of it.
data : begin of itab1 occurs 0,
.
end of itab1.
loop at it. " change itab to it
Move-corresponding it to itab1.
endloop.Regards
Gopi
2007 Jun 26 2:56 AM
Hi Deesanth,
You should not get that error. there must be something wrong in your code.
Please paste your whole code here.
Regards,
Atish
2007 Jun 26 2:57 AM
I just used your code and it is working fine in my system.
data: begin of it occurs 0,
test TYPE char4,
end of it.
data : itab like it occurs 0 with header line.
data : begin of itab1 occurs 0,
test TYPE char4,
test1 TYPE char5,
end of itab1.
itab-test = 'abcd'.
APPEND itab.
loop at itab.
Move-corresponding itab to itab1.
APPEND itab1.
endloop.
WRITE itab1.
Regards,
Atish
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |