Legislation
Less than to read
When a field is linked to a table managed by legislation, the associated reference property cannot be automatically generated.
In that case, a global variable setup is required in the Table dictionary (GESATB) to initialize the values of global variables such as GSUPCLE or GCURLEG:
The Global variable init. column contains a path built with property names to get the legislation code to filter the node with the right legislation.
In the above example, the legislation code used to read the PTE record is determined with the following path: purchaseSite.legalCompany.legislation.code
.
In other words, the purchaseSite property of the Purchase Order node is used to access the legalCompany property. This accesses the legislation property linked to the Legislation node and obtains the code property for the legislation.
No error will be returned if a Global variable init. setup is not defined for a field linked to a table managed by legislation.
In these cases, the GraphQL query uses the following default method:
- Find the first record without any legislation in the linked table.
- If that record does not exist, the first will be used in alphabetical order.