Requester assigned to item of shopping cart

Hello,
This is perhaps a basic question, I don't know, but I was wondering why does the requester is assigned to the item level of the shopping cart. Is there the possibility to assign several requesters to a shopping cart? If yes, how is it done? Is there the possibility to assign the requester to the header level?
Best regards,
Patrick

Hi Patrick,
In the Shop on behalf Functionality, we don't assign requestor at the item level of the shopping cart.
While creating a shopping cart you choose the requisitioner for whom you want to shop for.
Only the Goods Recipient can be choosen at the item level and not the requestor because each item can be received either by the creator or by the requestor of the shopping cart.
In case you want to have a different requestor you should choose that before shopping cart creation.
Hope this makes you more clear. Clarifications are welcome.
Award points for helpful answers.
Rgds,
Teja

Similar Messages

  • Want to copy Delivery address of one line item in shopping cart to all item

    Hi Experts,
                    We are upgrading from SRM 5.0 to SRM 7.0,In SC Creation We want to copy Delivery address of one line item in shopping cart to all line items in Shopping cart by clicking Change All Items button.This is custom button we added this button and we had written code to achieve the functionality but it is not working.This is same like Change All Items button in Account Assigment for copy accont details of one line item to all other line items in SC.
    Web Dynpro Component:/SAPSRM/WDC_UI_DO_SHIPTO
    Web Dynpro View:V_DODC_SHIPTO
    Thanks,
    Aarthi.

    Hi Prasad,
                   Our customer needs that button,they want whenever they are clicking the button delivery address should copy to all line items.
    In my action ONCHANGE_ALL_ITEMS i called this method
    wd_this->mo_dodm_shipto->zchange_all_items( ).
    zchange_all_items( ) is  implemented in class /SAPSRM/CL_CH_WD_DODM_SHIPTO.
    the code i wrote inside zchange_all_items( )
    *Error
      DATA: LX_PDO_ABORT               TYPE REF TO /SAPSRM/CX_PDO_ABORT,  " Class for Fatal error caught by PDO Layer
            LX_PDO_ERROR               TYPE REF TO /SAPSRM/CX_PDO_ERROR.  " Class for PDO General Exception
    Object Instances
      DATA: LO_MSG_CONSUMER            TYPE REF TO /SAPSRM/IF_PDO_MSG_CONSUMER,
            LO_PDO_SHIPTO              TYPE REF TO /SAPSRM/IF_PDO_DO_PARTNER.
    Context-Data
      DATA: lte_cll_shipto              TYPE /sapsrm/if_ch_wd_set_facade=>gt_guid_element,
            loe_cll_shipto              TYPE REF TO /sapsrm/if_ch_wd_set_element.
    Field Symbols
      FIELD-SYMBOLS <lse_cll_shipto>    LIKE LINE OF lte_cll_shipto.
    DATA : lo_pdo_acc TYPE REF TO /sapsrm/if_pdo_do_acct_assgmnt.
      DATA : ls_shipto_cll type /SAPSRM/S_CLL_SHIPTO,
             lt_pdo_partnerdetails      TYPE bbp_pdt_partner,
             ls_pdo_partnerdetails      TYPE bbp_pds_partner,
              LV_GUID          TYPE BBP_GUID,
              lv_item_guid type bbp_guid,
             lv_filled TYPE wdy_boolean.
    *exceptions
      DATA : LX_ABORT                  TYPE REF TO /SAPSRM/CX_PDO_ABORT.
    *Constants
      CONSTANTS : LC_OBJECT_ID         TYPE CRMT_SUBOBJECT_CATEGORY_DB VALUE 'BUS2121001',
                  LC_ADDR_ORIGIN       TYPE /SAPSRM/S_CLL_SHIPTO-ADDR_ORIGIN VALUE 'B'.
      IF LV_FILLED = ABAP_TRUE.
    Downcasting to shipto
        LO_PDO_SHIPTO ?= MO_PDO.
    insert the clipboard into facade and update and submit update
        me->/sapsrm/if_cll_do_mapper~insert_from_clipboard( io_set_facade = mon_cll_set_facade ).
    Add new Accounting entries.
        lte_cll_shipto = mon_cll_set_facade->get_data_elements( ). "get all elements from the context
        LOOP AT  lte_cll_shipto ASSIGNING <lse_cll_shipto>.
          loe_cll_shipto = <lse_cll_shipto>-set_element.
          loe_cll_shipto->get_static_attributes( IMPORTING rv_attributes = ls_shipto_cll ).
    Map ui-structure to pdo-structure
          MOVE-CORRESPONDING ls_shipto_cll TO ls_pdo_partnerdetails.
          IF LS_SHIPTO_CLL-PARTNER_FCT =  mv_part_func.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = ''.
          ELSE.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = LS_SHIPTO_CLL-PARTNER_FCT.
          ENDIF.
          IF ls_pdo_partnerdetails-del_ind NE 'X'.
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                ev_guid_16 = ls_pdo_partnerdetails-p_guid.
           mv_acc_guid_split = ls_pdo_shipto-guid .
            IF mo_scope = 1.
              ls_pdo_partnerdetails-p_guid = mon_cll_set_facade->get_bo_guid( ).
            ELSE.
              ls_pdo_partnerdetails-p_guid = mo_parent_bo_mapper->items_get_lead_selection( ).
            ENDIF.
            APPEND ls_pdo_partnerdetails TO lt_pdo_partnerdetails.
          ENDIF.
          CLEAR : ls_pdo_partnerdetails, ls_shipto_cll.
        ENDLOOP.
    Add New items to PDO
        IF NOT lt_pdo_partnerdetails[] IS INITIAL.
          TRY.
              LO_PDO_SHIPTO->update_item_partners( EXPORTING it_partner = lt_pdo_partnerdetails
                                                               iv_item_guid       = lv_item_guid
                                                   CHANGING co_message_handler = mo_pdo_message_consumer ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Update PDO with the changed data.
          TRY.
              mo_pdo->submit_update( ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Fire refresh of DO Mappers registered for refresh since the item table has acc related data.
          mo_parent_bo_mapper->fire_event_refresh( iv_perform_updates = abap_false ).
        ENDIF.
      ENDIF.
    Thanks,
    Aarthi.

  • Error while clicking 'Transfer Items' in shopping cart processing

    Hi,
    When I click on 'Transfer Items' in shopping cart creation, I get the following error.
    The following error text was processed in the system P2S : Template interpretation failed. Template does not exist.
    The error occurred on the application server p2p_P2S_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Function: BBP_WS_IMPORT_SC_DATA of program SAPLBBP_WS_API
    Function: BBP_WS_IMPORT_SC_DATA of program SAPLBBP_WS_API
    Form: CATALOG_CONTENT_GET of program SAPLBBP_SC_APP
    Function: BBP_SC_APP_EVENT_DISPATCHER of program SAPLBBP_SC_APP
    Form: APP_EVENT_HANDLER of program SAPLBBP_SC_UI_ITS
    Form: SC_EVENT_DISPATCHER of program SAPLBBP_SC_UI_ITS
    Module: SC_EVENT_DISPATCHER of program SAPLBBP_SC_UI_ITS
    Can any one suggest on this.
    Rgds,
    Sanjeet

    Hi Paul,
    Yes, we could resolve the issue.
    But we used to get this errror when we set the debugger in
    the newly implemented code.
    If we remove the debugger, it was working fine.
    Solution:
    Go to transaction SICF.
    If you execute that, a tree structure will appear.
    Expand "Default Host".
    Default Host>SAP>BC->GUI>SAP-> ITS-> BBPSC02
    Go to EDIT mode.
    Change GUI configuration as below:
    Like other available parameters, add one more parameter called
    ~GENERATEDYNPRO  and make it equal to 1.
    i.e. ~GENERATEDYNPRO  = 1.
    But we tried this solution only when debugger was on.
    Please check it in your case also and let me know if it works.
    The other solution may be to publish the required template again.But I am not sure about that.
    Rgds,
    Sanjeet

  • Default settings for items is not getting copied to items in Shopping Cart

    Hi SRM GURU's,
    I am facing a problme while creating shopping cart.
    I maintained default settings for items like Product catagory,Internal Notes etc.
    While adding items in shopping cart these default settings are not getting copied to any items.
    If anybody is having any clue Plz let me know I will award points for sure.
    Our integration testing is affected because of this issue.
    Thanks in Advance.
    Atulp
    +919822761641

    Dear Laurent,
    Yeah, this is a very strange issue and also a rare one. We have already tried this option. User deleted the cart and created a new cart. But still no luck. The new cart is also not getting released from SOCO. User created many carts previously for different product categories, vendors and all carts were through. But for this cart,it is not getting released. If you could have any other idea, you are most welcome.
    Anyway, thanks so much for your time and patience. Appreciate your help!!
    Regards,
    Aswini

  • Disable 'Find' (good /service) function in 'items in shopping cart' SRM 5.5

    Hi SRM experts,
    after clicking on Shopping Cart (- Full functionality) you have the choice of searching in catalogs or you can scroll down to 'Items in Shopping cart' and enter the product-id directly in 'Good / Service'.
    How can I disable this 'Find' option? So not the whole line, but only the 'find' option with the binoculars.
    Hope you can help me out with this one.

    Hi Kubus,
    I think you are talking about the 'Order as Direct Materail' button..
    Use BBP_DP_PROD_CHK_BADI.
    Method PRODUCT_CHECK
    Clear the parameter EV_DP_POSSIBLE.
    Have a look at the following link:
    Hide order as direct material button
    Thanks,
    Pradeep

  • Add Item in Shopping cart

    Hi All,
    I want to know which is the screen in which the button 'Add Item to Shopping Cart' appears. The function code associated with it is 'ADDI' .
    The reason why I want this is that I am trying to add my own button on the same screen .
    Regards,
    Poonam

    In SRM 4.0, for the EBP scenario, ITS is used. Hence no BSP applications are available as per my understanding. Pls correct me if I am wrong.
    Further, we have noticed that when clicking the Catalog link from the create shopping cart screen, screen 250 is called. However, if the same functionality is executed from the Change mode of the Approvers login, then the HTML code is generated by some FM.
    Regards,
    Poonam

  • Re-starting Item Level Shopping Cart Approval Workflow

    Hi All -
    We are implementing WS 14500015 - the Item-based n-level approval workflow for shopping carts - for certain scenarios.  In other scenarios we are using the overall approval workflow.
    I need to re-start the item-level approval workflow for certain scenarios (change in price, change in quantity, etc) - not when any and all changes are made to a line item.
    I was hoping to use the badi BBP_WFL_SECUR_BADI - which works great for the overall n-level shopping cart approval workflow.  However, I can't seem to hit it appropriately for the item level approval workflow!
    Does anyone know if this BADI or any other can be utilized for determining when to re-start the item-level shopping cart n-level approval workflow?
    Thanks so much!
    Abby

    hi,
    Have you implemented the badi BBP_WFL_SECUR_BADI ? for restarting the workflow?
    Let me know?
    Also it is possible to debug and see why the restart does not happen.
    Also let me know wether the restart happens in other cases?

  • Offline approval for line item based Shopping carts

    Hi ,
    We are planning to  use offline approval and line item based approval (item based approval workflow) for shopping carts.
    For e.g. 10 line items in a cart can have 10 different  cost centres, and a line each need to go to respective cost centre managers for approval.
    have few clarifications:
    1. Can offline approval be used for item based shopping cart approval workflow?
    2. Can different line items be sent by mail to different mail boxes?
    3.  Will 1 manager see all the 10 line items OR only the 1  line item for which he is responsible?
    4. If he will get only line for which he is responsible , and once he clicks on approve , will this approval apply to his line item only , OR it will apply to all the 10 line items ?
    Rgds
    Sumendra

    Hi Sumedra,
    Which workflow are you using - application or process contrlled workflow?
    Assuming you are using process-controlled workflow - I will answer following questions -
    1. Can offline approval be used for item based shopping cart approval workflow?
    - Yes, it can be used !
    2. Can different line items be sent by mail to different mail boxes?
    Yes
    3. Will 1 manager see all the 10 line items OR only the 1 line item for which he is responsible?
    1 manager can 'see' all the items but he can only approve or reject the item that he is suppose to act on. All other item will be grayed out. However, this behaviour is configuarable !
    4. If he will get only line for which he is responsible , and once he clicks on approve , will this approval apply to his line item only , OR it will apply to all the 10 line items ?
    - see above
    Regards,
    Amit

  • Error while adding items to Shopping cart in requisition creation

    Hi,
    I am facing a strange issue in 11.5.10 for iProcurement. While creating a requisition through "Non-Catalog-Request", I am not able to add items to the cart. It shows me an error page and is a null-pointer exception. I investigated this issue and found out that there is a location in the employee form. The application does not throw any error when a valid location is supplied. But i got to know that users should be able to create requisitions without any error. This happens to be true in 11.5.8 version of iProcurement where i saw no value entered for location.
    I am not sure of the set ups required in this case. I found few articles in metalink but implementing those did not give me a solution for this.
    Kindly advice, if there is some set up to be done.
    Thanks

    Are you in the same org to which that employee location points. If the employee uses another org than he assigned to it will throw error..

  • Error  while adding  items in shopping cart

    Hi All,
    We have done all the IPC(4.0 SP08) settings on SRM 4.0..but the problem now is while adding the items to the shopping cart..we are getting the following errors :
    1>No logical system for FI maintained.
    2>Enter the company code
    We have maintained the tax settings in EBP but no success.Can this be due to some wrong client settings in IPC?We dont have much knowledge of IPC settings in SRM.
    regards,
    Disha D

    Are you in the same org to which that employee location points. If the employee uses another org than he assigned to it will throw error..

  • SRM 7 - defaulting values for multiple line items on shopping cart

    Hi,
    We are using SRM 7 - Employee self service - Punch out catalogues and describe requirements.
    Our scenario is this:
    - User is responsible for creating shopping carts for numerous cost centres/other users
    - Shopping cart will have multiple line items (but the cost centre/other user will be same for all line items)
    - Is it possible to define in a shopping cart that all line items will have a specific value?  E.g. all line items will be assigned to a specific cost centre?
    I know about assigning dedault values in PPOMA_BBP - but our situation is where user does not want to use this default value this time, but another value
    Any suggestions?
    Thanks

    Thanks Alex for quick reply
    To confirm, did you use the BBP_DOC_CHECK_BADI (in conjunction with the BBP_ITEM_CHECK_BADI) to look at different cost centres on the multiple lines on the shopping cart?
    Also - did you use the same BADI to give user opportunity to enter a default cost centre that is then automatically applied to all line items on the cart?
    Thanks
    Azam

  • Limit on items in shopping cart

    I am trying to determine if there is a limit on the number of items in the shopping cart coming back from the catalog.  We use SciQuest and when a user transfers her items back to SRM, she is getting an 400 Bad HTTP request.  There are 60 lines on the cart in the catalog.  I don't think the issue is on the SciQuest side, but something in the translation coming back to SRM.
    400 Bad HTTP request
    Bad HTTP request
    Error:  -21
    Version:        7000
    Component:      HTTP_FILTER
    Date/Time:      Mon Sep 12 13:06:05 2011
    Module: http_auth_mt.c
    Line:   494
    Server: olympia_PEP_43
    Error Tag:     
    Detail: illegal request

    If that is caused exceeding by the maximum size (4096) for a cookie then there is nothing to do about it.
    * http://mxr.mozilla.org/mozilla1.9.2/source/netwerk/cookie/src/nsCookieService.cpp#94
    * http://mxr.mozilla.org/mozilla1.9.2/source/netwerk/cookie/src/nsCookieService.cpp#1435

  • Problem when creating Limit Item in shopping cart

    Hi SRM Gurus,
    Need your help.
    When I am creating the blaknket shopping cart using the Functionality "Create Limit Item", system is throwing the Error BBP_PD 002 ( "Interface data contais errors").
    In debug mode for the BADI BBP_DOC_CHANGE_BADI(method BBP_SC_CHANGE),I have checked that the ITEM Type for this Limit Order is "LIMI".
    Even all the basic data, cost assignment are not coming properly.
    So please help regarding this issue.
    Thanks for your help in advance.
    Thanks
    Shraman

    Hi SRM Gurus,
    Now the Limit Order SC has been created successfully in SRM and the PO is also getting populated in ECC too.
    But the problem is like,
    When we create Limit Order(blanket) Shopping cart, then there has 2 options to do that.
    (Under Follow-Up Action)
    1. Confirmation and invoice
    2. Invoice Only.
    Depending on the above in ECC, the Item category for the PO will be D(Confirmation and Invoice only)and B (Invoice Only).
    But for my case it's always showing Item Category D in both of the cases.So as because of this issue, some thing is going wrong from ECC perspective.
    So please help me out from this problem.
    Thnaks for your help in advance.
    Full points for the answer.
    Thanks again,
    Shraman
    Edited by: shraman saha on Aug 29, 2008 10:48 AM

  • AD-hoc approver n step item level shopping cart workflow

    Hi
    We are on latest version of SRM and using n step item level SC approval workflow.
    The scenario goes like this:
    -     Requester creates shopping cart and workflow goes for two step approval.
    -     In the approval preview the requester is able to see both levels of approvers, which is correct.
    -     Requester now selects second level approver and replaces him with a ad-hoc approver. WE DO NOT WANT THIS.  Requester should NOT be able to replace an approver determined by approval badi. However should be able to extend approval step with ad-hoc approver say third level approver a ad-hoc approver. Also he should be able to change AD-HOC approvers ONLY.
    Thanks
    Joe

    Jo,
      You may be able to achieve it in the BADI BBP_WFL_SECUR_BADI .
    You can use the Business Add-In (BAdI) BBP_WFL_SECUR_BADI to determine whether
    A shopping cart can be changed during the approval process
    The approval workflow restarts when changes are made to the document
    A reviewer/approver can be added or changedThese are the call scenarios (see import parameter SCENARIO).
    Regards,
    Suren

  • Trouble with remove item fro shopping cart.. Pls Help..

    hi.. i'm an amatuer student who just learnt abt JSP.. i was given a project tot do shopping cart.. and it's due soon.. i need help regarding my codes.. i try so many methods but it doesn't work.. there is problem with my remove item.. when i try to remove an item.. it does not remove the item.. can somebody help me with my codes.. is there something wrong with my JavaBeans??
    i have 2 javafiles..
    Product.java
    package product;
    public class Product {
         String id, name, size, colour, other;
         int quantity;
         double price, total;
         public Product(String newid, String newname, String newsize, String newcolour, String newother, double newprice, int newqty)
         //public Product(String newid, String newname, double newprice)
              id= newid;
              name= newname;
              size= newsize;
              colour= newcolour;
              other = newother;
              price = newprice;     
              quantity= newqty;
         public String getId()
              return id;
         public String getName()
              return name;
         public String getSize()
              return size;
         public String getColour()
              return colour;
         public String getOther()
              return other;
         public int getQuantity()
              return quantity;
         public double getPrice()
              return price;
         public double getTotal()
              return (price*quantity);
    ShoppingCart .java
    package product;
    import java.util.*;
    public class ShoppingCart {
           int noItems = 0;
         Vector products = new Vector();
              public void addProduct(Product i){               
                   products.addElement(i);     
              public void deleteProduct(String id){
               Enumeration productEnum = getProducts();
                   while(productEnum.hasMoreElements()){
                             Product product = (Product)productEnum.nextElement();
                             if(product.getId().equals(id)){                                             
                                  //products.removeElement(id);
                                  products.removeElement(product.id);
                                  break;                         
              public void emptyCart(){
                   products.clear();
              public int getNoProducts(){
                   return products.size();     
              public Enumeration getProducts(){
                   return products.elements();
              public double getTotal(){
                   Enumeration productEnum = getProducts();
                   double total=0;
                        while(productEnum.hasMoreElements()){
                             Product product = (Product)productEnum.nextElement();
                             total = total + product.getTotal();
                        return total;
    viewsc1.jsp
    <%@page import="java.util.*"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>viewsc1.jsp</TITLE>
    </HEAD>
    <BODY>
    <jsp:useBean id="sCart" class="product.ShoppingCart" scope="session"/>
    <%@page import="product.Product"%>
         <table width="80%" border="0" align="center">
           <tr>
             <td align="center"><img src="image/title.jpg" width="450" height="80"></td>
           </tr>
           <tr>
             <td align="center" height="90"> </td>
           </tr>
           <tr>
             <td align="center" height="210">
                 <table width="98%" border="1" height="142">
                   <tr>
                     <td height="129">
                       <table border="0" width="100%">
                         <tr>
                           <td colspan="9" bgcolor="#CCCC99" align="center" height="22">
                             <img src="image/vsc.jpg" width="300" height="50">
                           </td>
                         </tr>
                         <tr>
                           <td height="15" colspan="9"></td>
                         </tr>
    <%
    String name= request.getParameter("name");
    if(name!= null){
         if(name.equals("Empty")){
              sCart.emptyCart();
    %>     
              <SCRIPT>
                alert("Your Shopping Cart is empty."); 
                location.href="chooseCategory.jsp";
            </SCRIPT>
    <%     }else if(name.equals("delete")){
         String index = request.getParameter("Id");
          sCart.removeItem(index);
                   out.println(index);
         }else if (name.equals("update")){
          String[] prodQtys = request.getParameterValues("newQty");
         // sCart.updateQtys(prodQtys);
    if(sCart.getNoProducts()!=0){%>
            <tr>
              <td height="15" align="center" width="20%"><B>Item ID</B></td>         
              <td height="15" align="center" width="20%"><B>Item Name</B></td> 
              <td height="15" align="center" width="11%"><b>Size</b></td>
              <td height="15" align="center" width="9%"><B>Colour</b></td>                               
              <td height="15" align="center" width="13%"><b>Price</b></td>     
              <td height="15" align="center" width="10%"><b>Qty</b></td>
              <td height="15" align="center" width="12%"></td>
              <td height="15" align="center" width="12%"><b>Total:</b></td>
              <td height="15" align="center" width="12%"></td>
            </tr>
    <%     //<FORM action="viewsc1.jsp?name=update" method=POST>
              Enumeration products =sCart.getProducts();
              while(products.hasMoreElements()){
                   Product product = (Product)products.nextElement();
                        if(product.getQuantity()!=0){
              %>
              <tr>        
              <td height="15" align="center" width="20%"><B><%=product.getId() %></B></td> 
              <td height="15" align="center" width="11%"><b><%=product.getName() %></b></td>         
              <td height="15" align="center" width="9%"><B><%=product.getSize() %></b></td>
              <td height="15" align="center" width="9%"><B><%=product.getColour() %></b></td>                                                          
              <td height="15" align="center" width="13%"><b><%=product.getPrice() %></b></td>          
              <td height="15" align="center" width="9%"><input type=text name="newQty" value="<%=product.getQuantity()%>">               
                   <a href="editQty.jsp?id=<%=product.getId() %>&name=<%=product.getName() %>&qty=<%=product.getQuantity()%>">Edit</a>
              </td>
              <td height="15" align="center" width="9%"><B><%=product.getOther() %></b></td>
              <td height="15" align="center" width="10%"><b><%=product.getTotal() %></b></td>
               <td align='center'><a href="viewsc1.jsp?name=delete&Id=<%=product.getId() %>">Remove</a></td>
            </tr>
    <%          }else{ %>
              <tr>        
              <td height="15" align="center" width="20%"><B><%=product.getId() %></B></td> 
              <td height="15" align="center" width="11%"><b><%=product.getName() %></b></td>         
              <td height="15" align="center" width="9%"><B><%=product.getSize() %></b></td>
              <td height="15" align="center" width="9%"><B><%=product.getColour() %></b></td>                                                          
              <td height="15" align="center" width="13%"><b><%=product.getPrice() %></b></td>          
              <td height="15" align="center" width="9%"><B><%=product.getQuantity() %></b></td>     
              <td height="15" align="center" width="9%"><B><%=product.getOther() %></b></td>
              <td height="15" align="center" width="10%"><b><%=product.getTotal() %></b></td>
               <td align='center'><a href="viewsc1.jsp?name=delete&Id=<%=product.getId() %>">Remove</a></td>
            </tr>
    <%     }
         } %>
    <tr>
    <td height="50" valign="bottom" colspan="9" height="15" align="right" width="12%"><b>Total:</b><%=sCart.getTotal() %></td>
    </tr>
    <%
    }else{%>
         <SCRIPT>
                alert("Your Shopping Cart is empty.");
                location.href="chooseCategory.jsp";
            </SCRIPT>
    <%}
    %>
    <tr>
                      <td colspan="9" height="15" align="center">
                           <input type=submit value='Update Quantity'>
                        <a href=chooseCategory.jsp><IMG border="0" src="image/BtnContinueshop.gif" width="153" height="27"></a>
                        <a href="viewsc1.jsp?name=Empty"><IMG border="0" src="image/BtnEmptyBsk.gif" width="75" height="27"> </a>
                        <a href=checkout.jsp><IMG border="0" src="image/BtnCheckOut.gif" width="156" height="27"></a>
                    </td>
                    </tr>
                    </form>
                  </table>
    </BODY>
    </HTML>

    When you insert products, the Product object itself is the element you use.
    public void addProduct(Product i){
         products.addElement(i);     
    }But when you remove the product, you use the ID of the product as the element.
    products.removeElement(product.id);That doesn't seem right, now does it?

Maybe you are looking for

  • Conflict between socket and RMI

    Hi I wrote a program in client-server using socket and it was fine. I also wrote a client-server program using RMI. Fine as well. But after I connected the client-server using socket (open socket, send-receive messages, close socket), then use RMI. I

  • Storing SessionManager or Server for multiple web applications

    We currently have one enterprise application with 2 web applications installed. These 2 web applications must share the same session cache. Toplink is installed as a shared library for both of these web applications. What I am wondering is how Server

  • I downlaoded the new version of firefox for my linux os on an Eee pc900 however i am unable to install the update why

    I need to update my firefox web browser, however when the update has down loaded to my notebook it refuses to open and install The bios is asus 900ocpi ver 1009 and it is using ECFirmware

  • Importing photos from Firefox

    So I'm dragging photos of friends from fb webpages using firefox to the doc icon of iPhoto, and iPhoto keeps wanting to import the same pictures over and over again, even though I'm only doing one picture at a time. How do I stop this behavior? It is

  • Adobe "Support" Sux!!!!!!!!!!!!!!!!!

    Elements 8 editor crashing when trying to open and use.  I have been using elements 8 for years.  In the last week or two, every time I try to edit a photo and open the editor, I get a crash report.  Very frustrating and basically makes the software