BADI BBP_WFL_APPROV_BADI is not getting APPROVAL_HISTORY_TABLE

Dart, Jocelyn jocelyn.dart at sap.com
Wed Mar 2 20:52:30 EST 2005


Johnson,
Please report it to OSS. 
Jocelyn  

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Zavier, Johnson
Sent: Wednesday,2 March 2005 3:20 AM
To: sap-wug at mit.edu
Subject: BADI BBP_WFL_APPROV_BADI is not getting APPROVAL_HISTORY_TABLE 

Thanks Jocelyn.. That is very helpful.

I have another situation where need to get the actual agents previously
approved in a 4 step approval workflow of shopping cart. As I mentioned
before I am using 14000133. It is working fine except that the
APPROVAL_HISTORY_TABLE was not populated. I found one note 722522
exactly deal with this problem and it was already implemented in our
system. So I am clueless where is going wrong?.

We are running SAP Component version SRM 4.00, SRM_SERVER release 500,
Support package SAPKIBKS04, SAP Basis support package SAPKB64010.


thanks
Johnson Zavier
SAP ABAP/Workflow 
Project Cornerstone, 1721D
Suncor Energy Inc.
Work: (403) 693 1893
e-mail: jzavier at suncor.com

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of sap-wug-request at mit.edu
Sent: Monday, February 28, 2005 11:38 PM
To: sap-wug at mit.edu
Subject: [SPAM] - SAP-WUG Digest, Vol 4, Issue 2 - Email found in
subject

Date: Tue, 1 Mar 2005 14:37:27 +0800
From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Subject: RE: BADI BBP_WFL_APPROV_BADI is not  getting the
shoppingcartdetails.


For the sake of all,=20
There is also an SPA/GPA parameter you can set in your user data (SU01,
Parameters tab) called BBP_TRACE.=20
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.=20
Your colleagues will thank you.=20
To find out which function modules use this, do a where-used on function
module BBP_TRACE_TESTDATA_CREATE and check out the calls.=20
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).
=20
And you were wondering how the developers debug this stuff...
=20
Enjoy
Jocelyn=20


________________________________

	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.
=09
=09

	Hi Johnson

	=20

	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.

	=20

	Good luck!

	Anna=20

	=20

	Anna Hill
	Technology Consultant=20

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

	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> =20

=09
________________________________


	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.

	=20

	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.=20

	 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.=20

	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                  =3D 'X' and commented too.

	=20

	      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'

	       EXPORTING

	         i_guid                      =3D lv_guid

	         i_object_id                 =3D object_id

	*        I_WITH_ITEMDATA             =3D 'X'

	      IMPORTING

	        e_header                     =3D ls_header

	*   EV_IS_PD                         =3D

	*   ET_ATTACH                        =3D

	 TABLES

	   E_ITEM                            =3D  gt_item

	   e_messages                        =3D lt_messages.

	*   E_ACCOUNT                        =3D

	*   E_PARTNER                        =3D

	*   E_ORGDATA                        =3D

	*   E_TAX                            =3D

	*   E_PRIDOC                         =3D

	=20

	thanks

	Johnson Zavier

	SAP ABAP/Workflow=20

	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.


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list