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?

Similar Messages

  • Remove item in shopping cart

    hi all.. i need ur help to check what's wrong with my codes..
    e.g.
    item 1 Remove btn
    item 2 Remove btn
    item 3 Remove btn
    when i click on the Remove btn of item 2 in shopping cart page.. it removes the item 1.. y???
    below are the codes:
              public void removeItem(String id){
               Enumeration productEnum = getProducts();
                   while(productEnum.hasMoreElements()){
                             Product product = (Product)productEnum.nextElement();
                                  products.removeElement(product);
                             break;                         
         }pls i desperately need someone.. to help me .. :<

    i do that code.. but now it doesn't work at all..
    i try to print.out whether the product id is thesame
    and here ae the output..:
    [2/16/05 15:45:38:700 GMT+08:00] 1e52eff2SystemOut
    O
    Id = 608881
    [2/16/05 15:45:38:700 GMT+08:00] 1e52eff2SystemOut
    O
    product id = 349
    [2/16/05 15:45:38:700 GMT+08:00] 1e52eff2SystemOut
    O
    product id = 608881
    in the cart, there are 608881 and 349.. and itrying
    to remove item 608881 , but still there in thecart..
    It seems to be two entries with product id 60881,in
    the list
    have a look at ur o/p, the first and last has the
    same product id 608881thanks for helping but still occur a problem..
    i did delete the WHILE ... and now it print out..:
    Id = 349
    [2/16/05 16:27:40:332 GMT+08:00] 77c4eff2 SystemOut O
    product id = 461108
    when i tried to remove 349..
    the product id always the first entry of the cart.. y is that so??
    and if i delete 461108... it shows this :
    Id = 349
    [2/16/05 16:27:40:332 GMT+08:00] 77c4eff2 SystemOut O
    product id = 349
    but it doesn't delete...
    Y?

  • 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

  • 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

  • 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

  • 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

  • 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

  • Having trouble with syncing my phone ? can you help me please ?

    having trouble with syncing my phone ? can you help me please ?

    Is iTunes giving you a error code?? Exactly what problem are you having?

  • My 2008 15" macbook pro would not start up. After pushing the power button, the startup tone sounded, but kept repeating as if something was jammed. Screen remained black with no logo nor messages. Pls help.

    My 2008 15" macbook pro would not start up. After pushing the power button, the startup tone sounded, but kept repeating as if something was jammed. Screen remained black with no logo nor messages. Pls help.

    Now that you mentioned it, that might be the source of the problem. Something was definitely wrong with my graphics card before the incident happened. You mean that particular batch of graphics cards had some inherent issues, right? I went to the genius bar, and the 'genius' there, without trying to diagnose the problem properly, just adviced me to buy a new mbp! He said Apple will no longer try to fix or touch macs older than 5 yrs. Mine is 5.5 yrs old...

  • Add a new tab with customer fields to shopping cart item

    Hello Experts,
    I wanted some help in adding a new tab to shopping cart items. I went through some posts and found ways of doing it using some spro settings, but there is no way i can handle the field type in this.
    I want a customer field which is a checkbox, how would i add this?
    Moreover if i use spro the tab will by default be called as "Table Extensions" , i want to give it a specific name.
    In case i am adding a new webdynpro component , how would i go ahead with this? what is the name of the fpm config where i need to add my customer webdynpro component?
    So could someone please help me with this requirement.
    Regards,
    cruiser

    Hello,
    Please follow below steps,
    1.  Appending the fields to the structure in Se11 i.e INCL_EEW_PD_ITEM_CST_SC
    x = header, item
    y = PO,SC
    2.  SAP SRM->SRM server-> Cross-Application Basic setting ->extension and field controls->create a  table extension and supply with data->define customer table extension .( ZAINCL_EEW_PD_ITEM_CST_SC)
    3.  Set the visibility of  table extension thru control table extension and their fields and actions
        use configure  visibility of table like item enchancements
    Bus. Object Set Type  : TICUS
    Bus. Object Type         :BUS2121
    Transaction Type        :SHC
    PDO set exist   :X
    4. Configure Control of Fields of Table Extensions
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    5. Configure control action
    6. Maintain  view /SAPSRM/V_MDFSBC_DEFAULT
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    Regards,
    Neelima

  • Add Item "With Free Description" in shopping cart

    Hello Everyone,
    We have the following requirement in SRM 7.0.
    During creation of a Shopping cart, we use "Add Item with Free description" to add a new item
    When we click "Add Item with Free description" a pop up appears, and in this pop we needs to be updated with a new field called Supplier Product Number which is already available as a standard field in Item Data Tab of shopping cart when we click on Details button.
    Requirement is that, customer wants to enter this Supplier Product Number in this pop up screen along with item details, rather than entering it at item data tab. Could anybody suggest me the steps how to achieve this and also once the Supplier Product Number is entered in the Add Item with free description Pop up screen, it need to be synced and should appear in Item Data tab of shopping cart.
    Regards,
    Venkat

    Hi Venkat,
    This would require modification of the guided application framework view V_SC_DOFC_I_DESCRIBE to add a new field to the Window, please then check the WD ABAP Documentaiton for details on mapping this new field name to the supplier part number in the shopping cart, I would suggest however to simply fill it in after the fact, the pop up is designed to provide the minimum amount of information required to create the shopping cart, as supplier part number is not a required field in SRM, it is not available in this view. See below for details of the modification point:
    Application: /SAPSRM/WDA_L_FPM_GAF
    Web Dynpro Component: /SAPSRM/WDC_DODC_SC_I_DES
    Window Information: IV_L_FPC_POPUP
    View Information: V_SC_DOFC_I_DESCRIBE
    Configuration ID: /SAPSRM/WDCC_SC_I_DES_WIZARD
    Regards
    Jason

  • Unavaliable items in shopping cart

    Before the last iTunes upgrade, I added some songs to my shopping cart. And I upgrade iTunes (from 7.5 to 7.6), accept the new agreement of the iTunes store and go to the shopping cart. It shows me that some items is unavaliable. So I add those unavaliable items to my cart again and delete the old unavaliable ones, but the ploblem is some of it can't be remove! When I click the "X" it just load and came back with nothing happened. So how can I get rid of that thing!?

    You're going to have to email the iTunes team and have them empty your entire cart. Email them here:
    http://www.apple.com/support/itunes/store/browser/
    If you're using the cart as a wishlist, I'd advise against that. See this instead:
    Making an iTunes Store wish list
    http://www.info.apple.com/kbnum/n107961

  • Error while adding items to shopping cart

    We have SRM Server 5 with integrated ITS. We are at patch level - Basis/ABAP at 12 & SRM at 5 (all latest).We have an error as below.
    We are able to login & go till "Shopping Cart". But when we try to add an item quantity through the path
    -Shop->Internal Goods/Services->Start->Laptops->Quantity(1), it throws an error as
    "The URL http://<host.domain-name>:8000/sap/bc/gui/sap/its/bbpsc02/~flNUQVRFPTI3OTcyLjAwMy4wMi4wMQ== was not called due to an error."
    It also gives a dump in ST22 as
    Runtime Errors         UNCAUGHT_EXCEPTION 
    Except.                CX_BBP_PD_ABORT    
    Only thing I am not sure of the configuration is the table entries in TWPURLSVR.
    Would appreciate a quick response.
    Regards, Sameer

    Sameer-
    I want to clarify a point made by Vadim regarding the use of IPC.  IPC is NOT mandatory for SRM if you are only using the EBP component in classic mode - in the short term this can make things easier to deal with.  If are not in classic mode then you must address your IPC issue.
    See OSS note 539720 for all requirements to utilize simplified pricing w/out the IPC.
    The solution per the OSS note is listed below:
    'Simplified pricing (classic scenario)' is available as of SRM Release 2.0 Support Package 03.  If you want to use simplified pricing, you must also carry out the following steps:    
    a) ACTIVATE implementation of BBP_PRODUCT_PRICE in the BBP_PRICEDATA_READ BADI
    b) DEACTIVATE implementation of IPC_UPD_PROD_BUFFER in the PRODUCT_UPDATE2 BADI (EBP 3.5 and SRM 3.0)
    c) DEACTIVATE implementation of CRMB_BBP_PRICINGINIT in the PRC_PRICING_INIT BADI (EBP 3.5 only). Use Transaction SE18.                
    The first BAdI controls whether simplified pricing should be used and reads the price data from the product master, if required.  The second BAdI updates the price data in the IPC if changes were made in the product master (EBP 3.5 and SRM 3.0 only).   The third BAdI controls whether obsolete ABAP pricing (BAdI activated), IPC or simplified pricing (EBP 3.5 only) should be used. 
    You always have the option to change from simplified pricing to normal pricing using IPC. You can change from IPC pricing to simplified pricing in accordance with the above restrictions. However, avoid repeatedly changing the pricing method.                                               
    Cheers-
    b

Maybe you are looking for