hi srini,
Could you post the real question like,
Why you are customizing the class, like purpose
there is no single intercompany method, there are variety of intercompany methods which serves the purpose.
Mostly intercompany methods used to update the transactions which is happening between same company and different legal entities.
For EX:
I am selling a product to different legal entity in same organization (which is also treated as a vendor not likely) so system will create a transaction in both legal entities.
I am expecting to elaborate the question, i cant find a method which exactly named as intercompany.