Sometimes, it seems that replacing the internal USB board is the only solution to solve the charging problems of the S4 but I didn't had to replace this unit to solve my problem...
I was experiencing the same charging problems than several users reported here but I found that by plugging my USB...