friends,
When downloading the bank data into the text file we are getting some extra spaces in the downloaded file. Can you give some idea on how to get rid of those spaces.
Some useful information:-
actual file is having 122 chars which includes 2 chars of RAW field as delimeter. the data comes as 128 chars in each loop. so if the file ends up before filling the 128 chars the rest of the chars are filled with spaces.
I used search statement to find the delimeter and used LEN (len = sy-fdpos-2) as the number of chars to be transfered to the file instead of total 128. But this sometimes getting failed.
here is the example: i have 102 records of each 128 chars. so the total length goes to 13056
when it gets converted it is coming into 107 rows with 122 chars each ... i.e., 13054. so the delimeter goes to next line. then the
sy-fdpos will be < 2. which leaves LEN as a negative value. " Run time error " Greatly appretiated and rewarded any help. Thanks a lot.
In each record i can see ## at the end of each record (122) while debuggind. is there any way that we can split the text at that pos ?
Regards,
Sree.