Hi all,
I have developed an IPC for Pricing User Exit.
My formula fto be coded in Java was :
FORM FRM_STAFFELBAS_905.
*{ INSERT BSCK900443 1
E036 2.1.5.5
xkwert = komp-zzunitwgt.
*} INSERT
ENDFORM.
I have summarized what I have done with the method names .
But I am not sure whether Is this practice will bring a good result.
1. getConditionValueFormulaNumbers
Here I have specified my User Exit Number 905
2. determineRelevantAttributesForValueFormula
Here I have registered the Z variable like this
case 912 :
relevantAttributes = new String[] { "ZZUNITWGT" };
break;
3. overwriteConditionValue
Here i have coded the action as below :
String ordType = new String();
switch (valueFormNo) {
// Routine 912
case 912 :
try {
// Get the Value
ordType =
prItem.getItemAttributeValue(
CustomizingConstants
.AttributeNames
.freeQuantity)
.getValue().trim();
return BigDecimal.valueOf(Long.parseLong(ordType));
}
catch (Exception e) {
log_api.log_write_msg("SPE", "PricingUserExists", 1, "Exception raised");
return null;
}
*******************************************
Please analyze the Code above and let me know your view at the earliest.
Thanks
kamesh