Skip to Content
0
Former Member
Jan 28, 2010 at 07:33 AM

IPC: How to read the Condition Rate(KBETR) in Java checkRequirement method.

181 Views

Hi Experts,

As part of an IPC development, we need to read the Condition Type Rate (KBETR) in a Requirement Formula. The condition rate is the rate for the current record of the pricing procedure, e.g. Condition Type ZAB1.

I can successfully read the condition rate in a Value formula using this piece of code:

public BigDecimal overwriteConditionValue(IPricingItemUserExit pricingItem,IPricingConditionUserExit pricingCondition) {

BigDecimal ZConditionRate = pricingCondition.getConditionRate().getValue();

}

In a Value Formula "IPricingConditionUserExit pricingCondition" is a input parameter of the overwriteConditionValue() method. However in a Requirement formula the standard method checkRequirement(IConditionFindingManagerUserExit item, IStep step, IAccess access) does not have any parameter which can give me the rate.

I wrote the following logic in the requirement class, but line 2 is not executed.

1. public boolean checkRequirement(IConditionFindingManagerUserExit item, IStep step, IAccess access) {

2. IPricingConditionUserExit pricingHeader = (IPricingConditionUserExit) item;

3. BigDecimal ZConditionRate = pricingHeader.getConditionRate().getValue();

}

Please suggest how we can retrieve the condition rate in a requirement formula class using teh standard methods & classes.