Hi Rama,
- Read this BTPARTNERSET Base Entity BTPartnerSet for the particular BP ID.
- Keep reading its parent entity till you get the activity header entity.
Thats it.
Ask me if more info required. Please let me know where exactly you want to write the code.
Thanks
Bhushan