on 04-16-2009 5:05 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.