on 02-23-2006 12:10 PM
Hello all,
In ISA b2b application I need to add a new column with gross value for products in catalog. Here is how I've tryed :
</i>
<!-- CBI Added gross price -->
<td align="right" >
<%IPCItem priceRef2;
try {
priceRef2 = (IPCItem) item.getItemPrice().getPriceInfo()
.getPricingItemReference();
if (priceRef2 != null) {
DimensionalValue grossValue = priceRef2
.getGrossValue();
%>
<%=grossValue.getValueAsString() + " "
+ grossValue.getUnit()%>
<% } else {
%><isa:translate key="z_catalog.isa.nogrossvalue"/> <% }
} catch (Exception e) {
%><isa:translate key="z_catalog.isa.ipcexception"/>
<%} %>
</td>
<!-- CBI Added gross price -->
</i>
The problem is that the gross value is the same with the net value.
I've try also using <i>item.getItemPrice().getPriceInfo().getAllPriceInfos()</i>
where item is WebCatItem, and retrive an array of PriceInfo (s) with only one PriceInfo object which has the type <b>netValue</b>.
Then in the backendobject-config.xml I've modify the priceTypes attribute value for BO "CatPriceCalc", but without any succes. Here is the snippet:
<i><businessObject type="PriceCalc" name="CatPriceCalc" className="com.sapmarkets.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC" connectionFactoryName="JCO" defaultConnectionName="ISAStateless">
<params>
<!-- CBI gross value -->
<b><param name="priceTypes" value="totalNetValue totalGrossValue"/></b>
<!-- for allowed values see defined constants in com.sapmarkets.isa.backend.boi.webcatalog.pricing.PriceType -->
<param name="doItemCalls" value="true"/>
<!-- set this to true if you want to have additional call of CRM_ISA_PRICING_ITMDATA_GET when doing item pricing -->
</params></i>
Do you know how to solve this problem? Or why is not working.
Any help (soultion, docs, links) is very wellcome and rewarded.
Thank you
Bogdan
Is is the right forum to place this question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bodgan,
It seems that some values like tax, discount are not being calculated by IPC as required parameters are not sufficient enough to differentiate between the two. You can run catalog pricing analysis and see what are the gross and net pricing value. You can update the extra parameters to IPC by extending the class you mentioned and modify backend config xml file to use that class for ISA.
Regards.
Vivek
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.