2024 Feb 05 6:59 PM - edited 2024 Feb 05 7:04 PM
I have created an RAP BO and implemented an action with a deep table parameter. I achieved this using a CDS Abstract Entity Hierarchy found it in help.sap.com( https://help.sap.com/docs/abap-cloud/abap-rap/modeling-parameters-for-non-standard-operations?locale... ) .
For fetching data, I utilized a Function Module (FM) which I called inside the Behavior implementation class, passing the data into the result tab. However, I am encountering an issue with a requirement where 2 internal tables and one header are needed in the result tab of the action.
I have successfully transferred header data into %param, but I am facing difficulties with the line item data. Automatic code completion is not helping, and I haven't found any relevant blogs to reference.
Your assistance in resolving this issue would be greatly appreciated.
Hi,
Since this is a table type, you can not access directly it's fields. You have to pass the data as an internal table. Ex.. Value #( for ls_data in lt_data ( field = ls_data-field)).
Best wishes,
Ramjee Korada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramjee,
I tried similar approach but in the action popup, the table doesnot appear.
Below is my abstract entities:
I have also created Behaviour definition for this abstract entity:
And, below is my RAP object behavior defintion where I defined the action button using the above abstract entity as parameter:
Kindly help me with the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I understand, Fiori Elements has not yet supported the deep parameter. However, it works with RAP so you can use deep parameters with webapi or UI5 custom code.
User | Count |
---|---|
68 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.