Skip to Content
author's profile photo Former Member
Former Member

Displaying Alternate Units of Measurement on ProductISA.jsp

Hi there,

We have a SAP ISA 5.0 Application (with an ECC backend) primarily used for B2B purposes. We have a scenario where a product has alternate Units of Measure(Case aka CS) besides the base Unit of measure (Each aka EA) in the MARM table on the backend. When clicked on a Web Catalog Item in the Web Catalog, by default, the ProductISA.jsp page displays EA information in the Quantity column. We would also like to display the Casing information in the same column for example in the following way. (1 Case = 96 Eaches).

Now the problem we are facing is, when I try to display the Product Attributes as shown in the following sample code:

Iterator unitIterator = item.getCatalogItemAttributes();
             if(unitIterator!=null){
				while(unitIterator.hasNext()){
					com.sap.isa.catalog.impl.CatalogAttributeValue aUnit = (com.sap.isa.catalog.impl.CatalogAttributeValue)unitIterator.next();
				  //String output = aUnit.getKey() + " : " + aUnit.getValue();
				  if(aUnit.isMultiValue()){%>
				  <%= "Attribute is multivalued:"+aUnit.getAttributeName()+ " = "+aUnit.getAsString()+"\n" %>
				  <%
				  Iterator innerIterator1 = aUnit.getAllAsString();
					  while(innerIterator1.hasNext()){%>
					  	<%= (String)innerIterator1.next()+"#"%>
					  <%}//end of inner while
					innerIterator1 = null;
				  }//end of if
				else{%>
					<%= "Attribute is NOT multivalued: "+aUnit.getAttributeName()+ " = "+aUnit.getAsString()+"\n"%>
					<%
					    Iterator innerIterator2 = aUnit.getAllAsString();
					    while(innerIterator2.hasNext()){%>
						 <%= (String)innerIterator2.next()+"#"%>
					  <%}//end of inner while
					innerIterator2 = null;					
					%>					
				  <%}
				}//end of while
             }

.... It shows UNITSOFMEASURE attributes as a SINGLE valued Attribute with a value "EA". Any suggestions/ideas as to how I can fetch Alternate Units of Information from the MARM Table ?

Appreciate your help.

regards

Jaleel Syed.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 08:44 AM

    Hi,

    I think the other units are available based on multiple prices for a particular product.

    Regards,

    Sateesh Chandra

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.