cancel
Showing results for 
Search instead for 
Did you mean: 

EBP PO Created by WF-BATCH

Former Member
0 Kudos

Hi,

We are using SRM 5.5, ECC 6.0, ECS. The PO's created from SRM in ECC say that "EBP PO ##### Created by WF-BATCH", and probably for this reason, if I go in to create an invoice and search for the PO's I created I am unable to find them, whereas if I use Central Invoice entry, I can find them under created by (WF-BATCH).

So I saw these two OSS notes 988490 & 990767, and applied them but still my PO's are posted under WF-BATCH's name. Can someone tell me how to pass the requester's name in the PO to ECC?

Thanks in adavnce.

Sreedhar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Please refer to following SAP OSS notes.

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

Note 690147 - SRM-EBP-PD: Background user as creator of local order

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

Incase these does not help, we can use any of the following BADIs to change theCreator name.

BBP_CREATE_BE_PO_NEW                                          Exit while creating a purchase order in the backend system   

BBP_CREATE_PO_BACK                                            OLD Exit while creating a PO in the backend system           

BBP_ECS_PO_OUT_BADI                                           ECS: PO Transfer to Logistics Backend                        

BBP_EXTLOCALPO_BADI                                           Control Extended Classic Scenario                            

BBP_GROUP_LOC_PO                                              Exit Grouping of Items for Local Purchase Orders            

Regards

- Atul

Former Member
0 Kudos

Atul,

Thanks for the response, but none of those notes helped me. Can anyone tell how we can pass the requestors name to the PO in the backend from SRM. Currently it says "EBP PO ### is created by WF-BATCH"

Thanks,

Sreedhar

Former Member
0 Kudos

Hey Sreedhar,

WF_BATCH comes in case if you have selected do not carry out sourcing and your shopping cart does not go to sourcing- PO is created automatically and is transfered to backend. But if your shopping cart is coming to sourcing cockpit then you create PO manually and goes to backend with the requestor name as the person who has created shopping cart. So please check if your settings are correct?

Thanks and Regards

Kapil

Former Member
0 Kudos

Hi

<u>Technical Solution using BADIs</u>

Incase you want to do it using Business Add-Ins then you need to implement the BBP_CREATE_PO_BACK BADI in your system.

You need to take help of any ABAP resource to get this done.

<b>Here is the code to change the Requestor name from 'WF-BATCH' to the required requestor name.</b>

METHOD if_ex_bbp_create_po_back~fill_po_interface.

  DATA: ls_po_items        TYPE bbps_bapiekpoc,
             l_tabix                TYPE sy-tabix,
             ls_po_account     TYPE bbp_bapiekkn.

  LOOP AT po_items INTO ls_po_items.

*--- Loop counter
    l_tabix = sy-tabix.

    READ TABLE po_item_account INTO ls_po_account INDEX l_tabix.
    IF sy-subrc EQ 0.
**** In the case of  the Back-end Purchase Order, the Requisitioner name
**** should pickup the Shopping cart creator name from EBP
      ls_po_items-preq_name = ls_po_account-gr_rcpt.
    ENDIF.
    MODIFY po_items FROM ls_po_items TRANSPORTING preq_name.

  ENDLOOP.

**** Also modify the PO creator name with the requestor name
  po_header-created_by = ls_po_account-gr_rcpt.

ENDMETHOD.

Regards

- Atul

Former Member
0 Kudos

Atul/Kapil,

Thanks for your responses, but we are not using sourcing cockpit to convert PR's to PO's. We are creating them automatically (Catalog or non-catalog), so is there any other way or any other field that we can use to pass the requestor's name to the backend PO.

Thanks,

Sreedhar