SAP recommended waste pipe length
Although there is no maximum that must be complied with SAP recommends that the length of the waste pipe (40mm) from the shower trap to the WWHRS unit should be no more than 3.0m. This prevents any excessive heat loss between the shower and the WWHRS unit.
See related articles;
What is the maximum length of pipework from the WWHRS to the hot water source?