While creating invoice (i.e VF01) when u scroll to right at item level u will find three columns in the end which are as follows:
originating doc (It is taking Sales document no.)
Sales doc (it will take sales document no.)
Reference doc (it will take delivery doc no.)
i want to know from where the originating document is populated while copying from delivery? If it is from copy control then plz suggest me the exact routine or any other settings.