Thursday, March 15, 2018

Removing '#' or '##' in uploaded file in sap

Sap shows non-printable characters as '#', we can not read it as character "#", to remove this from field value we can use cl_abap_char_utilities=>cr_lf.

data :
c_#(1TYPE VALUE cl_abap_char_utilities=>cr_lf."Directly use this constant  for ##

Write a code to split the value, declare junk as a string.

SPLIT lv_amount AT c_#  INTOlv_amount junk.


No comments:

Post a Comment