FloatMember four = new FloatMember ( "Price" , new Float( price ) , 10 , "", 'T' , true , 10 );
FloatMember listprice = new FloatMember ( "ListPrice" , new Float( lprice ) , 10 , "", 'T' , true , 10 );
FloatMember cost = new FloatMember ( "Cost" , new Float( costprice ) , 10 , "", 'T' , true , 10 );
ItemElement ele = new ItemElement( promotionID );
ele.put("LineId", lineid );
ele.put("PromotionID", one );
ele.put("ItemId", two );
ele.put("Value" , three );// Quantity
ele.put("Type" , Rule );//Rule
ele.put("DiscountedPrice" , four );//Price
ele.put("Description" , desc );//Desc
ele.put("SKU" , sku );//SKU
ele.put("ListPrice" , listprice );//ListPrice
ele.put("Cost" , cost );//Cost
StringBuffer sb = new StringBuffer("00000000000");
sb.setLength(11);
String str = (new Integer(i)).toString();
sb.replace((sb.length()-str.length()),(sb.length()),str);