SAP REPLACE STRANGE CHARS
来源:互联网 发布:陈立杰 知乎 编辑:程序博客网 时间:2024/06/05 11:01
*&---------------------------------------------------------------------*
*& Module F4_WASH INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE F4_WASH INPUT.
data it_ZTWTYP like ZTWTYP occurs 0 with header line .
data: disp.
data wa_wash type string.
refresh it_ZTWTYP.
select * into table it_ZTWTYP
from ZTWTYP.
loop at it_ZTWTYP.
helptab = it_ZTWTYP-ZZWTYP.
append helptab.
helptab = it_ZTWTYP-DESCRIPTION.
append helptab.
endloop.
refresh ihelp_fields.
ihelp_fields-tabname = 'ZTWTYP'.
ihelp_fields-fieldname = 'ZZWTYP'.
ihelp_fields-selectflag = ''.
append ihelp_fields.
ihelp_fields-tabname = 'ZTWTYP'.
ihelp_fields-fieldname = 'DESCRIPTION'.
ihelp_fields-selectflag = 'X'.
append ihelp_fields.
describe table helptab lines sy-tfill.
check sy-tfill > 0.
* F4 - Hilfe Anzeigen
call function 'HELP_VALUES_GET_WITH_TABLE'
exporting
display = disp
fieldname = 'DESCRIPTION'
tabname = 'ZTWTYP'
importing
select_value = wa_wash
tables
fields = ihelp_fields
valuetab = helptab.
wash = CHEMICAL GARMEN #####
I don't know why happen this result ?
DATA: new TYPE string .
condense wa_wash.
CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'
EXPORTING
intext = wa_wash
IMPORTING
outtext = new
EXCEPTIONS
invalid_codepage = 1
codepage_mismatch = 2
internal_error = 3
cannot_convert = 4
fields_not_type_c = 5.
new = CHEMICAL GARMEN .....
wa_wash = new.
replace all occurrences of '.' in wa_wash with ' ' IN CHARACTER MODE .
condense wa_wash.
WA_ZSD_GARMENT_PRT2-ZWASH_MTD = wa_wash.
ENDMODULE. " F4_WASH INPUT
- SAP REPLACE STRANGE CHARS
- how to replace html code to normal chars
- SAP HANA SQL REPLACE替换字符串
- Chars conversation
- Class: ActiveSupport::Multibyte::Chars:
- string.chars属性
- Shifting chars in string
- zoj3847 Collect Chars
- 常用 Escape Chars
- replace
- Replace
- replace
- REPLACE
- replace
- replace
- replace
- replace
- Replace
- C++程序设计实验报告(三十五)---第四周任务一
- 非常实用]Asp.net常用的51个代码
- What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)?
- android webview goBack不起作用的解决方法
- Java命名规范
- SAP REPLACE STRANGE CHARS
- 常量与CString(整形转换过来)的字符串相连接的问题
- 字符替换(包含多个字符的替换)
- MFC——ComBox用法大全
- 浅谈“工厂模式”
- 第4周实验报告1
- 项目管理中的法治和人治
- Hash函数的基本知识
- Oracle中慎用Like等通配符