Technical description
The Document pattern allows us to enter a header and line information. The header information is often related to Person Master Data (with whom I am doing business), whereas the lines are of the type Product (the kind of business that I am doing).
Each Document Pattern has two tables: a header and line. These names are important, the Sales Header and the Sales Line tables follow this convention, just as others.
The Header table
The header table has a primary key that is called No., and has a type Code with a length of 20 characters. Optionally, the primary key can also contain a reference to a normalized document type. Normalized in this case means that the share tables and business logic, for physically different documents, have a functional resemblance, such as Sales Quotes and Sales Invoices.
The value of the primary key is most often determined using Number Series Design Pattern.
The header tables, most often, contain a reference to the required Master...