FM to fill activity partner and Contact person inside a BADI
When i create an activity i need to check for a condition and process the activity accordingly. The condition is that when an contact person is entered mistakenly on the activity partner field then i need to move to the contact person field and also find out the corresponding activity partner and fill it.
For example, if i enter 123( assuming this to be a contact person) on the activity partner field, then i need to find what is the corresponding activity partner for this contact person(Assuming ABC to be the activity partner). I need to fill ABC on the acitivity partner field and 123 on the contact person field. I tried using ORDER_SAVE Badi for the same. The badi gets called and i am able to read the curent value from ORDER_READ FM. I just don't get as to how to fill the activity partner and contact person inside this BADI. I am not able to find any FM for the same. Can i request some help pls?