BADI BBP_WFL_APPROV_BADI is not getting the shoppingcartdetails.

Hill, Anna anna.hill at sap.com
Tue Mar 1 06:28:48 EST 2005


Thanks for this tip Jocelyn - it definitely sounds like a better
alternative!

 

Cheers

Anna

Anna Hill
Technology Consultant 

SAP (UK) Ltd
Clockhouse Place, Bedfont Road,
Feltham, Middlesex TW14 8HD 

T   +44 (0)20 8917 6125
F   +44 (0)20 8917 6461
M  +44 (0)7966 975125
E   anna.hill at sap.com <mailto:kevin.richardson at sap.com>  

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Dart, Jocelyn
Sent: 01 March 2005 06:37
To: SAP Workflow Users' Group
Subject: RE: BADI BBP_WFL_APPROV_BADI is not getting the
shoppingcartdetails.

 

For the sake of all, 

There is also an SPA/GPA parameter you can set in your user data (SU01,
Parameters tab) called BBP_TRACE. 

Set this to value 'X', and several of the workflow function modules will
save the data used for the call in the test data of the function module.

Then you can rerun the function module with the same data - much less
intrusive than infinite loops. 

Your colleagues will thank you. 

To find out which function modules use this, do a where-used on function
module BBP_TRACE_TESTDATA_CREATE and check out the calls. 

e.g. for people trying out item level approval it works for
BBP_WFL_DIN_ITEM_APPR_CHECK4.

For others it works for BBP_PDH_WFL_DB_UPDATE_BACK.

Works in SRM 3.0 (EBP 4.0) and SRM 4.0 (EBP 5.0).

 

And you were wondering how the developers debug this stuff...

 

Enjoy

Jocelyn 

	 

	
________________________________


	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]
On Behalf Of Hill, Anna
	Sent: Monday,28 February 2005 8:09 PM
	To: SAP Workflow Users' Group
	Subject: RE: BADI BBP_WFL_APPROV_BADI is not getting the
shoppingcartdetails.

	Hi Johnson

	 

	You can debug the Badi by putting and endless loop in it, and
when you press the approval preview or order the shopping cart, the code
will get stuck in the loop. If you then go to SM50, you can debug from
there. It might be a good idea to put the endless loop inside an if
statement against your user ID. Hopefully you'll now be able to identify
what the problem is.

	 

	Good luck!

	Anna 

	 

	Anna Hill
	Technology Consultant 

	SAP (UK) Ltd
	Clockhouse Place, Bedfont Road,
	Feltham, Middlesex TW14 8HD 

	T   +44 (0)20 8917 6125
	F   +44 (0)20 8917 6461
	M  +44 (0)7966 975125
	E   anna.hill at sap.com <mailto:kevin.richardson at sap.com>  

	
________________________________


	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]
On Behalf Of Zavier, Johnson
	Sent: 25 February 2005 19:26
	To: sap-wug at mit.edu
	Subject: SRM: BADI BBP_WFL_APPROV_BADI is not getting the
shopping cartdetails.

	 

	Hi All,

	 I am trying to implement workflow 14000133 : Approval Shopping
Cart n-Level (BADI).

	 I have activate the BADI and included my code to find the agent
using a table defined by us. This table is keyed on material category
from the shopping cart  line item.

	When the workflow was executed,  it does executes the BADI
however failed to get the shopping cart details and hence find the
agent. I have hard coded Agent name and it was able to pass back to
workflow. 

	 I have implemented OSS note 717601 and still does not get the
shopping cart details. I could not find another related notes for this
workflow and this BADI.  When I test the badi from SE19, it does find
the agent correctly.

	I am not able to debug this BADI from the SRM portal. 

	Any suggestions/help  how can I get the agent based on the
product category stored as line item data.

	We are on SRM_SERVER release 500, Support package SAPKIBKS04.

	Program code to read the shopping cart was as below. I tried
with only object_id(REQ number) and it didn't get details. Also tried
with I_WITH_ITEMDATA                  = 'X' and commented too.

	 

	      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'

	       EXPORTING

	         i_guid                      = lv_guid

	         i_object_id                 = object_id

	*        I_WITH_ITEMDATA             = 'X'

	      IMPORTING

	        e_header                     = ls_header

	*   EV_IS_PD                         =

	*   ET_ATTACH                        =

	 TABLES

	   E_ITEM                            =  gt_item

	   e_messages                        = lt_messages.

	*   E_ACCOUNT                        =

	*   E_PARTNER                        =

	*   E_ORGDATA                        =

	*   E_TAX                            =

	*   E_PRIDOC                         =

	 

	thanks

	Johnson Zavier

	SAP ABAP/Workflow 

	Project Cornerstone, 1721D

	Suncor Energy Inc.

	Work: (403) 693 1893

	e-mail: jzavier at suncor.com

	--------------------------------------------------------------

	This e-mail contains confidential information.  If you are not
the intended recipient or have received this e-mail in error, please
notify the sender immediately and destroy this e-mail.  Any unauthorized
copying, disclosure or distribution of the e-mail or the information it
contains, is strictly forbidden.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050301/baafe41e/attachment.htm


More information about the SAP-WUG mailing list