Spend Management Blogs by SAP
Stay current on SAP Ariba for direct and indirect spend, SAP Fieldglass for workforce management, and SAP Concur for travel and expense with blog posts by SAP.
cancel
Showing results for 
Search instead for 
Did you mean: 
ivy_li
Advisor
Advisor
0 Kudos
666

Recently I found one interesting behavior in POWL for 'Confirmations for team carts':

=====

User A and User B are substitues for each other.

User B creates one shopping cart and mark it as team cart.

User A creates confirmation for this team cart.
If logging on as user A, this user will be able to see this confirmation in both tab 'Confirmation' and 'Confirmation for team carts'.

If logging on as user B, this user will only be able to see this confirmation in 'Confirmation' tab.

=====

The design in coding is as below:

Class /SAPSRM/CL_PDO_SO_SEARCH_CNF2

Method EXECUTE_SEARCH_PURCHTEAM.

..

** Partner data for all Team members
**Code changes by C5087087
 
IF ms_search_criteria-showonlyteamcarts = 'X'.
    lv_purchteam
= /sapsrm/if_pdo_constants_gen_c=>gc_tp_teamcart.
 
ENDIF.

 
CALL METHOD me->get_item_partners_for_tp
  
EXPORTING
      iv_substitute       
lv_user
      iv_teammember       
/sapsrm/if_pdo_search_c=>gc_all_team_members
   
IMPORTING
      ev_purchteam        
lv_purchteam
*    ev_parnter_select_or =
*    ev_not_found         =
   
CHANGING
      ct_item_partners    
lt_item_partners.
**End of code chanegs by C5087087
******* Special Team Purchasing *********

...

This will list all the substitutes for the logged user, and only confirmations which requester is the substitute can be listed in 'Confirmation for team carts'.


Some end users might feel confused about this functionality. So I created this for your reference.

Hope it helps!