You’re absolutely correct—system-generated entries like automatic cost postings, reversals, direct cost adjustments, and exchange rate adjustments often have blank Document Type because these processes don’t originate from a document (invoice, credit memo, etc.). They are created by internal routines, so:
> Document Type is optional and only populated when the posting originates from a document-based transaction.
> For system-generated entries, there’s no standard way to fill Document Type automatically because Business Central doesn’t assign it for these processes.
If you need Document Type for reporting, you can:
> Use Source Code (e.g., GENJNL, INVTPCOST) to identify the transaction type.
> Create a custom extension to populate Document Type during posting based on Source Code or transaction logic.
By default, these fields will remain blank for system-generated entries.
Thanks
Rishabh