After much investigation, the error seemed to come from the RFC calling section. So while checking the RFC and the FM it was calling, we discovered that "SO08" and other such couple of entries got deleted in abap table, during Ehp upgrade. ABAP tam is currently looking into the issue.
Thread Closed.