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