Hi Ram,
PI is a integration broker which integrates two systems for the exchange of information.
Most of the times, we prefer to handle the complex logic in the ABAP end(ECC) itself.
Yes, I agree with you, if any issue comes for the complex mapping in PI, it becomes tedious to find the root cause.