Dear Sandy,
Please check below
ZXF01U06
We used above program to enhance the requirement to include the company code in document number while clearing. I believe it will surely help you to resolve your issue too. I'm not a technical consultant hence not able to provide inside of the same.
Regards,
Jain