Skip to Content
avatar image
Former Member

FM to fill activity partner and Contact person inside a BADI

Hi,

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?

Thanks,

Venkat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 25, 2010 at 07:26 AM

    Hi,

    you can try to use some of OW function modules inside this badi - like CRM_PARTNER_MAINTAIN_MULTI_OW.

    you can also use for the same requirement events technology - after event of changing partner you can execute your function module, where you can check the partner and change the other, etc.

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      maintain the partner change on document manually and debug this FM to see what should be the inputs.

      Maybe you are missing sth.

      Other way, better, would be using crmv_event tcode. there you can register your FM that will change partner on document.

      you can assign this FM for eg. to event AFTER_CHANGE and object PARTNER, and transaction category like Service Process.

      you can read /people/radoslaw.stefaniak/blog/2009/12/16/crmvevent--what-is-it for more information.

      Regards