on 06-06-2011 11:02 AM
I made a release strategy, if the quantity of a purchase requisition is under 20 then the requisition will be approved by person A, if it is over 20 it will be approved by person B.
I created a new workflow and i have to determine the approver. How do i calculate the value of the purchase requisition?
Hello !
To calculate the value of purchse requisition document , a piece of ABAP logic has to be developed.
Following is the code :
DATA : totalpr type p decimals 2.
DATA: EBAN_tab TYPE EBAN occurs 0.
SELECT * FROM eban INTO TABLE eban_tab where banfn = purchaserequisition.
LOOP AT eban_tab INTO eban_wa where banfn = PURCHASEREQUISITION .
totalpr = eban_wa-menge * eban_wa-preis + totalpr.
ENDLOOP.
Regards,
S.Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello !
I don't understand what is meant by promotion with regard to purchase requisition document.
If it doesn't have any impact with price or quantity or number of line items, then the same formule would be suffice.Any way, just test whether the promotion causes any impact.
Regards,
S.Suresh
Hello,
Which business object are you using in your workflow? Doesn't it have the value as one of its attributes?
regards
Rick Bakker
hanabi technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.