The skimmer was built to be an external skimmer and we do not recommend using it as an insump skimmer.
In terms of the B pipe, it can be as long as you need it to be but remember that the longer the pipe is, the more back pressure you will add to the skimmer to the point that you may not be able to lower the water level inside the skimmer because the B pipe is too long.