replacing special characters with space in SAP ABAP ?
I have a description “description with tab in it”. It does have tab in it. sap abap online courses converts this tab into # so its displayed as “description with#tab in it”. I want this to be replaced with SPACE. I want to write a code where it checks for valid characters and anything that isint valid replace with space.
I have the code below however it doesnt do the check for all the characters.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
IN cs_orderadm_h_badi-description WITH ` `.
I have thought of using constant an writing out every valid character as a constant but i need a better way to do this.
Any help or advise is appreciated. Keep in mind that this is a conversion specific to SAP ABAP. Thanks