During testing of our migration from SL7 to SL2015 we have discovered that our transaction imports which create batches in multiple companies from a single import and no longer working. To achieve this we are setting PES.CPNYID to the required company for each batch.
In SL7 the documents use this to process into the correct company. However in SL2015 although the batch is correctly created in the correct company the documents within the batch are being created in the users logged in company.
Does anyone know what needs to be updated to ensure the documents are created in the same company as the batch?