WD ABAP: adding items to a context node
I'm creating a shopping cart and i need the shopping cart node to retain already added items. If I go back from the shopping cart page to the previous page and add another item to the cart, the existing items in the node are getting replaced by the new items. how do i add new items to the node without replacing the old ones.
I guess you are adding elements by using BIND_ELEMENT or BIND_TABLE methods. In these methods there is an optional parameter called SET_INITIAL_ELEMENTS. Pass value ABAP_FALSE to this when adding new elements to retain the already added ones.