Hello
I wrote the following WIKI with the most common issues on transaction MD04 and this issue is decribed on the section "Sales order/delivery number is not displayed":
You will find links for the notes where this issue and the solution is described.
BR
Caetano