Prolem with SAP EBP 3.5 WF: Custom approver finding strategy for 1 and 2 step Shopping cart approval
Christian Baessler
Christian.Baessler at gmx.net
Sun Feb 23 23:38:37 EST 2003
Hi,
I try to change the approver finding strategy for shopping carts in EBP 3.5.
Therefore I made the changes as mentioned in chapter 15.2 of Jocelyn and
Alan's book (Jocelyn: thanks for the additional info).
My goal is to use cost center, G/L account of the most expensive line item
(in case each line item has different GL anc CC) and the total amount of the
shopping cart for the approver finding mechanism.
- I created a Subtype of AAGENT (ZAAGENT)
- I repointed AGENT_0001 to this new subtype ZAAGENT
- I recreated the method CREATE
- testwise I hardcoded an approver: -> works fine so far.
My problem(s):
- for this kind of approver finding strategy I need the G/L account and CC
and total amount, which I implemented as an attribute in the Object Shopping
Cart (BUS2121, added through a delegated subtype).
I need these values in the my Object ZAAGENT, so that I can use it in the
ZAAGENT.CREATE method to determine my approvers ?!
In the book is mentioned, that I should read the containerelement "reqreq"
(with reference to chapter 8)
1) I am not totally sure how to do that ?
-I tried to addfor my subtype ZAAGENT another attribute SC with reference to
BUS2121. Than I experience the problem that this value is not filled (of
course not, why should it be)
- I tried to read the value for reqreq in the ZAAGENT.CREATE methos with
SWC_GET_PROPERTY -> did not work.
Any ideas, recommondations ?
2) What kind of key does AAGENT / ZAAGENT use ? It"s a kind of a long
hex-value, but I cannot find out if or how that relates to the reqreq ?
Can I get the reqreq attributes by that key ?
3) does it work also with the "Approver Preview" in the
frontend-transactions?
Any ideas, in which direction I should research ??
Thanks
Christian
More information about the SAP-WUG
mailing list