2007 Apr 16 11:41 AM
Hello Everyone,
I have afile format as followes.
A B C100 200 300
100 200 100
200 100 300
300 200 100.
Now i have declared a internal table with deep structure..
data: begin of x_data occurs o,
X like 100,
Y like 200,
Z like 300,
end of x_data.
data: begin of i_data,
M like A,
N like B,
O like C,
it_data like table of x_data,
end of i_data.
Now how i can upload given file so tht al the records are in deep structure i_data.
Regards
2007 Apr 16 11:54 AM
Hi..
better take an itab of field 1 of type string.
<b>data:
begin of itab occurs 0,
line type string,
end of itab.</b>
now upload data into itab using <b>GUI_UPLOAD</b>.
later move ur data to respective fields into ur itabs.
Hello Everyone,
I have afile format as followes.
A B C100 200 300
100 200 100
200 100 300
300 200 100.
Now i have declared a internal table with deep structure..
data: begin of x_data occurs o,
X like 100,
Y like 200,
Z like 300,
end of x_data.
data: begin of i_data,
M like A,
N like B,
O like C,
it_data like table of x_data,
end of i_data.
Now how i can upload given file so tht al the records are in deep structure i_data.
Regards
2007 Apr 16 11:54 AM
Hi..
better take an itab of field 1 of type string.
<b>data:
begin of itab occurs 0,
line type string,
end of itab.</b>
now upload data into itab using <b>GUI_UPLOAD</b>.
later move ur data to respective fields into ur itabs.
2007 Apr 16 12:00 PM
Hi,
Try to upload data in itab having fileds like A B C100 200 300, process data using loop statement considering blank uploaded in ABC if any.
May be this iwll help you
2007 Apr 16 12:09 PM
u have to first read the data in a internal table with single field
then loop at that table sending the fields to WA which is defined as a string
data wa like string
eg loop at itab into wa.
now use move corresponding statement to move the data from wa to ur deep structured internal table
eg move-correspondoing wa+ 0(3) to i_data-m
and so on...
2007 Apr 17 1:22 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |