2024 Aug 07 3:18 PM - edited 2024 Aug 08 9:55 AM
Dear Experts,
In my Fiori app preview I can not see Line item reference on the Object page.
I have following Business object scenario
Table A has 0 to 1 association to Table B
Table B has 0 to many association to Table C.
I have created RAP object for these 3 table using A as root view.
As A and B has 0 to 1 association, I used field-grouping in the object page to show data from table B.
Table B and C and o to many association hence I showns this in the line_item annotable
Result Fiori App has Object page with data from table A as field groups, data from table B as field groups but the list for the table C is not displayed.
If I directly open preview of Table B then I can see the data and list for Table C.
Any idea what could be missing.
If I change the Cardanility of A and B to 0 to many then the line item for Table C is displayed.
Is it a limitation from SAP that we can not show line item data for the entity whose parent has 0 to 1 or 1 to 1 cardinality to parent of parent?
Note: I have added redirect to parent and composite child to all views. I have maintained association and ancester association property in the Behaviour definition.
Try giving the below Annotation at A Entity
{ id:'C', position: 30, type: #LINEITEM_REFERENCE, targetQualifier: 'QualC' , label: 'Ship Data', targetElement: '_BEntity._CEntity' }
TargetElement will be your deep navigation.
Also, why cant you directly keep child relation from A->C and then use below annotation
{ id:'C', position: 30, type: #LINEITEM_REFERENCE, targetQualifier: 'QualC' , label: 'Ship Data', targetElement: '_CEntity' }
Below consumption A views for your reference
Here is output of object page:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AVG, Thanks for your replies.
The Model design in such a way that we have Root table assigned to B table with 0 to 1 cardinality and then next B to C with 0 to many.
I already tried what you suggested and put the lineitem reference in the metadata file of table A but same as your result, I do not get further navigation posibility on the list C( See your screenshot output, The list does not have navigation ). I had the same issue.
Now it looks like it is not possible to represent it this way, I might take up your suggestion to link A to C directly.
Thanks again.
Regards,
Anmol
User | Count |
---|---|
65 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.