‎2006 Dec 12 4:08 PM
By using the function module READ_TEXT, we can get the output, say for example in output into i_line, which will be of 132 character in length. now this i_line may contain several rows. For example 5 rows of 132 charaters.
Now all i have to do is i am creating a itab_text.
types:begin of t_text,
text(60) type c,
end of t_text.
data:itab_text type standard table of t_text.
From first row of i_line 132 char, take first 60 char and append it into itab_text
From first row of i_line 132 char, take second 60 char and append it into itab_text
From first row of i_line 132 char, take remaining 12 char and
From second row of i_line 132 char take first 48 char append it into itab_text.
From second row of i_line 132 char, take 60 char (excluding first 48 char) and append it into itab_text.
From second row of i_line 132 char, take last 24 char from second row and get 36 char from the third row so that the total length is 60 chat and append to itab_text.
.
My actual aim is to fill the internal table ITAB_TEXT with 60 char in each row.
Thanks in advance for any solutions.
Thanks,
‎2006 Dec 12 4:11 PM
Pass the output of READ_TEXT to FORMAT_TEXTLINES along with 60 char length. It will give you a table with 60 char's in each line.
Regards,
Ravi
Note - Please mark all the helpful answers