cancel
Showing results for 
Search instead for 
Did you mean: 

copying dates using copy control

Former Member
0 Kudos

Hi All,

I need to copy the header valid_from and valid_to date from one transaction to another.

Im using copy control to copy all header data but the date is not copied from opportunity transaction to quotation or sales transactions.

Within oppurtunity transaction the dates are working fine, since we have opport_h structure. But these values should be moved to appointment structure in quotation or sales transactions. CRM_COPY_BADI have a method DATES but this is not triggering during the copy control.

Thanx

Pandiyan.

Accepted Solutions (1)

Accepted Solutions (1)

former_member202474
Contributor
0 Kudos

Hi,

Plz try the badi 'CRM_DOC_FLOW', method 'CRM_DOC_FLOW_CHECK'. If u want to create a followup quotation from opportunity then the parameters will be

IS_DOC_FLOW_WRK-OBJTYPE_A = 'BUS2000111' AND IS_DOC_FLOW_WRK-OBJTYPE_B = 'BUS2000115'.

Make this check and use a function module to set the valid from and valid to dates of quotation.

          • Reward if useful ****

Regards,

Ruby.

Answers (1)

Answers (1)

former_member202474
Contributor
0 Kudos

Hi,

You can even try the badi 'CRM_APPOINTMENT_BADI' provided proper checks are done.

Regards,

Ruby.

Former Member
0 Kudos

Thanx ruby.

Im able to get the values of the oppurtunity header dates using the doc flow BADI. i want to update the date in the BADI.

Im reading the qoutation header detais using CRM_DATES_READ_SINGLE_OW .

i need a FM to update it the changes.

Former Member
0 Kudos

Got the FM

0 Kudos

Good day.

What is the name of FM?