on 2005 Aug 02 8:03 PM
Hello,
We have a pricing condition which require to read sub-items of a certain type in order to add subtotals.
I don't know how I can access to other items data in the method "overwriteConditionValue".
I tried the method "getSubPricingItemsUserExitRecursive()" of Interface "IPricingItemUserExit" but I don't really know how it works...
Could someone help me ?
Thanks,
Benoî
Hello Benoît
This method returns all of the subitems as an array. You can then iterate over the array and read each one.
Eg:
// Get the sub-items
IPricingItemUserExit[] prSubItems = prItem.getSubPricingItemsUserExitRecursive();
// Now you have all the sub-items in array prSubItems.
// Let's loop through them:
for (int j = 0; j < prSubItems.length; j++) {
// Add up the sub-items Subtotal
// need some Java addition logic here...
prSubItems[j].getSubtotal(PricingCustomizingConstants.ConditionSubtotal.SUBTOTAL_1);
}
In the delivered SAP standard routines, there is a condition value routine 36 that uses the method. Have a look.
Check in file CRMStandardExits.java.txt .
Good Luck
Dom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have you put it into here:
public int[] getConditionValueFormulaNumbers() {
return new int[] { 927 };
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I have a message that said that my routine (N° 927) is not implemented in the module PricingStandardExits...
I don't undertand what happened,
Thakns for help,
Benoî
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.