When entering journal entries you need to download the document numbers from the document number popup
Studio 11x, Transaction 10x
This often happens if the data for the initial recording was not for multiple company codes
Add the following values to your script manually - this can be done from the expert tab.
Screen number for popup:
Fields description/field name:
Document number: BKPF-BELNR(##)
OK code for popup: