You have several options to manage the document record setup for internal documents.
You can:
Change the sequence of the records.
View the D365 F&SCM table relations.
View where a record is used.
Check or change the table relations.
Define the data querying order.
Define the range of data to be queried.
Validate the record setup.