MDG: Some Reasons Why Data Disappears
Indiscussion I asked for the reason why data disappears after navigating to another screen. In the meantime I found out that there are several possible reasons. If you know further reasons feel free to add them to the comments.
UI Configuration: Wire must reflect hierarchy of GenIL model
Both the GenIL model and the OVP page are build in a hierarchical way. The relations in GenIL are reflected in the wire schema of the OVP. A mismatch between wiring and GenIL can lead to disappearing values or to a dump.
For example you have enhanced KNVV by several z-fields and these attributes should be displayed in an own UIBB on Sales Area level. In the GenIL model the fields are added to dependent object CU_SalesArea.
The new UIBB has Feeder Class CL_BS_CU_GUIBB_SALES_AREA with Component = BUPA and Object Name = CU_SalesArea.
In the wire schema the configuration of the new UIBB must be linked to the configuration of the Sales Area List as ‘Source Configuration’.
BRF+ Derivations not updated after model change
Transaction USMD_RULE generates BRF+ structures based on the data model which then are used in the signature of the functions. If the data model is changed the generated structures in BRF+ are not updated automatically. If a derivation exists for the changed Entity Type it can happen that attribute values disappear. The solution would be to run report USMD_ADAPT_BRF to adapt the generated structures according the model. Alternatively you can start transaction USMD_RULE. The transaction checks whether the generated structures still fit to the data model. If not the structures are regenerated.
Usage of same data element for different attributes
We had two quantity fields where we assigned the same data element in the data model. This is not allowed and leads to disappearing values. The solution is to copy the data element and assign the new one.