当前位置:网站首页>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
边栏推荐
- Yyds dry goods inventory ubuntu18 0.4 install MySQL and solve error 1698: access denied for user ''root' '@' 'localhost' '
- Node installation
- DMP engine work summary (2021, lightsaber)
- 成功的DevOps Leader 应该清楚的3个挑战
- JS DOM learn three ways to create elements
- Three challenges that a successful Devops leader should be aware of
- kettle实验
- Number of islands
- Using JS to realize a thousandth bit
- Kettle experiment (III)
猜你喜欢

108. Convert an ordered array into a binary search tree

What is monitoring intelligent playback and how to use intelligent playback to query video recording

《数字电子技术基础》3.1 门电路概述、3.2 半导体二极管门电路

Kettle experiment (III)

Summary of wrong questions 1

Machine learning (VI) -- Bayesian classifier

653. 两数之和 IV - 输入 BST

nn. Explanation of module class

AI上推荐 之 MMOE(多任务yyds)

Using JS to realize a thousandth bit
随机推荐
112. Path sum
亚马逊云科技入门资源中心,从0到1轻松上云
JS and how to judge custom attributes in H5
【读书笔记】《Verilog数字系统设计教程》 第5章 条件语句、循环语句和块语句(附思考题答案)
ABAP 7.4 SQL Window Expression
GUI, CLI and UNIX Philosophy
Colorui solves the problem of blocking content in bottom navigation
Leetcode题库78. 子集(递归 c实现)
SAP salv14 background output salv data can directly save files and send emails (with sorting, hyperlink and filtering format)
Exclusive thoughts and cases of JS
Vivo, hardware safe love and thunder
Two ways for flutter providers to share data
Cross domain configuration error: when allowcredentials is true, allowedorigins cannot contain the special value "*“
Cloud computing competition -- basic part of 2020 competition [task 3]
Setnx command execution failed due to full redis memory
JS case to find the maximum value, reverse the array, bubble sort
What is monitoring intelligent playback and how to use intelligent playback to query video recording
npm ERR! network
SAP 101K 411k inventory change
Kettle实验 转换案例