Behavior: Confirmation for team carts
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:
** 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.
CALL METHOD me->get_item_partners_for_tp
iv_substitute = lv_user
iv_teammember = /sapsrm/if_pdo_search_c=>gc_all_team_members
ev_purchteam = lv_purchteam
* ev_parnter_select_or =
* ev_not_found =
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!