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_criteriashowonlyteamcarts = ‘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!

To report this post you need to login first.

Be the first to leave a comment

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

Leave a Reply