Skip to Content

Fiori elements object page - Determinations

Hi All, Jocelyn Dart

Currently I'm developing a new fiori elements application based on the S4/HANA programming model. I'm facing an issue with BOPF determinations. In the backend I configured and code some determinations. Based on certain changes the value of another field is adjusted (and saved in the draft table). After the determination has been executed the UI doesn't react on this determation. Only after creating a new entity using the + button the changed data is available in the new entity UI, but after a field update the UI is not reacting on this.

Only after refreshing the changed field value is being updated.

Is this a missing feature in the current version of Fiori elements or is there a solution to achieve the UI to be updated after executing a determination in the S/4 HANA backend?

Thnks!

Mattijs

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 01, 2017 at 07:28 AM

    Hi Mattjs

    Sorry it's taken a while...

    Ok so what you want to do is use an a custom action breakout. You can then add a refresh function after your BOPF call.

    It would be great if you could write a short blog on this once you have it working!

    Good luck!

    Jocelyn

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 01, 2017 at 07:48 AM

    Hi Jocelyn,

    Thanks! No problem.

    I'm not performing a BOPF call, but just changing a field value in the UI for example a validfrom date in a table of node X. After changing the field the draft is being saved in the backend. During this save a BOPF determination in the backend is called (automatically by the BOPF framework), in this determaintion based on the changed validfrom date the validto date of another node is adjusted and some other data is being changed. These adjustments are updated correctly in the draft table.

    But when returning to my UI, tge UI still contains the old values for the fields which were changed in the determination.

    For now I found a solution by setting the RefreshAfterChange property of my model in the fiori elements application to true:

    this.getOwnerComponent().getModel().setRefreshAfterChange(true);

    But now only the entity will be refreshed which is being changed. In case an update will lead to cross entity changes in the BOPF determination these entities will not be updated. Seet attached image for an example. Is there a solution to referesh all the entities?

    Should this be default functionality of a fiori elements application based on the S4 programming model?

    Grtz
    Mattijs

    Add comment
    10|10000 characters needed characters exceeded