cancel
Showing results for 
Search instead for 
Did you mean: 

SAP RAP - Create of grandchild is not working/reacting

PaulRintisch
Explorer
0 Kudos
165

Hi Community! 🙂

For a longer time we´re facing an issue with our RAP application. We are not able to do a create on a table, which is a grandchild of our root entity

PaulRintisch_2-1725517549041.png

Situation:

  • Root Entity (Location)
  • [0..1] Composition from Location -> Entity Topic (in this case Nature, we have 5 in total)

 

 

composition [0..1] of ZEHS_I_DemoTopic_Nature        as _TopicNatureDemo2

 

 

 

  • [0..*] Composition from Topic -> Entity with table entries

 

 

composition [0..*] of ZEHS_I_Demo_LOCENVINVSP_NATURE as _InvSpNature

 

 

Location -> [0..1] Location -> [0..*] Table

Behavior Definition:

 

 

// Location
define behavior for I_Location alias Location
lock master
etag master LastChangedDateTime
with unmanaged save
{
  update;

  field ( readonly ) Country, LocationID, CountryText, LocationTypeText, RegionText, Region;

  association _TopicNatureDemo2 { create; }
  }

// Topic
        define behavior for I_DemoTopic_Nature alias DemoTopicNature
        lock dependent by _Location
        with unmanaged save
        {
          update;

          association _InvSpNature { create; }

//          field ( readonly, numbering : managed ) LocationEnvDetTopicUUID;
          field ( readonly ) EHSLocationUUID;

          association _Location;
        }

// Table inside Topic (_InvSpNature)
        // Invasive Species
        define behavior for I_Demo_LOCENVINVSP_NATURE alias DemoInvSpNature
        persistent table ...
        lock dependent by _Location
        etag master LastChangeDateTime
        {
          update;
          delete;

          field ( readonly, numbering : managed ) LocationEnvDetInvSpeUUID;
          field ( readonly ) EHSLocationUUID, LocationEnvDetTopicUUID;

          association _TopicNature;
          association _Location;
        }

 

 

So far we see an ObjectPage with our Section Nature Topic. In this Section, there is also the table with our lineItems.

 

Problem:

We can navigate into the LineItems and delete them, but pressing on the create button is doing nothing. Can someone help us out? We´re struggling with that for a long time now..

Additional Information:
We also developed a Fiori App via BAS and added a custom Navigation to the manifest.json. Navigation and Delete/Update works, create button still doesnt react.

 

 

              "ObjectPage|DemoInvSpNature": {
                "component": {
                  "name": "sap.suite.ui.generic.template.ObjectPage"
                },
                "entitySet": "DemoInvSpNature",
                "navigationProperty": "to_TopicNatureDemo2/to_InvSpNature"
              }

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
Active Contributor
0 Kudos

Hi @PaulRintisch,

What does the Page Map look like? Ideally, it should have four tiers:

  1. List report
  2. Object Page for the root entity
  3. Object Page for the child entity
  4. Object Page for the grand child entity 
PaulRintisch
Explorer
0 Kudos

Hi!

Strangely, I can´t add the Topic (child of the root entity) as a new tier.

If I add the fourth tier manually in the manifest, it appears on the page map with the following warning: 

"Navigation target is not defined"