on 2020 May 12 7:14 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.