Help  on  shopping  cart  line  items

Hi,
i  am    working  on  srm  ,  i  has  to  display error message  if items of different types are in SRM-shopping cart,
the  details  in  technical  spec  is  as  below ,
1.     Implement the BADI BBP_DOC_CHECK_BADI.
2.     Create a custom table ZSRM_WGR_SORTEN and also create a table maintenance generator for it and maintain the entries in it.
3.     The specification for the custom table is given in section 3.1.1
4.     We need to populate an error message if the SC has line items of different types
5.     The logic for this is given in section 3.1.3. We have the header data in ls_header based on which we will get the Shopping Cart data via FM u201CBBP_PROCDOC_GETDETAILu201D.
6.     Then looping through item data we will process our logic to check if the SC line items are of same type or not.
7.     If the line items are of different type, we need to populate the error message u201CThe item &1 has the same type as item &2u201D
8.     A separate message class has been defined for it by the name ZSRM
The check occurs in CHECK-BADI. The steps to be executed are:
     Read the shopping cart items
     Run all items:
     Determine and note the product categories-ID and process-ID (using item data, process-ID is a customer field,  see     CD 2553_E_1_procurement_010 for process-ID) of an item in an internal table.
     If 1st item: continue, otherwise: check, whether same product category and process-ID are noted already. If no: is the combination of WGR_ID_ADD and PROCID_ADD as per table ZSRM_WGR_SORTEN is allowed: If no: Display an error message
i am  doing  coding  as  below ,
  CALL FUNCTION BBP_PROCDOC_GETDETAIL
    EXPORTING
      i_guid     = iv_doc_guid
    IMPORTING
      e_header   = ls_header
    TABLES
      e_item     = lt_item
      e_account  = lt_account
      e_limit    = lt_limit
      e_partner  = lt_partner
      e_orgdata  = lt_orgdata
      e_messages = lt_in_messages.
The item data then exists in lt_item (incl. process- IDs of the items), using which it can be iterated with the LOOP command:
LOOP AT lt_item INTO ls_item WHERE del_ind EQ space.
what  will  be  code  here  , please  guide
ENDLOOP.
and  also  how  to  handle  message ,  i  am  doing  coding  as  below,
  DATA: ls_message         TYPE bbp_smessages_badi.
        ls_message-msgno   = '002'. //Meldungsnummer
        ls_message-msgty   = 'E'.
        ls_message-msgid   = 'ZSRM'.
        ls_message-msgv1   = ls_item-number_int.
        ls_message-msgv2   = <Pos.Nummer mit schon vorhandener Sorte>
    what  will  be  code  here  , please  guide
        APPEND ls_message TO et_messages.

Hi. To get the SC number on the backend PO you must be using a BADI, probably either BBP_DOC_CHANGE_BADI or BBP_CREATE_BE_PO_NEW or BBP_CREATE_PO_BACK.
Look in these BADIs, the cart data is probably not being looped around correctly.
Regards,
Dave.

Similar Messages

  • Shopping cart line items are missing while transfering from ITS to EBP

    Hi everyone
    I am Raghu, working on EBP (version 2.0)
    Some shopping cart line items are missing while transferring the shopping cart data from ITS to EBP.
    For example in my shooping cart 4 items are there,during transferring shopping cart data from ITS to EBP all 4 items are getting updated for all the shopping cart related tables except account assignment table.
    In account assignment table for this particular shopping cart only 3 items are updated and usually the first line item gets missed out.Hence the the system fails to create the follow on documents in R/3. 
    This is happening randomly for few of the shopping carts that too most of the cases first item of the shopping cart was not updating reqacct table(this is account assignment table for shooping cart items).
    I have debugged entire scenario,but  couldn't find the cause for this..
    Can any one  please advise me....why this is happening?
    Your immidiate ersponse will surely help me a lot.
    Thanks,
    Raghu

    Hi Yann
    Thanks for your support.
    Yes, we are using EBP2.0/CRM 2.0C & the support pack level is SAPKU20C23.
    Please advice
    Thanks
    Raghu

  • Shopping Cart Line Item Interval

    Hi Experts,
    We are on SRM 7.0 SP05, By default shopping cart line item interval is 1,2,3,4.....etc,. My requirement is to have it as 10,20,30,40.....etc,
    Is it possible to achieve this ?. If yes, please let me know how to do that.
    Appreciate your help
    BR,
    Siva

    number range not advisable stick with SAP rules.
    even we are i classic po /pr LINE ITEM 10 ,20 SC W.R.T 1,2 ...ITEM.
    concentrate some other customer developments and convince customers regarding this.
    Muthu

  • Duplicate Shopping Cart  line items  - Supplier doesnt get copied ?

    Hi,
    we are on SRM7  extended classic scenario and while we use the "Duplicate" option to copy the existing line items in a shopping cart then the supplier doesn't get copied to new line item, field remains blank? is it a standard behaviour?
    what are the steps needed to make this happen ? appreciate your help in this regard.
    Thanks,
    Maverick

    Hi
    In SRM , if you copy the line item all item data must copy including suppliers.
    step by step tell us
    like
    1 create a shopping cart describe requirement
    2. manually assigned a source of supply - assigned a vendor
    3. copy the line item into another one
    4. in the latest line item supplier was not copied.
    The behavior of copying/pasting or duplicating items in a SC is different depending on the status of the SC
    Note 1137292 - Inconsistency when duplicating items
    Muthu

  • I want to create a field in my shopping cart at item level

    I want to create a field in my shopping cart at item level of char 25 which is not there in the SRM server by default,
    Can tell me how can i do that,
    if it is related with adding some code in ITS then please give me sample code and tell me how to find that required ITS template.

    hello -
    you can reference sap note 672960 (older releases of SRM is 458591). 
    for shopping cart line item level, you would use structure:
    INCL_EEW_PD_ITEM_CSF_SC
    but keep in mind that you also have to add that field in:
    INCL_EEW_PD_ITEM_CSF
    thanks,
    stirfry,,,today is 'tofu'

  • Addition of custom field in shopping cart at item level- SRM 7.0

    Hi All
    Can someone pls. let me know the step by step procedure for adding a custom field in the shopping cart at item level?
    How is the field displayed in the portal screen and the settings for the same??
    Also is this field available for manipulation through Business add-ins like other standard fields.
    For e.g. I need to use the BADI BBP_CATALOG_TRANSFER to populate this new field.
    Will it be available there once created?
    Thanks
    Kedar

    Hi Kedar
      Here are the steps....
    1. Create a Custom field in SRM and append it to SC table structures in SRM
    2. Add this field to the Custom field config for meta data at Item level in IMG>SRM Server> Cross application basic settings> Extensionsand and field control> Configure field control --> Configure control of fields at item level
    3. THen find the respective web dynpro application and component for the shopping cart portal UI screen where you want the field to appear. You can do this by right click on the screen area and then select More Field Help
    4. Go to SE 80 and enhance the respective webdynpro view by adding the custom field to the Context of the VIew and then adding it to the layout of the view at respective location. After doing this create a binding between the layout field and the context.....
    More information around ABAP UI Flexibility can be found at:
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=%22abapUIFlexibility%22
    Regards
    Virender Singh

  • How to Disable/Customize Search Help in Shopping Cart tables?

    Hi,
    Is there a way to disable/customize the search helps associated in a field within the Shopping Cart detail/items table? Eg. G/L Account field. I already tried disabling the Input Help in the Attribute associated with the field in the COMPONENTCONTROLLER but the seach help is still showing up.
    Please advise.

    Hello again,
    Prasanna is right: the easiest way to change the search help for certain fields is to use the WD-Exits, in this case use of the WDDOMODIFYVIEW exit by creating an enhancement implementation.
    Here can dynamically change the help-value for certain fields. I will give you a sample for accounting field G-L-Account:
    METHOD pst4es1711jmkl7v3y2nb6isgkme . "Exit of WDDOMODIFYVIEW (in ZENH_ACCT......
    data .....
    *--- set value_help
        lo_node1       = wd_context->get_child_node( 'COMP_CONTEXT' ).
        lo_node2       = lo_node1->get_child_node( 'ACCOUNT_DETAIL' ).
        lo_node_info   ?= lo_node2->get_node_info( ).
        CALL METHOD lo_node_info->set_attribute_value_help
          EXPORTING
            name            = 'G_L_ACCT'
            value_help_mode = if_wd_context_node_info=>c_value_help_mode-application_defined
            value_help      = 'USG_ACCTF4'.
    Hope this will satisfy your request. Have success!
    Regards
    Joe

  • Custom fields in Shopping cart at item level

    Dear Experts,
    We have a requirement to create the fields in the shopping cart.
    Through customizing we have defined the fields and configured them. Now we could able to see the custom fields in the Shopping cart at item level. The values to custom fields must be the passed from the external Catalog after punch out.
    Which BADI should we implement and am i missing anything else.
    Please provide pointers to solve the issue.
    Thanks,
    Vikas

    Hello Vikas,
    Please find the sample code below for moving catalog field to custom field.
    But customer field mapping needs to be known.
    MOVE-CORRESPONDING enriched_item_data_out TO ls_enriched_item_data.
        wa_index = ls_enriched_item_data-line.
    *--- If Customer Field of Catalog is  Filled
        IF ls_enriched_item_data IS NOT INITIAL.
          wa_payment_term = ls_enriched_item_data-cust_field1.
          wa_incokey      = ls_enriched_item_data-cust_field3.
       wa_incoloc      = ls_enriched_item_data-cust_field1.
          wa_tax          = ls_enriched_item_data-cust_field5.
          wa_ag_id        = ls_enriched_item_data-agreement.
          LOOP AT et_sc_item_data_out INTO ls_item WHERE number_int EQ wa_index.
            ls_item-zpay_term = wa_payment_term.
            ls_item-zincokey  = wa_incokey .
            ls_item-zincoloc  = wa_incoloc.
            ls_item-ztax_code = wa_tax.
            ls_item-zag_id    = wa_ag_id .
            MODIFY et_sc_item_data_out INDEX wa_index FROM ls_item TRANSPORTING  zpay_term
                                                                                 zincokey
                                                                                 zincoloc
                                                                                 ztax_code
                                                                                 zag_id .
          ENDLOOP.
        ENDIF.
    regards,
    Neelima
    Edited by: S Neelima on Apr 28, 2011 2:09 PM

  • Shopping cart line status and codes

    I am using SRM 4.0 , I need a list of all Shopping cart line status and codes. Where can i find that infomation

    Hi,
    Regarding only to shopping cart status, it can be the following:
    At header level:
    I1039 - Doc incomplete
    I1131 - Template
    I1009 - Held
    I1040 - Deleted
    I1038 - Doc complete
    I1106 - Shopping cart ordered
    I1023 - Transaction completed
    I1015 - Awaiting approval
    I1129 - Approved
    I1016 - Approval rejected
    I1138 - Resubmission
    At item level:
    I1111 - Item in transfer process
    I1112 - Error in transmission
    I1113 - Follow-on document created
    I1114 - Item in deletion process
    I1139 - Change of an external requirement
    I1114 - Follow-on document deleted
    I1116 - Deletion failed
    Kind regards,
    Ricardo Cavedini

  • Help on Shopping Cart Upload Program

    Hi All,
    I am trying develop a program for uploading Shopping Carts from EXCEL Spread Sheet.
    I have gone through the following thread. But still I am facing the problems:
    /message/3082168#3082168 [original link is broken]
    Procedure 1: I developed program with 'BBP_PD_SC_CREATE_EXTERNAL', I got the following erros
    Shopping Cart Upload Program
    00001 E 008
    No account assignment exists. Enter an account assignment
                         000000
    00001 E 047
    Please specify Account Assignment by selecting "Known" radio button for
                         000000 Please specify Account Assignment by selecting "Known" radio button for
    00001 E 247
    Plant for follow-on document missing
                         000000
    Procedure 2: I used BBP_PD_SC_CREATE. I am getting the following Errors:
    Shopping Cart Upload Program
    A
    Interface data contains errors
    A
    Interface data contains errors
    A
    Interface data contains errors
    A
    No data found
    A
    No data found
    A
    The document does not exist. Check entries
    A
    Incorrect interface data for set PDDEP in method C
    A
    Incorrect interface data for set PDDYN in method C
    A
    Incorrect interface data for set PDFRT in method C
    A
    Incorrect interface data for set PDHCF in method C
    A
    Incorrect interface data for set PDORG in method C
    A
    Incorrect interface data for set PDTAX in method C
    A
    Incorrect interface data for set PDTOL in method C
    A
    Incorrect interface data for set PDWGT in method C
    E
    Enter at least one item or one limit
    Procedure 1 Sample Program:
    DATA: i_basket        TYPE TABLE OF bbp_basket_ext_device,
          i_basket_back   TYPE TABLE OF bbp_basket_back,
          i_basket_errors TYPE TABLE OF bbp_oci_errors.
    DATA: w_basket        TYPE bbp_basket_ext_device,
          w_basket_back   TYPE bbp_basket_back,
          w_basket_errors TYPE bbp_oci_errors.
    PARAMETERS: p_user TYPE sy-uname DEFAULT 'REQUESTER'.
    CLEAR w_basket.
    w_basket-basket_name = 'Test Shopping Cart'.
    w_basket-line = '00001'.
    w_basket-description = 'Mat Desc New'.
    w_basket-quantity = 1.
    w_basket-unit = 'EA'.
    w_basket-price = 10.
    w_basket-priceunit = 1.
    w_basket-currency = 'USD'.
    w_basket-vendor = '0000301300'.
    w_basket-category_id = 'L03621101'.
    APPEND w_basket TO i_basket.
    CALL FUNCTION 'BBP_PD_SC_CREATE_EXTERNAL'
      EXPORTING
        user_name     = p_user
      TABLES
        basket        = i_basket
        basket_back   = i_basket_back
        basket_errors = i_basket_errors
      EXCEPTIONS
        not_saved     = 1
        OTHERS        = 2.
    IF sy-subrc EQ 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    LOOP AT i_basket_back INTO w_basket_back.
      WRITE:/ w_basket_back-basket, w_basket_back-basket_number.
    ENDLOOP.
    LOOP AT  i_basket_errors INTO w_basket_errors.
      WRITE:/ w_basket_errors-line,
              w_basket_errors-type,
              w_basket_errors-code,
              w_basket_errors-message,
              w_basket_errors-log_no,
              w_basket_errors-log_msg_no,
              w_basket_errors-message_v1,
              w_basket_errors-message_v2,
              w_basket_errors-message_v3,
              w_basket_errors-message_v4.
    ENDLOOP.
    Procedure 2 Sample Program:
    DATA: v_header_guid  TYPE crmd_orderadm_h-guid,
          v_item_guid    TYPE crmd_orderadm_h-guid,
          v_account_guid TYPE crmd_orderadm_h-guid,
          v_partner_guid TYPE crmd_orderadm_h-guid,
          v_orgdata_guid TYPE crmd_orderadm_h-guid.
    DATA: i_messages TYPE TABLE OF bbp_pds_messages,
          i_item     TYPE TABLE OF bbp_pds_sc_item_d,
          i_account  TYPE TABLE OF bbp_pds_acc,
          i_partner  TYPE TABLE OF bbp_pds_partner,
          i_orgdata  TYPE TABLE OF bbp_pds_org.
    DATA: w_header   TYPE bbp_pds_sc_header_ic,
          w_e_header TYPE bbp_pds_sc_header_d,
          w_messages TYPE bbp_pds_messages,
          w_item     TYPE bbp_pds_sc_item_d,
          w_account  TYPE bbp_pds_acc,
          w_partner  TYPE bbp_pds_partner,
          w_orgdata  TYPE bbp_pds_org.
    CLEAR i_messages.
    v_header_guid  = 1.
    v_item_guid = 2.
    v_account_guid = 3.
    v_partner_guid = 4.
    v_orgdata_guid = 5.
    *header-guid = 1.
    *item-parent = 1.
    *item-guid = 2.
    *accounting-guid = 3.
    *accounting-p_guid = item-guid.
    *partner-partner_guid = 4.
    *partner-p_guid = item-guid.
    *organization-guid = 5.
    *organization-p_guid = item-guid.
    *I_HEADER
    CLEAR w_header.
    w_header-guid = v_header_guid.
    w_header-object_id  = 'BUS2121'.
    w_header-description = 'Test SC Upload'.
    w_header-currency = 'GBP'.
    w_header-process_type = 'SHC'.
    w_header-posting_date = sy-datum.
    *I_ITEM
    * DELIV_DATE, PRODUCT_TYPE, LOGSYS_FI, BE_CO_CODE.
    CLEAR w_item.
    w_item-guid = v_item_guid.
    w_item-parent = v_header_guid.
    w_item-number_int = '0000000001'.
    w_item-number_ext = '0000000000'.
    w_item-product = '45ACB1298F870099000000000A8E0327'.
    w_item-description = 'Lay Main <=180'.
    w_item-category = 'FC888C591C4CFC4081AE49F48750CBAB'.
    w_item-category_id = 'L03621101'.
    w_item-ext_quote_item = '0000000000'.
    w_item-quantity = 1.
    w_item-unit = 'EA'.
    w_item-ordered_prod = '/EC_1A001'.
    w_item-price = 2.
    w_item-price_unit = 1.
    w_item-gross_price = 2.
    w_item-currency = 'USD'.
    w_item-del_datcat = 1.
    w_item-deliv_date = sy-datum.
    w_item-product_type = '01'.
    w_item-logsys_fi = 'DEVCLNT100'.
    w_item-be_log_system = 'SRDCLNT100'.
    *w_item-be_stge_loc = 'MAIN'.
    w_item-be_plant = '1020'.
    *w_item-be_move_type = '281'.
    w_item-be_pur_group = '50002754'.
    w_item-be_pur_org = '50000040'.
    w_item-be_co_code = '1020'.
    w_item-be_doc_type = 'ECPO'.
    APPEND w_item TO i_item.
    *I_ACCOUNT
    CLEAR w_account.
    w_account-guid = v_account_guid.
    w_account-p_guid = v_item_guid.
    w_account-distr_perc = 100.
    w_account-acc_no = '0001'.
    w_account-acc_cat = 'OR'.
    *w_account-SRC_GUID 00000000000000000000000000000000
    w_account-g_l_acct = '0000621101'.
    *w_account-BUS_AREA VTRS
    w_account-cost_ctr = ' 0000012061'.
    w_account-sdoc_item = '000000'.
    w_account-sched_line = '0000'.
    w_account-co_area = 'EXEL'.
    *w_account-profit_ctr = 'NM01'.
    *w_account-PROF_SEGM 0000000000
    *w_account-CMMT_ITEM 500411060
    *w_account-FUNDS_CTR 6589
    APPEND w_account TO i_account.
    *I_PARTNER
    CLEAR w_partner.
    w_partner-partner_guid = v_partner_guid.
    w_partner-p_guid  = v_item_guid.
    w_partner-partner_fct = '00000016'.
    w_partner-partner_no = '48ED292BF5193C52E1000000AC1D061F'.
    w_partner-addr_type = '3'.
    w_partner-addr_origin = 'A'.
    w_partner-addr_no = '0000011078'.
    w_partner-partner_id = '0000000941'.
    APPEND w_partner TO i_partner.
    CLEAR v_partner_guid.
    CLEAR w_partner.
    w_partner-partner_guid = v_partner_guid.
    w_partner-p_guid  = v_item_guid.
    w_partner-partner_fct = '00000020'.
    w_partner-partner_no = '4896D1636F351467E1000000AC1D061F'.
    w_partner-addr_type = '3'.
    w_partner-addr_origin = 'A'.
    w_partner-addr_no = '0000011078'.
    w_partner-partner_id = '0000000941'.
    APPEND w_partner TO i_partner.
    CLEAR v_partner_guid.
    CLEAR w_partner.
    w_partner-partner_guid = v_partner_guid.
    w_partner-p_guid  = v_item_guid.
    w_partner-partner_fct = '00000027'.
    w_partner-partner_no = 'B106B75848BC9B4584C8A1C1EB89EC94'.
    w_partner-addr_type = '1'.
    w_partner-addr_origin = 'B'.
    w_partner-addr_no = '0000015958'.
    w_partner-partner_id = '0000000915'.
    APPEND w_partner TO i_partner.
    *I_ORGDATA
    CLEAR w_orgdata.
    w_orgdata-guid = v_orgdata_guid.
    w_orgdata-p_guid  = v_item_guid.
    w_orgdata-proc_org_resp_id = '50002754'.
    w_orgdata-proc_group_id = '50002754'.
    w_orgdata-proc_org_id = '50000040'.
    APPEND w_orgdata TO i_orgdata.
    CALL FUNCTION 'BBP_PD_SC_CREATE'
      EXPORTING
        i_ref_guid = v_header_guid
        i_park     = 'X'
        i_save     = 'X'
        i_header   = w_header
      IMPORTING
        e_header   = w_e_header
      TABLES
        i_item     = i_item
        i_account  = i_account
        i_partner  = i_partner
        i_orgdata  = i_orgdata
        e_messages = i_messages.
    LOOP AT i_messages INTO w_messages .
      WRITE:/ w_messages-msgty,
    *  w_messages-msgid,
    *  w_messages-msgno,
      w_messages-message
    *  w_messages-msgv1,
    *  w_messages-msgv2,
    *  w_messages-msgv3,
    *  w_messages-msgv4
    ENDLOOP
    Thanks a lot in advance to help me out this.
    Please send if you have code to complete this to sudarsan.srm at gmail (gmail id - sudarsan.srm)
    Best Regards,
    Sudarsan

    Hi All,
    I forgot to mention SRM Version. I am working on SRM 4.0.
    Thanks,
    Best Regards,
    Sudarsan

  • Delete shopping cart line

    Hi experts,
    i'd like to know if is possible to delete, with standar ways, the line item of the shopping cart even after the approval is done.
    Thanks
    bye
    ANDREA

    Hi,
    Please go through this ->
    The only standard option is to delete the SC line items. For this you the user must have activity "06 Delete" in his PFCG role. This activity enable him to delete SC line items once the SC is in status approved.
    Shopping cart cannot be deleted once approval is done. You can delete it before approval.
    But you can delete the line item of the shopping cart even after the approval is done. In that case if any follow-on doc is created for that line item of shopping cart it will get deleted. You will find the delete tab becoming grey once the follow-on doc. is created in the check status (BBPSC04 transaction) of the SC.
    Re: shopping cart deletion
    Other alternatives ->
    1) The FM BBP_PD_SC_DB_DELETE deletes from persistent layer.
    2) The FM BBP_PD_SC_STATUS_CHANGE with 'DELE' activity, marks as deleted and keep the document in the persistent layer.
    According your needs, you will need to choose which one fits your requirement.
    To commit changes to DB from BBP_PD_SC_DB_DELETE you will need to COMMIT WORK, cuz even the FM doesn't display any error messages in the e_messages table, the deletion task is not commited.
    About the BBP_PD_SC_STATUS_CHANGE FM, you will need to inactivate the follow on document status in the CRM_JEST table to achieve the deletion with the FM i have mentioned...
    For both FM's *DB_DELETE and *STATUS_CHANGE you need to create a ZFM or ZREP to write the COMMIT WORK instruction after the execution of the FM.
    Related links ->
    Re: Delete SC from BBPSC4 and no control is possible
    Re: Problem when deleting line item from SC after order
    Re: Deletion of Shopping cart!!
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • Shopping carts in  'Item in Transfer Process',approval completed but no PO

    HI Gurus,
    We have some Shopping carts( which are in  'Item in Transfer Process'...) for which approval workflow has completed but the PO is not being created, and the status of the Cart is approved and of the item is
    'Item in Transfer Process'.
    I have tried running the function module BBP_REQREQ_TRANSFER
    and Report CLEAN_REQREQ_UP but it failed to generate any PO.
    Also there are no alerts in neither BBP_PD nor RZ20.
    Kindly assist.
    Thanks in advance,
    Regards,
    Ankur Bakshi

    Hello,
    Try FM "BBP_PD_SC_TRANSFER" in SE37
    give RFC of yr backend and SC guid from BBP_PD
    execute
    check whether " bbp_document_tab " hold entry for the SC
    "clean_reqreq_up" is meant to clear entry from this table
    in BBP_PD put the alerts on "Check Document" & "Find Alerts" by putting X and see if you are getting any hints.
    In the admin log on for yr SRM client (user with SAP_BBP_STAL_ADMINISTRATOR) check the application monitors for SC
    BR
    Dinesh
    (Reward if helps)

  • ******Need help on shopping cart javaBean code*******

    Compiling the following code outputs the error that the javaBean curItem does not exist. However, my other code depends on a javaBean curItem. I don't understand why I cannot update the quantity property of a specific object (curItem) in the arrayList lineitems if I am declaring curItem to be an object inside lineitems using the var attribute. Please clarify and perhaps help update the quantity property in an object in lineitems using a curItem javabean. Thanks!
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="wxshop" uri="http://www.wrox.com/begjsp/eshop-functions-taglib" %>
    <%@ page session="true" %>
    <c:set var="EXAMPLE" value="/example1"/>
    <c:set var="SHOP_PAGE" value="/estore.jsp"/>
    <c:set var="CART_PAGE" value="/shopcart.jsp"/>
    <html>
    <head>
    <title>Endivian.com Shopping Cart</title>
    <link rel=stylesheet type="text/css" href="store.css">
    </head>
    <body>
    <c:if test="${!(empty param.sku)}">
    <c:set var="prod" value="${wxshop:getItem(param.sku)}"/>
    </c:if>
    <jsp:useBean id="lineitems" class="java.util.ArrayList" scope="session"/>
    <c:choose>
    <c:when test="${param.action == 'clear'}">
    ${wxshop:clearList(lineitems)}
    </c:when>
    <c:when test="${param.action == 'inc' || param.action=='buy'}">
    <c:set var="found" value="false"/>
    <c:forEach var="curItem" items="${lineitems}">
    <c:if test="${(curItem.sku) == (prod.sku)}">
    <jsp:setProperty name="curItem" property="quantity"
    value="${curItem.quantity  +1}"/>+
    +<c:set var="found" value="true" />+
    +</c:if>+       
    +</c:forEach>+
    +<c:if test="${!found}">+
    +<c:remove var="tmpitem"/>+
    +<jsp:useBean id="tmpitem" class="com.wrox.begjsp.ch03.LineItem">+
    +<jsp:setProperty name="tmpitem" property="quantity" value="1"/>+
    +<jsp:setProperty name="tmpitem" property="sku" value="${prod.sku}"/>+
    +<jsp:setProperty name="tmpitem" property="desc" value="${prod.name}"/>+
    +<jsp:setProperty name="tmpitem" property="price" value="${prod.price}"/>+
    +</jsp:useBean>+
    +${wxshop:addList(lineitems, tmpitem)}+
    +</c:if>+
    +</c:when>+
    +</c:choose>+ 
    +<c:set var="total" value="0"/>+
    +<table width="640">+
    +<tr><td class="mainHead">Wrox JSTL Web Store</td></tr>+
    +<tr>+
    +<td>+
    +<h1></h1>+
    +<table border="1" width="640">+
    +<tr><th colspan="5" class="shopCart">Your Shopping Cart</th></tr>+
    +<tr><th align="left">Quantity</th><th align="left">Item</th><th align="right">Price</th>+
    +<th align="right">Extended</th>+
    +<th align="left">Add</th></tr>+
    +<c:forEach var="curItem" items="${lineitems}">+
    +<c:set var="extended" value="${curItem.quantity * curItem.price}"/>+
    +<c:set var="total" value="${total+  extended}"/>  
    <tr>
    <td>${curItem.quantity}</td>
    <td>${curItem.desc}</td>
    <td align="right">
    <fmt:formatNumber value="${curItem.price / 100}" type="currency"/>
    </td>
    <td align="right">
    <fmt:formatNumber value="${extended / 100}" type="currency"/>
    </td>
    <td>
    <c:url value="${CART_PAGE}" var="localURL">
    <c:param name="action" value="inc"/>
    <c:param name="sku" value="${curItem.sku}"/>
    </c:url>
    <a href="${localURL}"><b>Add 1</b></a>
    </td>
    </tr>
    </c:forEach>
    <tr>
    <td colspan="5"> 
    </td>
    </tr>
    <tr>
    <td colspan="3" align="right"><b>Total:</b></td>
    <td align="right" class="grandTotal">
    <fmt:formatNumber value="${total / 100}" type="currency"/>
    </td>
    <td> </td>
    </tr>
    <tr>
    <td colspan="5">
    <c:url value="${CART_PAGE}" var="localURL">
    <c:param name="action" value="clear"/>
    </c:url>
    <a href="${localURL}">Clear the cart</a>
    </td>
    </tr>
    <tr>
    <td colspan="5">
    <c:url value="${SHOP_PAGE}" var="localURL"/>
    <a href="${localURL}">Return to Shopping</a>
    </td>
    </tr>
    </table>
    </td></tr>
    </table>
    </body>
    </html>
    Error(34,37):  This bean name does not exist.

    curItem is not a java bean; it is a variable that points to a value from the lineitems list. setProperty requires a an actually declared bean (something you declare with jsp:useBean).
    What gave you the conclusion that you should be using jsp:setProperty anyway? Everywhere else in the page you are using c:set :s

  • Shopping Cart status " Item in transfer process"

    Dear Friends,
    A shopping was created and it went to approval as per the Workflow designed.
    It got the approval from all the required levels. But in the SRM system when checked with the chopping cart number with tcode BBP_PD the status is showing as " AWAITING APPROVAL" . and when it is check in the SRM Portal at Monitor shopping card at header level the status is same as above but in item the status is showing as  " Item in transfer process".
    And in BBP_PD its displaying the created PR number. But when this PR is checked in SAP, then its displaying missage no PR exist.
    Please guide me in resolving this.
    Thanks in advance.
    Vamshi Sreerangam

    Hi Vamshi,
    Can you check error log in RZ20 for this shopping cart?
    Regards,
    Nikhil

  • How to put search help for shopping cart fields.

    Hello Gurus,
    I need to put search help for some of the fields in shopping cart. Pls let me know do we have any standard way with out abap work. pls suggest me how to proceed.
    Thanks,
    kamal

    Check out the field and do a mapping od the same in se11, ie field and the table from which you want to search

Maybe you are looking for

  • How can I tell if I have the right restore disks for Intel Mac Mini

    I have an "early 2006" (confirmed by S/N YM609***) Intel Mac Mini 1.66mhz Core Duo. I bought it used and the hard drive had been wiped. Both the HD and the DVD drive seem to work fine; hard drive passes SMART tests. I was able to boot using "Drive Ge

  • How do i delete the previous backups from HP surestore PD5000z?

    I have been using the HP PD5000z to backup my main hard drive for a couple of years. I now receive the error that the back up is too large and need to either reduce the files being backed up or delete files from the PD5000z. How do i know which files

  • ODS Activation queue not getting cleared after activation

    Dear Experts, I have a strange situation in my BI 7.0 system. Within one ODS I have an activation queue (new data table) of around 34Gb in size. As far as I know, this table should be empty, because all requests are activated correctly. Every night a

  • Deleting pages - CS3

    I'm having a problem deleting pages in CS3 using the Pages Palette. When I try to delete multiple pages, it only deleted the last page of the selected range. I have also had the problem of it deleting a different page than the one I have selected in

  • Help-moved Domain.sites2 file, lost content wife's site

    Hi, This is about my wife's MAC so it is even more serious because it's my fault. I'm her IT guy but I don't know her iWeb projects very well. I helped her get started and once her site launched a year ago, all has been great and I stopped studying/l