cancel
Showing results for 
Search instead for 
Did you mean: 

Why is BBP_WF_LIST not displaying the correct PO worklist?????????????

Former Member
0 Kudos

Hi SRM Gurus,

My requirement is to display only those Purchase Orders to the user that he has created once user clicks on Purchasing Tab->Ordered or Refresh Button .

In order to achieve this requirement, I implemented the method 'BBP_WF_LIST' of BADI 'BBP_WF_LIST' for filter type = 'BUS2201'and inserted the following code:-

li_list1[] = e_pdlist[].

  • Looping at PO List

LOOP AT li_list1 INTO lx_pdlist.

  • Getting the PO details through function module

CALL FUNCTION 'BBP_PD_PO_GETDETAIL'

EXPORTING

i_guid = lx_pdlist-guid

IMPORTING

e_header = lx_header

TABLES

e_item = li_item.

IF NOT li_item IS INITIAL.

SORT li_item BY number_int.

  • Read first line item

READ TABLE li_item INTO lx_po_item

WITH KEY number_int = c_num

BINARY SEARCH.

IF sy-subrc = 0.

  • Call FM to get details for shopping cart item

CALL FUNCTION 'BBP_PD_SC_ITEM_GETDETAIL'

EXPORTING

i_guid = lx_po_item-src_guid

IMPORTING

e_item = lx_sc_item.

IF NOT lx_sc_item IS INITIAL.

IF lx_sc_item-created_by = sy-uname.

APPEND lx_pdlist TO li_list.

ENDIF.

ENDIF.

ENDIF.

ENDIF.

ENDLOOP.

ENDIF.

refresh e_pdlist.

e_pdlist[] = li_list[].

SORT e_pdlist BY object_id.

Now when I debugged this BADI , the logic is working fine and finally E_PDLIST[] holds only the list of Purchase Orders that meet our requirement but thw worklist that is finally displayed shows all the POs that exist in the system.

Kindly provide me the solution for the same at the earliest.Have to deliver the object by tommorrow.

Thanks in Advance,

Swati

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

<u>Which SRM version are you using ?</u>

<u><b>Please see the below mentioned SAP OSS Notes, which will help -></b></u>

<u>Note 1113156 Post processing of BAdI BBP_WF_LIST not correct</u>

Note 1018095 BBP_WF_LIST: Only documents for employees from one team

<u>Note 557295 Changes in the interface of BBP_WF_LIST</u>

Note 386468 Backend POs not taken into account in BADI BBP_WF_LIST

<u>Note 549846 FAQ: Goods receipt confirmation</u>

<u>Other related SAP OSS Notes -></u>

Note 691300 Transfer of BE_ITEM_SRV to BADI BBP_WF_LIST

Note 972773 No R/3 purchasing org or purchasing group in BBP_WF_LIST

Note 549383 BBP_WF_LIST: Only documents for employees from one team

Note 438793 Transfer of BE_ITEM_SRV to BADI BBP_WF_LIST

Note 508386 Sorting the list during searching

Note 457357 Worklist: Confirmation and invoice for desktop user

Note 423518 Number of the purchase orders in list

Do let me know.

Regards

- Atul

khan_voyalpadusman
Active Contributor
0 Kudos

can you check (debug) what happens in FM ---> BBP_PD_SC_LISTSEL where this BADI is called.

this FM is the only place where the BADI is called

please check the following code --> in the above FM , according to you if your BADI gives correct result , then there should be problem later.

-


>

*.....call BADI

CALL METHOD lv_exit1->bbp_wf_list

EXPORTING

flt_val = c_shop

i_pdlist = lt_e_pdlist

CHANGING

e_pdlist = lt_i_pdlist.

*.....process exported table

IF NOT lt_i_pdlist[] IS INITIAL.

LOOP AT lt_i_pdlist INTO wa_i_pdlist.

READ TABLE lt_pdlist WITH KEY guid = wa_i_pdlist-guid.

IF sy-subrc = 0.

CLEAR e_pdlist.

MOVE-CORRESPONDING lt_pdlist TO e_pdlist.

APPEND e_pdlist.

ENDIF.

ENDLOOP.

-


>

please check wether the badi is called at all during the display of purchase order worklist.

from the where-used list , i was called just for display of shopping cart list.

Message was edited by:

khan voyalpad usman

Former Member
0 Kudos

Hi Swati,

"The transaction BBPCF03 'Confirm Goods Services centrally' uses the attribute SYS in PPOMA_BBP to determine which systems are to be searched to find Purchase Orders for confirmation.

These systems are then searched to find open Purchase Orders; these

POs are then returned to the users worklist regardless of the organization.

This is the standard design. The note 361545 explains the search

criteria that can be used to restrict the POs returned.

If you would like an option to further restrict the worklist

returned, the users worklist can be restricted by use of the BADI

BBP_WF_LIST.

With this BADI you can tailor the display of worklists and

search results for purchase order documents.

Please use this BADI to control the worklists that are displayed

for users across your various companies.

Hope this helps to resolve this issue."

Reward pts if useful.

Regards

Sreenivas