cancel
Showing results for 
Search instead for 
Did you mean: 

Contract Active Version Update is NOT working

Former Member
0 Kudos

Hi GURUS,

I need help. I am updating the items value of a contract using the FMs:

- BBP_PD_CTR_LOCK

- BBP_PD_CTR_UPDATE

- BBP_PD_CTR_SAVE

- BBP_PD_CTR_UNLOCK

My conctract is not getting updated: the actvive version is not getting updated. I have tried to update the Change version and saw that this is working and the updated values are getting populated correctly. The active version though, remains NOT updated.

I really need to update the active version and not the change version.

Can anybody suggest me?

Thanks

Edited by: Michele Camuri on Apr 16, 2009 6:06 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Michele,

Instead of:

- BBP_PD_CTR_LOCK

- BBP_PD_CTR_UPDATE

- BBP_PD_CTR_SAVE

- BBP_PD_CTR_UNLOCK

Use the following:

- BBP_PD_CTR_LOCK

- BBP_PD_CTR_GETDETAIL (See below)

- BBP_PD_CTR_UPDATE

- BBP_PD_CTR_SAVE

- BBP_PD_CTR_UNLOCK

Use tbl E_VERSION to get the latest version

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

LOOP AT e_version INTO ls_version

WHERE version_type = gc_c.

EXIT.

ENDLOOP.

  • --> Again do a GET_DETAIL with the above GUID and use this with the next FMs

Regards,

Doreen

Former Member
0 Kudos

Hi Doreen,

thanks again for the answer! just an additional question...am I supposed to call also BBP_PD_CTR_STATUS_CHANGE in order to release it?

thanks!