Hi All,
I have a requirement where the Requirement Pricing Routine Logic checks if the Material Type of the
Product is 'ZTEST' requiremnet should pass else condition type should be inactivated.
For that I have written in java like this,
public boolean checkRequirement(IConditionFindingManagerUserExit item,
IStep step, IAccess access) {
IPricingItemUserExit prItem = (IPricingItemUserExit) item;
String pricingIndicator = item.getAttributeValue("PRICING_INDICATOR");
if (prItem.getProduct().getProductType() != null) {
if ( pricingIndicator.equals("X") &&prItem.getProduct().getProductType().equals("ZTEST") )
{
return true;
}
}
return false;
}
}
While debugging I observed that I am getting the Item number, GUID and also the product no for that item in ecclipse. But couldn't see the product type. how to retrive the product type in priicng in IPC?
Am i missing something in the above.. Please provide some suggestions to get the value ...
Thanks in advance...