cancel
Showing results for 
Search instead for 
Did you mean: 

Close date update in CRM Transaction

SrihariNerella
Participant
0 Kudos
501

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 .

View Entire Topic
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