2007 Sep 27 10:31 AM
Hi Folks,
I am dowloading some data from an Internal table to textfile using gui_download function module.
I am getting the data as
TEST 1234 XYSJH
Is it possible to get the text as
TEST
1234
XYSJH.
Thanks,
K.Kiran.
2007 Sep 27 12:34 PM
make changes as shown below and split data into a new internal table, and download the new internal table.....
data:
begin of itab occurs 0,
data(255),
end of itab,
itab2 like table of itab with header line.
itab-data = 'TEST 1234 XYSJH bkgbxkshg hhkdwhd'.
append itab.
loop at itab.
split itab-data at SPACE into table itab2.
endloop.
loop at itab2.
write:/ itab2.
endloop.
Reward points if useful, get back in case of query...
Cheers!!!
make changes as shown below and split data into a new internal table, and download the new internal table.....
data:
begin of itab occurs 0,
data(255),
end of itab,
itab2 like table of itab with header line.
itab-data = 'TEST 1234 XYSJH bkgbxkshg hhkdwhd'.
append itab.
loop at itab.
split itab-data at SPACE into table itab2.
endloop.
loop at itab2.
write:/ itab2.
endloop.
Reward points if useful, get back in case of query...
Cheers!!!
2007 Sep 27 10:35 AM
2007 Sep 27 10:37 AM
2007 Sep 27 10:38 AM
hi
u r sending the value for a row
material werks meins
test 1234 xysjh
u can send the material if u want like this
material werks meins
test - -
1234 - -
xysjh - -
the output is going to the table so we can do those are correct materials
but those are not materials it will go wrong results..........
2007 Sep 27 10:42 AM
Hi
there is no way to put like that
you can use the above line of code for only to separate the fields with tab delimited space
reward if usefull
2007 Sep 27 10:47 AM
Hi,
No you cant make it. because whatever you are downloading the data as such row by row alll your internal table fields will be treated as row.
so its not possible. But after downloaded we can change the data as what ever you required.
Thanks
Yogesh
2007 Sep 27 10:52 AM
hi,
sap doesnt provide any option for your requirement
if u want like that ... download the data file as the format that is generally downloaded...
then write a z.program to convert data as format as you like ....
reward if useful
regards
sree
2007 Sep 27 12:34 PM
make changes as shown below and split data into a new internal table, and download the new internal table.....
data:
begin of itab occurs 0,
data(255),
end of itab,
itab2 like table of itab with header line.
itab-data = 'TEST 1234 XYSJH bkgbxkshg hhkdwhd'.
append itab.
loop at itab.
split itab-data at SPACE into table itab2.
endloop.
loop at itab2.
write:/ itab2.
endloop.
Reward points if useful, get back in case of query...
Cheers!!!
2007 Sep 29 5:42 AM
Tripat,
Thanks alot.I had followed your logic and tweaked my code a bit and here and there and BINGO I was able to generate a text file in an format as required.
Thanks once again,
K.Kiran.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |