I have what sounds like a simple requirement, but I have yet to find a way to do it. I have a shopping cart that is "awaiting approval". I want to change the requester of the shopping cart. I have tried using BBP_PD_SC_UPDATE, and it will update header fields like description, but it won't update the partner functions. Is there a way this can be done?
I figured it out. You can use BBP_PD_SC_UPDATE to change the requester of a shopping cart. First you get the details of the old shopping cart using BBP_PD_GET_DETAIL. Then set your new partner as follows:
new_partner-partner_id = [partner id of new requester].
new_partner-partner_no = [guid of new requester].
new_partner-partner_fct = old_partner-partner_fct.
new_partner-mainpartner = old_partner-mainpartner.
new_partner-partner_guid = old_partner-partner_guid.
new_partner-client = old_partner-client.
new_partner-p_guid = old_partner-p_guid.