04-17-2009 5:14 AM
Hi Experts,
I have a situation in which I have to send a file to some external system.
The file is a fixed length file and I have been provided with the range of
acceptable ASCII character set for the external system, which comprises of
alphabet,digits and specific symbols: '-=\][';/.,!@#$%&*()_{}|:"?<>
If any fiield of the file has any character outside this range, then I have to delete it.
Looking at the huge length of the file.
Please suggest some Function Module or anything that can handle this
scenario without leaving an advese effect on the performance.
Thanks in advance.
Regards,
Amit.
04-17-2009 5:45 AM
Hi,
Check this FM SF_SPECIALCHAR_DELETE. But it can't delete ][*{}
Just try this once... till you get an exact one..
First use the FM to delete maximum special characters and write some ABAP code for the deletion of the remaining..
Edited by: Srinivas Kalluri on Apr 17, 2009 10:22 AM
04-17-2009 5:49 AM
hi,
u can search internal table fields other than this '-=][';/.,!@#$%&*()_{}|:"? pattern if u find delete the fields .
use search command or find command it will work .
04-17-2009 8:31 AM
Hi,
@Srinivas--> Thanks for your solution , but I have a different situation, I have to exclude all the characters which are not in the range provided. I don't know what are those characters.
@Katigiri---> Thanks for your solution, but using search I can find the known field. Here I have to find all those fields which are not in this range and delete them.
Experts, please suggest me a procedure to find all the fields which are not in this range . So, that I can find them and delete them.