We have the following scenario:
We created a Z-Entity for a material. Using the standard insert/delete options for this entity works fine and creates the new entities for this material in the data model and shows them in a table in the UIBB.
Then we enhanced the UIBB with two extra buttons. Depending on which button is pressed, an entity should be created/copied from another material. This implementation is done in the cross-entity derivation BADi.
We enhanced method /PLMU/IF_FRW_G_ACTIONS~PROCESS_ACTION_EVENTin order to recognize which button is pressed.
Then we implemented the cross-entity derivation BADi, which gets triggered and changes the data model and creates the entry we need in the model. This works fine and the new entity is available in the model data.
Our problem with this approach is, that the UI isn't refreshed when one of these buttons is pressed and the new entry does not appear in the entity's table.
If we change a material's standard field (e.g. material type) afterwards, another roundtrip is triggered and the UI is refreshed including the update of our entity table.
We have already tried to raise a roundtrip event when the button is pressed and also have tried to change a field manually using the convenience API with no luck so far.
Does somebody know how we can trigger a complete roundtrip or something that also updates the UI component?
Kind regards,
Sebastian