0

When creating a relation in SAP and in case there are several possible types of relations, SAP shows a dialog to choose the relation like this:

Screenshot SAP create relation

However, when I query the node text using SapTree.getText() of Silk4J, I get the following results:

U
    B ZE3 9V
    B ZE3 U
    B 003 O

Where does this text come from, what does it mean and how do I get the text that is displayed to the user?

I have tried

  • there are no column names returned by SapTree.getColumnNames()
  • there are no column titles returned by SapTree.getColumnTitles()
  • SapTre.getColumnHeaders() returns two items, HierarchyHeader and ListItems. Calling getItemText() with any of those header names does not return the text displayed to the user.
4

1 回答 1

0

您可以右键单击关系并选择“显示键”:

有关关系的屏幕截图 SAP 上下文菜单

这导致

显示键的对话框

它解释了文本。它由三部分组成:

  • X是关系类型(A:自下而上,B:自上而下)
  • YYYZ是关系(以自定义关系开头的关系)
  • ZZ9是要链接的对象的类型(以自定义对象开头的对象)

获取向用户显示的文本:

  • 您可以调用SapTree.getItemText(key, "1")以获取关系文本(例如B ZE3 9V
  • 您可以调用SapTree.getItemText(key, "2")以获取人类可读的关系描述(例如beinhaltet
  • 您可以调用SapTree.getItemText(key, "3")以获取人类可读的目标对象文本(例如Externe Person
于 2015-04-20T07:32:12.970 回答