Foreign investment will be recorded in the capital account of the balance of payments account because these give rise to foreign exchange liabilities.
Foreign investment will be recorded on the credit side because these bring in foreign exchange to the economy.