ABAP RAP 操作按钮错误“函数导入参数无效”?

问题描述 投票:0回答:1

我使用 CDS 注释创建了一个 Fiori elements 应用程序。 我的应用程序包含多选列表报告。

我使用 lineItem 注释创建了一个操作按钮,如下所示

{ type: #FOR_ACTION, position: 10, dataAction: 'que_post', label: 'tre', invocationGrouping: #CHANGE_SET }

并在行为定义中创建了动作。

但是当我选择一行或多行时,出现错误“参数丢失”

以下是我网络上的错误截图:

有人可以帮忙解决这个问题吗? 我想选择多行并将其传递到我的 ABAP RAP 操作中。

更新

我的函数导入元数据片段:

<FunctionImport Name="que_post" ReturnType="cds_z_p_quality_status_serv_def.DummyFunctionImportResult" m:HttpMethod="POST" sap:action-for="cds_z_p_quality_status_serv_def.DelQualityDetailsType">
  <Parameter Name="matnr" Type="Edm.String" Mode="In" MaxLength="40"/>
  <Parameter Name="lifnr" Type="Edm.String" Mode="In" MaxLength="10"/>
  <Parameter Name="charg" Type="Edm.String" Mode="In" MaxLength="10"/>
  <Parameter Name="sernr" Type="Edm.String" Mode="In" MaxLength="18"/>
  <Parameter Name="prueflos" Type="Edm.String" Mode="In" MaxLength="12"/>
</FunctionImport>
abap sap-fiori s4hana rap
1个回答
0
投票

我能够使用 BDef 中的

action ( features : instance ) <ActionName>;
并在行为池中实现特征方法来解决这个问题。 https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/dfc68f6275454c41b53510dacaec51d6.html?locale=en-US&version=202110.000

© www.soinside.com 2019 - 2024. All rights reserved.