Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete all occurances of any character outside a given set in a string

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question