cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_CTR_UPDATE

Former Member
0 Kudos

Hi,

We are trying to make changes to contracts replicated from R3 to SRM.

Contracts are created in SRM using BBP_CONTRACT_INITIAL_UPLOAD.

But we cannot find a similar program to copy changes from R3 to SRM.

We have tried the following Function Module:

- BBP_PD_CTR_GETDETAIL

- BBP_PD_CTR_UPDATE

- BBP_PD_CTR_SAVE

But get the following error: "Program error: Call with GUID of change version is"

Any help would be appreciated!

Kind Regards,

Doreen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I think your contract is having a change version - if a change version exists we should update the change version and not the active version.

So yor logic should be like this

1. Call BBP_PD_CTR_GETDETAIL passing Contract ID and get back E_VERSIONS and ES_HEADER

2. In case change version exists (ie E_VERSIONS contains an entry with VERSION_TYPE = C ) --> Get the GUID from E_VERSION-GUID into LV_GUID --> Again do a GET_DETAIL with this GUID (this is the change version)

3. In case no change version exists, take the ES_HEADER-GUID into lV_GUID (this is the active version)

4. Further steps as you have described...

Basically we first have to check if a CV exists. if exists we do a GET_DETAIL of CV and change it. If no CV exists, we try to change the active version (which will in turn create a new CV).

Rgds,

Prasanna

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank-you Prasanna,

I can see the change version in BBP_PD,

But how do I go about changing pricing conditions?

Looks like I can only have one condition at a time, is this correct?

Kind Regards,

Doreen

Former Member
0 Kudos

Hi,

Before BBP_PD_CTR_SAVE , call the FM BBP_PD_CTR_GETDETAIL and get the chnage version guid from the above function module.

use the change version guid when using the FM BBP_PD_CTR_SAVE.

Cheers

Iftekhar Alam