on 08-27-2009 8:20 PM
Hi,
we have a problem in the CRM ISA-B2B scenario where the custom user exit is only working for single condition type.
but we need it for multiple condition types .
the value of the subtotal is not being retrieved for multiple conditions. at a time only one condition value is being retrieved and shown in the webshop - shopping basket.
for ex:
we have scenario 1 where Y001 -Freight condition type is applicable for one customer.and Y002 is applicable for another customer.
when we are trying to show the subtotal condition value in the webshop by using a single custom user exit in the pricing procedure it is only working for either of the above 2 customers depending on the VMC cache status.
is there any problem if use the single user exit for both condition types?
and if it needs to be differentiated how exactly we can do that with the same logic in the java class.
Thanks in advance,
PSR.
Hi Sri,
Can it be possible to maintain a table where you can assign condition type for specific customer.
This will be very dynamic solution if you could do that.
You just need to match the condition type as per customer and fetch the according subtotal value which you can adapt in your abap code very easily.
Hope this will help.
Regards,
Prashil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sri,
I think there is some mistake in your code...
"@'-this not a subtotal right?
You have to specify proper char value of the corresponding sub totoal.
for freight the standard subtotal is 4.
I think this may be the error ....
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sri,
Can you please post your java code here.
Regards,
Arshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arshi,
below is the code:
public class ZValFormula_ZZWI1 extends ValueFormulaAdapter {
private static String zzwi = "ZZWI1";
private static char zzwiC = '@';
private static UserexitLogger userexitlogger = new UserexitLogger(
ZValFormula_ZZWI1.class);
public BigDecimal overwriteConditionValue(IPricingItemUserExit item,
IPricingConditionUserExit condition) {
ICurrencyValue val = condition.getConditionValue();
userexitlogger.writeLogDebug( "value saved for " + zzwi + " (" + zzwiC + ") = "
+ val.getValueAsString());
item.setSubtotal( zzwiC, val.getValue());
return val.getValue();
}
}
hope this would give more idea to look at the problem.
Thanks,
PSR
User | Count |
---|---|
5 | |
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.