Spend Management Blogs by Members
Check out community member blog posts about spend management and SAP Ariba, SAP Fieldglass, and SAP Concur solutions. Post or comment about your experiences.
cancel
Showing results for 
Search instead for 
Did you mean: 
vinita_kasliwal
Active Contributor
1,536

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:  service.sap.com/sap/support/notes/1507030

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

BUT000

BBPD_PD_INDEX_H

BBPD_PD_INDEX_I

CRMD_PARTNER

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_but000-XUBNAME
                  changed_by = e_but000-XUBNAME
              WHERE guid = ls_header-guid
               AND  object_type = obj_type.

       LOOP AT lt_item INTO ls_sc_item .
         UPDATE crmd_orderadm_i
             SET created_by = e_but000-XUBNAME
                 changed_by = e_but000-XUBNAME
                WHERE guid = ls_sc_item-guid.
       ENDloop.

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

2 Comments