cancel
Showing results for 
Search instead for 
Did you mean: 

Close date update in CRM Transaction

SrihariNerella
Participant
0 Kudos
507

Hi All,

I am creating one transaction using CRM_ORDER_MAINTAIN.It has appointment dates ( Data of joining , close date ).

Close date is update with the current date but in the file it has old date .

This is occurring due to the condition in configuration as when ever the transaction is completed then change the close date as current date .

I am able to change the close date manually in the transaction but if the same I am updating through "CRM_APPT_MAINTAIN_MULTI_OW" close date is not update with old value .

Is there any procedure to overwrite the date in program . Could you please let me know .

Accepted Solutions (0)

Answers (2)

Answers (2)

ceedee666
Active Contributor
0 Kudos

Hi SriHari,

have you tried implementing your requirement using BOL IMO it is the easier to use API (cf. ).

Christian

stephenjohannes
Active Contributor
0 Kudos

The BOL API is not going to fix this issue.  Honestly this seems to be an issue with the date profile configuration rather than code.  You have to change the configuration of the date profile in this case to remove the date rule if you are going to to run this in batch.  It's next to impossible to code a workaround for this(I know I have tried).

That being said if you need to leave the config in place you might be able to use a custom CRMV_EVENT handler to block the update but that's a bunch of magic that once again does not involve the BOL.  Once again I personally think removing the rule from the date profile is the best path forward if you need to a do a mass update.

I don't have access to SAP CRM system anymore otherwise I might be able to find a few more tricks in the date update logic.

Take care,

Stephen

Saurabh_Kabra
Participant
0 Kudos

Hi SriHari,

Can you please create a BADI implementation for CRM_APPOINTMENT_MERGE? Here you can overwrite the date calculated by system.

Please let know in case you see any issue.

Thanks

Saurabh Kabra

SrihariNerella
Participant
0 Kudos

Hi Saurabh,

Thanks for your reply .

I in the "CRM_APPOINTMENT_BADI" in the method "IF_EX_CRM_APPOINTMENT_BADI~CRM_APPOINTMENT_MERGE"  in CS_APPOINTMENT_BADI I am getting value same as my input file . Close date overwrites after completion of BADI .

Thanks

Srihari