cancel
Showing results for 
Search instead for 
Did you mean: 

Shop on behalf of functionality

Former Member
0 Kudos

Hi SRM gurus,

We have an issue in the "Shop on Behalf of " functionality.

Our purchaser shops for the employee and is able to create a shopping cart.

But we see that the approvers meant for our employee is not visible in the approval preview rather the managers meant for purchaser is seen because the WF for the employee is not triggered.

Our requirement is when our purchaser creates a SC, the employee's managers should get this SC for approval.

Any suggestions.

We have nstep BADI WF ( 140000133) for SC and our abaper looking into the code says that there is no field which catches the employee except the one in the final description (EMPLOYEE 05.06.07 ). Any clues please.

We are on SRM 4.0, patch level 00008

Best reg.,

Sridhar.

Message was edited by:

P.T. Sridharbabu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

<b><u>This is quite easily possible.</u></b>

<u>Ask you ABAPER to fetch the Shopping cart details, user BBP_PD_SC_GETDETAIL function module.</u>

<u>The BADI - BBP_WFL_APPROV_BADI contains the parameters

OBJECT_ID, GUID and OBJECT_TYPE. Implement the BADI for the Filter type - BUS2121 (shopping cart).</u>

*--- Get the details of the shopping cart
  CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
    EXPORTING
      i_guid          = l_guid
      i_object_id     = object_id
      i_with_itemdata = 'X'
    IMPORTING
      e_header        = ls_header
    TABLES
      e_item          = t_item.

<u>E_HEADER (ls_header here) structure will contain field called created_by (which will the Employee name - Requisitioner in that case).</u>

Hope this will defintely help.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

E_HEADER (ls_header here) structure will contain field called created_by (which will the Employee name - Requisitioner in that case).

but in this

created_by is giving the syuname (system user name) but not the name of the

(emloyee-name -requistioner)

Please look into the issue once.

Thanks.

Former Member
0 Kudos

Hi

Seems to be a bug ?

Be sure, that you take a Shopping cart, which is already approved by at least one Manager and then see, what name comes in the Requisitioner / Employee name in the the field ?

<b>Please cross-check the Requsitioner name in the BBP_PD transaction for the same Shopping carts as well.</b>

<u>Meanwhile, please look at the following SAP OSS Notes -></u>

Note 1023449 - Shop on behalf: PO creator set as requestor of shopping cart

Note 921531 - Background step in SRM workflow not executed under WF-BATCH

Note 895860 - Shop on behalf: Wrong requestor on copy from Old templates

Note 742261 - Buying on behalf: Requestor is incorrect

Hope this will help.

Regards

- Atul