简体   繁体   English

如何增加 UI 中选择选项的长度

[英]How to increase the length of select-options in UI

As I understood, select-options in abap just takes 45 characters from UI.据我了解,abap 中的选择选项只需要 45 个来自 UI 的字符。

Whatever I assign the type of select-option, it doesnt take more then 45 characters.无论我分配什么类型的选择选项,它都不会超过 45 个字符。

SELECT-OPTIONS: s_key  FOR somlreci1-receiver NO INTERVALS VISIBLE LENGTH 100. 

somlreci1-receiver is char(1215). somlreci1-接收器是 char(1215)。 But I cannot write more than 45 into that select-option.但是我不能在那个选择选项中写入超过 45 个。

Any way to increase this length ?有什么办法可以增加这个长度?

This official link这个官方链接

http://help.sap.com/abapdocu_70/en/ABAPSELECT-OPTIONS.htm http://help.sap.com/abapdocu_70/en/ABAPSELECT-OPTIONS.htm

says it isn't possible to pass input larger than 45 chars, sorry :|说不能传递大于 45 个字符的输入,抱歉:|

At the end of the documentation posted by @vlad-ardelean it mentions that:在@vlad-ardelean 发布的文档末尾,它提到:

If a selection criterion for data types is supplied with data when calling up an executable program with SUBMIT如果在使用 SUBMIT 调用可执行程序时为数据类型的选择标准提供了数据

... ...

If the selection criterion is declared with the addition NO-DISPLAY, no conversion routine or truncation will be performed for the first row either.如果选择标准是用附加的 NO-DISPLAY 声明的,那么第一行也不会执行任何转换例程或截断。

You could declare the select-options as NO-DISPLAY in your main program, then call it from a second program with您可以在主程序中将选择选项声明为 NO-DISPLAY,然后从第二个程序中调用它

SUBMIT programname WITH so_field EQ lv_longdata SIGN 'I'. 

...or similar to pass the long value to the main program. ...或类似的将 long 值传递给主程序。 It's a pretty convoluted way of doing it, however.然而,这是一种非常复杂的方法。

除了@vlad-ardelean 的回答:有趣的是,在最近的版本中,最大字段长度提高到 255 个字符(参见http://help.sap.com/abapdocu_731/en/ABAPSELECT-OPTIONS.htm )。

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

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