How to deal with carts for users who has left the organization :

Have you encountered issues with the SC  Awaiting approval  which needs to be deleted  OR

SC displays error message which needs to be corrected before it can be deleted  ” Document should be recalled before doing any change “ Since you are not the owner you cant recall it back OR

You just need to change the owner of the SC .

Incase the existing user is no longer assigned to the org structure it  becomes more difficult This might give you all kind of errors when I  tried from the portal and it gives error : PPOSA_BBP since the user has already left the organization

Refer  to the SAP Note document:

There is a report ‘z_change_pguid_002.txt” in the Note and when executed It updates the below tables :





The report which executed   would give you the below screen :

To fill  values in 1 and 2 you need to enter the Value of Business partner  which is coming from table BUT000 which is found in the below requester having Partner function ’16’  which is for SC owner .

And as shown below it is for the Business partner value in BUT000

OR you can use the BP which comes from Txn pposa_bbp which is 46

All the relevant tables are updated by the report EXCEPT for tables : CRMD_orderadm_h ; CRMD_orderadm_I

Modify the code as attached with the below piece adding it into the existing code as shown in SAP note to update the above 2 Tables as well

and the user ID can be fetched from a FM .

Lt_item would be coming as output from FM BBP_PROCDOC_GETDETAIL

and XUBNAME as importing parameter output from FM BUP_PARTNER_GET

if lt_item is not INITIAL.
UPDATE crmd_orderadm_h
              SET created_by = e_but000XUBNAME
                  changed_by = e_but000XUBNAME
              WHERE guid = ls_headerguid
               AND  object_type = obj_type.

       LOOP AT lt_item INTO ls_sc_item .
         UPDATE crmd_orderadm_i
             SET created_by = e_but000XUBNAME
                 changed_by = e_but000XUBNAME
                WHERE guid = ls_sc_itemguid.

Once we modify the code and execute the report the old SC can be transferred to the new owner. In the backend check majorly the changes in :

– Created By field at Header

– Go to Partner >> requester and you would see the change in PARTNER field for table BUT000

Thanks to  Laurent Burtaire who made me aware of this report so that I could do the change easily with a very little customization

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

Leave a Reply