我有一个问题,即智能字段(使用WebIDE在xml视图中构建)不显示关键字段的描述,而是仅在两个下拉列表列中显示关键字段。
例如:1(1),期望值为1(地方税)。
我的服务是使用tcode:SEGW构建的,并使用WebIDE将下拉列表的ui和注释开发为固定列表。
我看到一个解决方案smartfield注释-valuehelp dropdown,但是我无法将sap:text添加到我在SEGW中的服务中。
问题 :
WebIDE中的注释:
</Annotations>
<Annotations Target="Metadata.ET_FV60Header/Pmethod">
<Annotation Term="Common.Text" String="Text1"/>
<Annotation Term="Common.ValueListWithFixedValues" Bool="true"/>
<Annotation Term="Common.ValueList">
<Record>
<PropertyValue Property="CollectionPath" String="VH_PmtMethSet"/>
<PropertyValue Property="Parameters">
<Collection>
<Record Type="Common.ValueListParameterInOut">
<PropertyValue Property="LocalDataProperty" PropertyPath="Pmethod"/>
<PropertyValue Property="ValueListProperty" String="Zlsch"/>
<Annotation Term="Common.Label" String="Text1"/>
</Record>
<Record Type="Common.ValueListParameterDisplayOnly">
<PropertyValue Property="ValueListProperty" String="Text1"/>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
</Annotations>
我可以使用以下方法将属性“ sap:text”添加到SAP中的实体定义中,从而解决了该问题;
** ET_Entity是我的“价值帮助实体”数据模型名称(不是实体集)** FIELD_ID是我们要在下拉列表中显示说明的上述实体下的键属性。** FIELD_DESC是包含描述的属性。
实体元数据:
stackoverflow.com/questions/63374119/…- 这篇文章帮助我解决了我的问题。
@Mahdi,我能够解决问题,并想为您添加标签。