You wish you understand why the visiblity of FOLocation/companyFlx cannot be changed from sap:visible="false" to sap:visible="true" in your Metadata file or Odata Data Dictionary
Reproducing the Issue
- Display FOLocation/companyFlx in OData Data Dictionary
- Visibility "False" cannot be changed
Expected behaviour, see Resolution
- The companyFlx is based on the one-to-many association from FOLocation to LegalEntity. For one-to-one associations, the corresponding property xxxFlx will be visible and its value will be the external code of the associated record. However, for one-to-many associations, there may be multiple associated records, and the API is not able to display all the external codes in one property, this is why the xxxFlx property based on one-to-many association is hidden.
- For other entities, e.g. FOPayRange, the association to LegalEntity is one-to-one so companyFlx will be set as a visible property
KBA , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , How To