防止选择屏幕输入字段转换为大写?
我有一个带有字段 title_medi
的表格,其中包含两行,例如 Mr. 和 Ms.
另外,我还有名为 title 的输入字段,其搜索帮助为 <代码>title_medi。当我在搜索帮助中选择先生时,它会显示在文本字段中。
如果我将该文本字段值与数据库字段进行比较。我收到错误。
但是当我调试并看到该值在某种程度上被转换为全大写,例如 MR. ,与表中的情况不完全一样。
你能帮我解决这个问题吗?
I have the table with field title_medi
which contains two rows like Mr. and Ms.
Also I have input field called title with search help of title_medi
. When I'm selecting Mr. in the search help it gets displayed in the textfield.
If I compare that text field value with the database field. I'm getting an error.
But when I debug and see the value is somewhat getting converted to all uppercase like MR. not as exactly in the table.
Could you please help me out with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为了解决这个问题,您有两个选择:
In order to solve this you have 2 options:
我检查了数据元素,但也用小写字母进行了检查。
所以我所做的是我在屏幕画家中选中了关注字段的大写/小写属性的复选框。效果很好
I checked the data element but that is also been checked with the lower case.
So what i did is i have checked the check-box for upper/lower case attribute in screen painter for the concern field. It works fine
附加信息
在 HR 中,可能的质量(先生、女士...)存储在表 t522 中。相应的文本存储在T522T中。数据元素是 ANREX,与同名域相关联。该域启用小写。
此外,这还可以告诉您此人的性别。
additional info
In HR, possible quality (Mr, Ms...) are stored in table t522. Corresponding texts are stored in T522T. The data element is ANREX, associated with the domain of same name. This domain is lower case enabled.
moreover, this also give you the person's gender.
使用
小写
除了参数之外,如果您参考选择屏幕输入字段。
我不知道 OP 使用的是哪个版本,因为这确实是老问题,但至少自 ABAP 700 SP05 以来此添加可用
Use
LOWER CASE
addition to PARAMETERS, if you refer to selection screen input field.I don't know which version OP was using as this is really old question, but this addition is available at least since ABAP 700 SP05