0

enter image description here

The text is supposed to say simply

3rd. party sorting; Own sorting; Requesting supplier; Customer sort;

It contains the same value as the textfield, but it's apparently too long, so i had to set it as a Tooltip too. When the text is not too long for the text field, the tooltip displays correctly.

Is there a solution for this that keeps the text the way it is, but just fixes the tooltip?

4

1 回答 1

2

您可能根本不需要工具提示。当字段长度超过显示长度时,SAP 似乎会自动将整个字段作为工具提示。

这意味着当您还设置工具提示时,您会获得两次内容。

如果您确实需要工具提示,即使字段长度小于文本字段的长度,您也可以尝试以下操作:

if strlen( text_field ) > 60.  "Visible length of the textfield
  clear v_tooltip.             "You have to use a separate field as the tooltip
else.
  v_tooltip = text_field.
endif.
于 2013-07-01T21:05:04.053 回答