cancel
Showing results for 
Search instead for 
Did you mean: 

BADI CRM_COPY_BADI - Method DATES

Former Member
0 Kudos

Hi All,

One more typical requirement.

The requirement is: when I create a service request the <b>dates</b> that belongs to Service request need to be copied to the following activity "Order Planned" date.

I tried by putting a break point in method DATES of CRM_COPY_BADI, this break point is not triggering at all while I am creating Follow up document i.e Activity.

Does any body have any thoughts pls share with me.

Thanks in advance.

Regards,

Usha.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

For the BAdI Implementation to get invoked during the copying process the filter value created needs to be maintained in the customizing for copy control (Column Copying routine) for your transaction type.

No need to create a separate implementation for copying dates, the same filter value will work.

Best Regards,

Kiran

Former Member
0 Kudos

Hi Kiran,

Thanks for the prompt response.

As your said, the configuration is done with the filter value.

I am copying two fields(priority and location) through ACTIVITY_H method and another two fields (Planned date and time) need to be copied through DATES.

Does one implementation one filter value, will trigger the above said both methods?

Why I am asking this question is the method DATES is not at all triggering?

Regards,

Usha.

Former Member
0 Kudos

Can you check if the configurations is set up to copy dates as well, otherwise the DATES method may not be called during the copy process.

~Kiran

Former Member
0 Kudos

Hi,

You can debug the function module 'CRM_DATES_COPY_EC' which will trigger for all crm transaction when you do a follow-up.

If you go through the code there you will probably discover that you don't have matching date types in both header/items for which you are trying to copy so the BADI will not be triggered...

Hopefully there is a way of doing this without having to have the same dates on both levels...

Former Member
0 Kudos

Hi Kiran,

Could you please mention where can the configuration of copy dates is set.

Thanks for your help.

Kind Regards.

Edited by: Daniel Alejandro García Gutiérrez on Dec 13, 2011 1:36 AM

Former Member
0 Kudos

Adding to the above,

Initially I created one filter for the BADI CRM_COPY_BADI and implemented logic in ACTIVITY_H to copy Priority and location details to follow up document i.e. Activity.

To copy the dates, I believe I need to implement the logic in DATES method. Does I need to create another filter? Does I need configure this too?

Pls thorugh some light on this.

Regards,

Usha.