Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Adding an item in Basket

Hi,

I'm currently using ISA 4.0 SP10 with R/3 as a backend. I wrote a custom basket refresh class and in it I need to write a function that will add an item to the current basket. I did something like this:

ItemData myitem = basket.createItem();

myitem.setProduct("01-102");

myitem.setQuantity("10");

..

..

itemList.add(myitem);

Once I run the function it seems to work (whereby it adds an item to the current itemList) but then the webpage remains blank and I get a java.null.pointer in my log file.

java.lang.NullPointerException

at com.sapmarkets.isa.catalog.impl.CatalogQueryStatement.getName(CatalogQueryStatement.java:182)

Let me know if you have any suggestions. Thanks!

Former Member
Not what you were looking for? View more on this topic or Ask a question