简体   繁体   English

SAP 查询:大写和替换可能吗?

[英]SAP Query: upper case and replace possible?

Our application has a GUI for selecting devices by their MAC address.我们的应用程序有一个 GUI,用于通过 MAC 地址选择设备。 At this time I have to enter the MAC address in captial letters and with colons.此时我必须以大写字母和冒号输入 MAC 地址。

However, I often have the MAC address in Windows format, which is lower case and with hyphens instead of colons.但是,我经常使用 Windows 格式的 MAC 地址,它是小写的,并且使用连字符而不是冒号。

The developers keep telling me that it's not possible to apply an uppercase transformation and replace the hyphens by colons.开发人员一直告诉我,不可能应用大写转换并用冒号替换连字符。 In this project I'm working as QA and I'm neither familiar with SAP Query nor ABAP.在这个项目中,我担任 QA,我既不熟悉 SAP Query 也不熟悉 ABAP。 But being a developer for C# and Java projects, I really can't believe this.但是作为 C# 和 Java 项目的开发人员,我真的无法相信这一点。

Is there a way in SAP Query to transform user input from eg aa-bb-cc-dd-ee-ff to match the database content AA:BB:CC:DD:EE:FF ? SAP Query 中有没有办法将用户输入从aa-bb-cc-dd-ee-ff为匹配数据库内容AA:BB:CC:DD:EE:FF

The datatype is C length 17. The program GUI at the time filling the query with the parameters is RSSYSTDB.数据类型是 C 长度 17。当时用参数填充查询的程序 GUI 是 RSSYSTDB。 The Program Dynpro at that time is AQZZ/xxx/yyy where xxx is our partner namespace and yyy corresponds to the transaction.当时的Program Dynpro是AQZZ/xxx/yyy,其中xxx是我们的合作伙伴命名空间,yyy对应的是交易。 The program GUI and Program DynPro when the result is displayed is SAPLAQRUNT.显示结果时的程序 GUI 和程序 DynPro 是 SAPLAQRUNT。

If the data element is used exclusively to store MAC addresses (ie it's not some generic "device information data" field), the developers could implement a (very concise and easy to implement) conversion routine .如果数据元素专门用于存储 MAC 地址(即它不是一些通用的“设备信息数据”字段),则开发人员可以实现(非常简洁且易于实现)转换例程 That would also help users entering the data.这也将帮助用户输入数据。 Other than that, I believe the options provided by SAP Query are more than limited...除此之外,我相信 SAP Query 提供的选项不仅有限......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM