当前位置:网站首页>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
边栏推荐
- MySQL - Chapter 1 (data types in MySQL)
- Kettle实验
- High paid programmer & interview question series 91 limit 20000 loading is very slow. How to solve it? How to locate slow SQL?
- Summary of wrong questions 1
- Applet error: cannot read property'currenttarget'of undefined
- JS and how to judge custom attributes in H5
- [geek challenge 2019] havefun1
- Flutter's loading animation is more interesting
- Machine learning (VI) -- Bayesian classifier
- npm ERR! network
猜你喜欢

Detailed explanation of delete, truncate and drop principles in MySQL database

STM32 and FreeRTOS stack parsing

653. Sum of two IV - input BST

Go language learning notes - language interface | go language from scratch

108. 将有序数组转换为二叉搜索树

Kettle实验 (三)

Using sqlmap injection to obtain the account and password of the website administrator

Kernel PWN learning (4) -- double fetch & 0ctf2018 baby

Kettle experiment (III)

如何实现根据照片获取地理位置及如何防御照片泄漏地理位置
随机推荐
3、 6 [Verilog HDL] gate level modeling of basic knowledge
Kernel PWN learning (3) -- ret2user & kernel ROP & qwb2018 core
Canary publishing using ingress
Leetcode0587. 安装栅栏(difficult)
Dropout技术之随机神经元与随机深度
Your guide to lowering your cholesterol with TLC (continuously updated)
Cloud computing competition -- basic part of 2020 competition [task 3]
Alibaba cloud architects interpret the four mainstream game architectures
阿里云架构师解读四大主流游戏架构
Kettle experiment
Sql1 [geek challenge 2019]
Group Backpack
LeetCode 1611. The minimum number of operations to make an integer 0
How to protect open source projects from supply chain attacks - Security Design (1)
Secrets in buffctf file 1
653. Sum of two IV - input BST
亚马逊云科技入门资源中心,从0到1轻松上云
数据清洗 ETL 工具Kettle的安装
Creation of raid0 and RAID5 and Simulation of how RAID5 works
Colorui solves the problem of blocking content in bottom navigation