当前位置:网站首页>Example of data object mask used by SAP translate
Example of data object mask used by SAP translate
2022-04-23 09:33:00 【rogerix4】
1. Use the data object mask sample code
- Use data mask , Object 12 34 56 78 910 1112 Bit characters are automatically matched to mask pairs
- Masks are case sensitive , If the corresponding mask cannot be found, the... Will not be performed TRANSLATE
- Only the odd digits of the mask will be replaced with even digits ; If you enter even digits , Do not carry out TRANSLATE
TYPES: BEGIN OF ty_data,
l_char1 TYPE c,
l_char2 TYPE c,
l_char3 TYPE c,
l_char4 TYPE c,
END OF ty_data.
DATA: data_musk(100) TYPE c VALUE '1 One 2 Two 3 3、 ... and 4 Four 5 5、 ... and 6 6、 ... and 7 7、 ... and 8 8、 ... and 9 Nine 0 zero s Si '.
DATA ls_data TYPE ty_data.
DATA: l_char TYPE c.
ls_data-l_char1 = 'S'. " uppercase S
TRANSLATE ls_data-l_char1 USING data_musk.
ls_data-l_char2 = 's'. " Lowercase s
TRANSLATE ls_data-l_char2 USING data_musk.
ls_data-l_char3 = '4'. " Numbers
TRANSLATE ls_data-l_char3 USING data_musk.
ls_data-l_char4 = ' One '. " Mask pair post value
TRANSLATE ls_data-l_char4 USING data_musk.
cl_demo_output=>display( ls_data ).
2. Show the effect
- Example 1 4 No replacement
- Example 2 3 Mask replacement
版权声明
本文为[rogerix4]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230623503807.html
边栏推荐
- GUI, CLI and UNIX Philosophy
- Redis exception read error on connection solution
- JSON input of Chapter 14 of kettle paoding jieniu
- Two methods of building Yum source warehouse locally
- Applet error: cannot read property'currenttarget'of undefined
- kettle实验
- Alibaba cloud architects interpret the four mainstream game architectures
- 501. Mode in binary search tree
- JS scope, scope chain, global variables and local variables
- MySQL - Chapter 1 (data type 2)
猜你喜欢
Canary publishing using ingress
Two methods of building Yum source warehouse locally
亚马逊云科技入门资源中心,从0到1轻松上云
Set the maximum width of the body, but why does the background color of the body cover the whole page?
kettle庖丁解牛第14篇之JSON输入
Program, process, thread; Memory structure diagram; Thread creation and startup; Common methods of thread
Leetcode0587. 安装栅栏(difficult)
Applet error: should have URL attribute when using navigateto, redirectto or switchtab
[Luke V0] verification environment 2 - Verification Environment components
MySQL of database -- Fundamentals
随机推荐
STM32 and FreeRTOS stack parsing
How to obtain geographical location based on photos and how to prevent photos from leaking geographical location
Go language learning notes - language interface | go language from scratch
Write down the post order traversal of the ~ binary tree
DMP engine work summary (2021, lightsaber)
108. 将有序数组转换为二叉搜索树
RSA 加密解密签名验签
Node installation
Vivo, hardware safe love and thunder
MySQL of database -- basic common query commands
Number theory to find the sum of factors of a ^ B (A and B are 1e12 levels)
Canary publishing using ingress
Three challenges that a successful Devops leader should be aware of
Give the method of instantiating the object to the new object
个人主页软件Fenrus
Exclusive thoughts and cases of JS
Redis exception read error on connection solution
Dropout技术之随机神经元与随机深度
Number of islands
Installation of data cleaning ETL tool kettle