SAP 遇到 & 展现成 <(>&<)>
https://answers.sap.com/questions/7106559/special-character-%27%27-in-smartform.html
DATA:LV_TDTAB_C132 TYPE TDTAB_C132.
CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
EXPORTING
CODEPAGE = '0000'
FORMATWIDTH = 128
LANGUAGE = SY-LANGU
TABLETYPE = 'ASC'
TAB_SUBSTITUTE = ' '
LF_SUBSTITUTE = ' '
REPLACE_SYMBOLS = 'X'
REPLACE_SAPCHARS = 'X'
IMPORTING
C_DATATAB = LV_TDTAB_C132
TABLES
itf_lines = lt_lines
EXCEPTIONS
INVALID_TABLETYPE = 1
OTHERS = 2
.
posted on 2021-10-31 10:47 TorranceZhao 阅读(39) 评论(0) 编辑 收藏 举报