cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update Contract

Former Member
0 Kudos
724

Hello Experts,

I have a requirement to update the contract end date when the contract is closed.

If the end date is in future date then it should be updated to current date while it is closed.

I have used the FM 'BBP_PD_CTR_UPDATE' and BBP_PD_CTR_SAVE for updating. But once the contract is closed the change is updated in the closed version and its not reflecting in the current active version of contract. I have tried to update the changes in both the Active version and change version guid's. But it is not working as expected.

How do we update the enddate 'Vper_end' when the Contract close button is pressed. Please assist me.

Thanks in Advance.

Arun.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Arun

Did you try BBP_DOC_CHANGE_BADI and update the value of end date there?

If you want to only change this during the close button then you should add an event when that event is run only then the doc_change specific logic should run.

Or you could debug the /SAPSRM/CL_PDO_BO_CTR and find some place to code in

Let me know if that helps.

Regards

Vinita

Former Member
0 Kudos

Hi Vinita,

Normally even if we close the contract manually by doing any change in the contract then those changes will not be saved, we have to release the contract and then close it to save the changes.

So in our case we have to create a change version and update the changes and release it When the contract Close button is pressed.

When i try to update the contract using the above mentioned FM's then change version is created but the changes are saved in the closed version and not updated in the new open version.

Thanks and Regards,

Arunagiri.

Former Member
0 Kudos

Hi Arun

Did you try BBP_DOC_CHANGE_BADI and update the value of end date there?

If you want to only change this during the close button then you should add an event when that event is run only then the doc_change specific logic should run.

Or you could debug the /SAPSRM/CL_PDO_BO_CTR and find some place to code in

Let me know if that helps.

Regards

Vinita