1

I have created a Fiori elements app using CDS annotations. My app contains multi-select list report.

I created a Action button using lineItem annotation like below

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

And created action in Behavior Definition as well.

But when I select either one or multiple rows, I am having error "Parameter missing" enter image description here

Following the error screenshot from my network: enter image description here

Can anyone help to resolve this issue? I want to select multiple rows and pass it into my ABAP RAP Action.

Update

My snippet from metadata for function import:

<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>
8
  • 1
    Please DO NOT post images of code, data, error messages, etc. - copy or type the text into the question. Feb 15, 2022 at 9:45
  • You can always have a look in the SEGW how your particular Function Import ist defined. In your case it could just be a case-sensitive issue.
    – Jan W
    Feb 15, 2022 at 13:47
  • @JanW the case in metadata is small letters only. So, the case is fine. It's something else. Feb 16, 2022 at 8:06
  • 1
    My troubleshooting approach to this problem would be: 1. check if I can get the function import of the odata service to work when I test it in the gateway client, 2. try again from the ui5 application like you are doing here, 3. check the request in the browsers network tab to see if it looks any different from the request I assembled in the gateway client. Can you do that for us?
    – Philipp
    Feb 16, 2022 at 16:22
  • 1
    @Piyushaggarwal Most likely reason is that the parameters in your import are named slightly different from the attributes of your OData entity. Please check the request in the network tab of your browsers network tab to see if the request generated by UI5 looks any different from the requests you make yourself.
    – Philipp
    Feb 17, 2022 at 8:18

1 Answer 1

0

I was able to solve this using action ( features : instance ) <ActionName>; in BDef and implementing the feature method in Behaviour Pool. https://help.sap.com/docs/ABAP_PLATFORM_NEW/fc4c71aa50014fd1b43721701471913d/dfc68f6275454c41b53510dacaec51d6.html?locale=en-US&version=202110.000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.