Implementing Shopping cart

I wrote the code for implementing only one shopping cart. BUt there is problem. I wrote this code but it's not able to populate the sku's id.
I am using CRS database. And implementing own project.
<dsp:importbean bean="/atg/commerce/order/purchase/CartModifierFormHandler"/>
<dsp:importbean bean="/atg/dynamo/droplet/ForEach"/>
<dsp:input bean="CartModifierFormHandler.ProductId" paramvalue="Product.repositoryId" type="hidden"/>
<input value='<dsp:valueof param="Product.repositoryId"/>' type="hidden" name="id">
<table>
<tr><td class=box-top-store>Add to Cart</td></tr>
<tr><td class=box>
Add
<dsp:input bean="CartModifierFormHandler.quantity" size="4" value="1" type="text"/>
<dsp:select bean="CartModifierFormHandler.catalogRefIds">
<dsp:droplet name="ForEach">
<dsp:param param="Product.childSKUs" name="array"/>
<dsp:param value="Sku" name="elementName"/>
<dsp:param value="skuIndex" name="indexName"/>
<dsp:oparam name="output">
<dsp:getvalueof id="opt" param="Sku.repositoryID" idtype="java.lang.String">
<dsp:option value="<%=opt%>"/>
</dsp:getvalueof>
<dsp:valueof param="Sku.displayName"/>
</dsp:oparam>
</dsp:droplet>
</dsp:select>
<br>
<dsp:input bean="CartModifierFormHandler.addItemToOrder"
value="Add to Cart" type="submit"/>
</td>
</tr>
</table>
please look into it.
Thanks

Hi Karthik,
In InventroyLookup we are passing sku.repositoryId:
<dsp:droplet name="/atg/commerce/inventory/InventoryLookup">
<dsp:param name="itemId" param="Sku.repositoryId"/>
<dsp:param name="useCache" value="true"/>
<dsp:oparam name="output">
Stock Level :<dsp:valueof param="inventoryInfo.availabilityStatusMsg">unknown</dsp:valueof>
</dsp:oparam>
</dsp:droplet>
In below documentation it is given during adding item to order also we are setting sku.repositoryId:
http://docs.oracle.com/cd/E23095_01/Platform.93/ATGCommStoreGuide/html/s1301addingitemstoshoppingcarts01.html
Is there any difference between Sku.repositoryId and Sku.id?
Thanks in advance.
-RMishra
Edited by: RMishra on Oct 26, 2012 8:08 PM

Similar Messages

  • How to implement Shopping cart functionality in weblogic portal 10.3

    Hi,
    Can someone help me out on how to implement Shopping cart functionality in weblogic portal 10.3?
    Thanks,
    Uttam

    One piece of advise I can give is to NOT* use the Shopping Cart fuctnionality inherent in WLP (com.beasys.commerce.ebusiness.shoppingcart. The Online Commerce functionality in WebLogic Portal has been deprecated.
    Brad

  • IMPLEMENTING SHOPPING CART UPDATE FUNCTIONALITY

    Hi,
    I'm able to create a shopping cart in held state using BBP_PD_SC_CREATE by passing 'X' to  IV_PARK. and a shopping cart in awaiting approval state by passing NULL to IV_PARK.
    And while updating a shopping cart, I'm using BBP_PD_SC_UPDATE fm, and as it has an import parameter IV_PARK  here , i'm doing the same. But here, when i update a HELD SC and order it, i mean, by PASSING IV_PARK as NULL, my shopping cart is still in HELD STATE.
    PLS help in implementing of taking over a held shopping cart and ordering it, so that the cart goes into AWAITING APPROVAL state.
    Thanks,
    Karthik Babu

    Hi,
    When you call BBP_PD_SC_UPDATE for a held SC, pass I_PARK = NULL, I_SAVE = X. With this the SC will move from HELD to AWAITING APPROVAL status and corresponding workflow will be trigerred.
    Regards,
    Prasanna

  • Need appropriate pattern for shopping cart

    hallo all,
    as i've read in some articles there are common way to represent database entity (a row in the table) by an entyty beans.
    but, what is an appropriate way to represent a set of rows ? for example - user's shopping cart.
    i don't like the common way - to implement shopping cart as session bean and cart record as entity bean ... coz (imho) it is very slow - requires multiple database requests (ejbLoad calls) while loading cart content ... is there another pattern ?

    represent the cart as a session bean and the line items as a dependent object. Create a class class LineItems that implements java.io.Serializable. You avoid the cost of a remote call. As the line items are not available without the Cart bean there is no need for the user to access the line items directly without going through the Cart bean. So the line item class does not need to be a EJB.

  • Shopping cart offline approval with outlook

    Dear Experts,
    Currenlt we are working on SRM 5.0 classic scenario and ECC 6.0. I want to implement shopping cart offline approval with outlook.
    Can you please guide me what all are the settings need to be done for offline approvals....
    Thanks
    Ravi

    Hi Ravi,
    The program RSWUWFMLEC was used to scehdule offline approval mails upto SRM 4.0(In SRM 5.0,report RBBP_NOTIFICATION_OFFAPP is used)..
    Please see the foll link for more deatils:
    SRM5.0:
    http://help.sap.com/saphelp_srm50/helpdata/en/31/ec423b4ac8d506e10000000a11402f/frameset.htm
    SRM 4.0:
    http://help.sap.com/saphelp_srm2007/helpdata/en/31/47c6cb8e9249f2bc29444212e4704a/frameset.htm
    You need to check the settings mentioned in the link above before you scehdule the report for snding the approval mails to the external email ID's of the approvers.
    The job mentioned are only for sending the approval mails.To send the requester notification messages to external mail box (instead of SRM inbox),see the foll thread for more pointers:
    Re: mail refuse shopping cart
    Do let me know if you need an further help.
    BR,
    Disha.

  • Shopping cart using Workflow??

    Hello Expert could anyone plz tell me why we need shopping cart ? i mean what is the necessity of it ? and how to implement shopping cart  with WORKFLOW ?
    Useful answer will be rewarded.
    Thanks
    A v I

    Hi,
       most of the Badi's that are related to business document will trigger when the approver take the decision.. if the error raise by the standard code.. approver must be seen in the SC screen.. if the error is raise by the check badi then you can debug the check badi in BBP_PD.. put the break point in DOC_CHECK badi and click the check message again in the bottom of the details screen..
    Saravanan

  • Shopping Cart @ sp4

    Hi,
    i want to implement the Shopping Cart in my Website.
    i came to know that some plugins are available for shopping cart @ weblogic 8.1
    pls let me know
    1. code for implementing shopping cart
    2. connecting shopping cart to Oracle
    Thanks.

    Apple, this is why you need to implement a wish list feature. I'll often stumble across a song that I'm not sure I want to buy yet but may be interested in the future. Now, finding out that the shopping cart is limited makes that an even better idea.
    I tried submitting this idea in the iTunes Feedback Form, but no go yet. Anyone else want to submit the idea?

  • Help needed in shopping cart implementation in JSP

    hi all,
    i need some help or code in implementing a shopping cart in JSP. Please send me code or any web resource.

    Hi!..i m in the same problem..if you have some idea or code..plz..
    robin_caba(@) yahoo.es

  • Issue in Process Controlled workflow for Shopping cart in Quality system.

    Hello All,
    I ahve configured a Process controlled workflow in SRM 7.0  with custom resolver, and I am facing an issue taht the Workflow works well in Development but in Quality the approvers are dropped after SC is ordered in Quality system.
    The SC Workflow drops the approvers picked up from the Interface  method /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP and IF_EX_WF_RESP_RESOLVERGET_APPROVERS_BY_AREA_GUID of BADI /SAPSRM/BD_WF_RESP_RESOLVER. The approvers can be seen in the shopping cart Approval preview Tab until the SC is ordered.
    I have compared the OSS notes relevant for Workflow, all of them have been transported, Also I compared and checked general Workflow settings, BRF Config and  Process level  settings in Dev and Quality, everything is same.
    Also while debugging; the approvers can be seen in the decision set table in the create_process_forecast method of class /SAPSRM/CL_WF_PROCESS_MANAGER.
    Kindly let me know what else i can check to find the root cause.
    Thank you in advance for help!
    Regards
    Prasuna.

    Hello Vinita;
    Thanks for the input and sorry for the not so "ASAP" reply;
    From what I'm seeing in from your 2 screenshot, i strongly believe that the problem is even before the Z implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID (in which the FM i ZSRM_GET_USER_FROM_PGRP is called. I think the problem could be in the process level determination  ZSRM_WF_BRF_0EXP000_SC_APP100. Let me explain:
    In your  cases where not buyer is determined,  in the approval tab there is not even a process level for buyer approval. If the problem were indeed in the implementation  /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID  then the process level would be there, but the system will display, instead of the name of the buyer(if the buyer determination fails) a red label with the message:  "With the strategy "Buyer determination" an approver could not be determined (or something like that..please check the image at the end of the text)".
    I can propose a way to discard this: Implement the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS of class ZCL_BADI_SC_WC (in case you didn't know, in this method you can specify an "default" approver in case that the determination of approver in GET_APPROVERS_BY_AREA_GUID fails). The idea is to specify an default approval and see how it behaves:
    If the user you indicated in the method GET_FALLBACK_AGENTS appears as approver, then yes, the problem is arises from implementation GET_APPROVERS_BY_AREA_GUID, in which case it could be a data problem (peharps in pposa_bbp?). You could also check in TX SU53 with the users with this problem to see if there's a missing authorization objetc.
    If, in the other hand, the "default" approver is not shown, it means that the process level buyer determination is not even called, so you should check in more detail ZSRM_WF_BRF_0EXP000_SC_APP100 and /SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- (i have never used this method, so i could not tell if  it could be the source of the problem).
    Also, you could implement the method GET_FALLBACK_AGENTS in this way so the default approver would be the WF administrator indicated in the customizing (or you could just append directly any user you want):
    METHOD /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS.
       DATA: lv_admin_expr TYPE swd_shead-admin_expr,
             lv_admin      TYPE swd_shead-wfi_admin,
             lv_admin_type TYPE sy-input,
             ls_agent      TYPE  /sapsrm/s_wf_approver.
       CALL FUNCTION 'SWD_WF_DEFINITION_ADMIN_GET'
         IMPORTING
           default_admin_expr = lv_admin_expr
           default_admin      = lv_admin
           default_admin_type = lv_admin_type.
       ls_agent-approver_id = lv_admin.
       APPEND ls_agent TO rt_agent.
    ENDMETHOD.
    Error of agent determination:
    Please let me know the result of the test with the implementation of method GET_FALLBACK_AGENT. By doing this we could ensure if really the problem is in method GET_APPROVERS_BY_AREA_GUID or before.  I just made the test in our system and I'm almost sure that you wont get the default approver, but i could be wrong. 
    Any question please let me know.
    Best regards
    Cristian R.

  • SRM 7.0 Process-Controlled (BRF) Workflow -- Error message to Shopping Cart

    I am modifying a BRF Expression used to calculate approval levels.  During this calculation, I may run into error conditions (e.g. Currency tranlsation not found) that I want to display to the user (in the Shopping Cart).
    I have tried raising the following exceptions:
    /sapsrm/CX_WF_RULE_ERROR.
    /sapsrm/CX_WF_RULE_ABORT.
    Raising these exceptions do result in SLG1 log entries being written, but the User is not informed of the error (ie. at top of shopping cart where other messages display).
    I can probably jump out of the Webdynrpo to read logs, but thought there MUST be some standard way of passing error conditions from the BRF, back to WF, and then back to the Webdynpro Window.
    Anybody raise error messages back to the online user from Process-Controlled Workflow?
    Thanks,
    - Tim

    >
    Saravanan Dharmaraj wrote:
    > Hi Tim,
    >
    >    I am not sure about your business requirement, but if you want to display custom error message while user create a SC, SAP has provided a standard BADI - BBP_DOC_CHECK_BADI. You can implement this Badi to raise a custom error,warning message. You can build your brf logic in the BADI implementation..
    >
    >
    > Best Regards,
    > Saravanan Dharmaraj.
    Hi Saravanan,
    I am actually modifying the Approval Limit Checks (for multi-currency translations) that you recently coded in Maryland.  It can occur that errors occur in determining limits (new Currency translation I just added), or during the lookup of agents (ie user config is inconsistent).
    In these cases, I can make the shopping cart Dump, by raising untrapped error messages, or assertions.   However, I would like to raise exceptions that get trapped (such as the ones I identified in original post), and then make their way to the shopping cart.
    Unless I am missing something, I don't think the WF BADIs, or BRF are gonna communicate errors back to the shopping cart, even though these components are called during cart creation and checks.
    I realize that I can recode the Agent Determination BADIs,  BRF calls, or even read BRF logs within BBP_DOC_CHECK_BADI.  I mentioned this in my original posting as well.
    Anyway, any help is appreciated.
    Thanks,
    - Tim

  • SRM 5.0 - how to hide a section/tab in shopping cart

    Hi.
    Is it possible to hide a whole section of the shopping cart, like "Ship-to address" or "Source of Supply"? I've used BADI to hide the fields in these sections and it works, however, I'd like to not show the sections at all including section headers.
    Thanks,
    Irina

    1.     You have to create BADI implementation in SE19. In the bottom portion of the screen select “Classic BAdi” and enter BBP_UI_CONTROL_BADI as BAdi Name. Click “Create Impl” button
    2.     Type in text and implementation name (usually something like  ZBBP_UI_CONTROL_BADI)
    3.     Attributes Tab. add Filter - ObjectType BUS2121 for Shopping Cart
    4.     Interface Tab. Double-click on method BBP_SC_UI_CTRL
    5.     Example of “display only” fields in Ship-to Address section:
    CASE iv_progname.
        WHEN 'SAPLBBP_SC_UI_ITS'.
          CASE iv_dynpname .
            WHEN '0310'.
              IF iv_fieldname = ' GV_F4_D_ADDR_EVENT '
                cv_input_ready = ''.  “<- display only
              ENDIF.
    *  If you want to hide all Ship-
    * to Address fields (FuncGrp BBP_SC_UI_ITS, screen 310)
    * use the following code:
              cv_input_ready = ''
              cv_invisible   = '1'.
            WHEN OTHERS.
          ENDCASE.
      ENDCASE.
    6.     Activate the code.
    7.     Activate the implementation.

  • How to hide custom fields in Shopping cart depening on user role

    Hi,
    We have some custom fields in shopping cart for basic view. Every thing works fine. Now client is asking to hide all the custom fields based on user role.
    I found some function module to fund roles. now my main problem is unable to find the cusotm filed screen field name.
    When I tryed to find the screen field name using BBPSC02/03, its giving 'GT_DISPLAY_100-FIELD'. If I try to use this field, its not working.
    Could you pls tell me how to find custom screen filed name to hide in shopping cart.
    Thanks,
    Ram

    Hi Ram,
    As Laurent suggested,to hide the custom fields based on the user role,you need to implement the logic in BADi "BBP_CUF_BADI_2".
    You have the importing parameter IV_USER in this BADI.
    Pass this parameter to tables AGR_USERS and AGR_USERT  to get the user role
    OR
    Use FM: BAPI_USER_GET_DETAIL
    with USERNAME= user id and can retrieve Table: ACTIVITYGROUPS Field:AGR_NAME
    if you want the otherway around
    you can also use FM: RSRA_USERS_OF_AGR_GET
    with I_AGR_NAME= role and you can retieve Table: ACTIVITY_GROUPS_USERS Field: UNAME(usr Id)
    Then check the value for the User role as obtained using the above steps and accordingly set the property for the custom fields to hide them.
    BR,
    Deepti.

  • GR IR indocator check box not flagged in the PR created from Shopping cart

    Hello All,
    The PR created in R3 from the shopping cart is not flagged with GR IR indicator in the Valuation tab.
    We are usign SRM 4.0 . This issues has happened since last two days.
    Please advice how to track this and how to resolve this issue.
    Thanks & Regards,
    Madhan.

    Hi Swati,
    The mentioned settings are already exist in our system.
    Recently the support pack have been implemented in our system and since the problem is coming.
    Madhan.

  • Is there a shopping cart in ME21N schedule line tab in AFS ?

    Hello Experts,
    My problem is exactly same as mentioned in following  [ link|;
    As explained in this thread regarding shopping cart in delivery schedule line items, in my system there is no shopping cart appearing in delivery schedule line items however shopping cart is there at header level near document type field.
    I have to consolidate the quantities of PR based on material and grid value.
    I am using AFS module.
    Is this scenario possible to implement in AFS module, if yes, how?
    Please help.
    Edited by: shubh_ag on Mar 9, 2012 4:30 PM
    Edited by: Jürgen L. on Mar 9, 2012 4:52 PM

    There isn't a cart or basket - you will need to buy each item individually.

  • How to deactivate/ignore R/3 info records when creating Shopping Cart?

    Hi all and thanks for reading...
    We have the requirement of ignoring/deactivating R/3 info records when creating Shopping Carts SRM , so that no Vendor is proposed in transactions BBPSC01/BBPSC02.
    At the moment, when info records exist in backed, system is proposing vendor and other data and we want them to be completely ignored, both in classic and extended classic scenarios.
    How can we accomplish that? Is it possible to use BBP_SOS_BADI or is this BADI only valid for SRM local sources of supply?
    Has anybody had the same problem and solved it before?
    Thanks in advance for your help, regards
    David

    Hi  David
    Inforecord  is only source of supply for classic scenario only.
    Find and Check Sources of Supply
    Use
    With the Business Add-In BBP_SOS_BADI, you can search for and check sources of supply according to your own rules. These sources of supply include contracts, vendor list entries and product linkages. For this, the customer fields of the shopping cart or purchase order are transferred to the BAdI.
    Standard settings
    The BAdI provides the following methods:
    1. BBP_SOS_INDEX_UPDATE_CHECK
    Use: Check and update contract items in the source of supply table.
    2. BBP_SOS_SEARCH
    Use: Search for sources of supply according to your own rules.
    3. BBP_SOS_CHECK
    Use: Check and filter the sources of supply found by the standard search according to your own rules.
    4. BBP_SOS_PD_CHECK
    Use: Carrying out your own additional checks when creating a shopping cart document item with an assigned contract.
    Activities
    Implement the BAdI if you wish to determine or check sources of supply according to your own rules.
    See also
    Implementation
    As prasanna mentioned - do you want disable both sides or only one side .
    Muthu

Maybe you are looking for

  • Prerequsites for deciding Key fields and data fields

    Hi I would like to know the criteria to decide upon KEY fields and Data fields for an infoprovider.

  • IMac (late 2009) CPU runs very slow (about half speed)

    After having had troubles with performance I 've recently discovered, that Geekbench as well as Xbench return results way too low for my machine. In fact it appears results are exactly half the speed one would expect. In Xbench CPU power is about a s

  • How to have a popup in Jsp Dynpage

    Hi All, I am having a JSP dynpage project working fine. I now need a popup on click of a button in a iview (JSP). I created a complete new JSPDynpage component with Bean etc. I use the below code window.open('project.componentname') to have a popup.

  • IPad 1st Generation not finding networks or connecting to bluetooth.

          So, I haven't used my iPad all day and I came home to connect to my wireless speaker via bluetooth and it said it couldn't pair; I thought this was strange because I never have issues with connecting to bluetooth, even if I do it can always be

  • Starting PDF file from Excel 2003 via a hyperlink

    After updating to Reader X I can't open a hyperlink to PDF-files any more which are listed in an Excel-sheet. With Reader 9 it worked all-time. No I get the answer from the Reader, that the document can't be opened. What to do?