Shopping cart - runtime data

Hi All,
We are using ISA on ECC.
How to obtain shopping cart runtime data?
Like how many items are present in the cart, total value, ...
Suppose we are in product catalog page and add an item to the cart, can we get the current shopping cart data?
Thanks and regards
Aarthi

Hello Aarthi,
It is technically possible to always access almost any business object and the related information in any JSP. The UsersessionData object (which is a session context object) is available in all the JSPs. You can get the metaBOM and get any BO from the BOM. See order.jsp for some sample code to get SalesDocumentHeader from usersession --> BOM --> Order BO (Sales document) --> to header.
You must include appropriate import statements in your JSP. The list below is just an example. Figure out what else you may need.
<%@ page import="com.sapmarkets.isa.businessobject.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.item.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.order.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.header.*" %>
The scriptlet below will give you an idea what needs to be done.
<%
BusinessObjectManager bom =
  (BusinessObjectManager) userSessionData.getBOM
  (BusinessObjectManager.ISACORE_BOM);
salesDoc = bom.getBasket();
HeaderSalesDocument  header = salesDoc.getHeader();
ItemList items = salesDoc.getItems();
%>
From the size of the items you can determine the actual number of items in the cart.
If you want to know about the Minibasket and how it gets displayed and gets the values (in B2B), see my replies in this
Re: item number display in header.jsp
Easwar Ram
http://www.parxlns.com

Similar Messages

  • Whether Shopping cart delivery date can be in past date!!

    Hello SRM Gurus,
    There is a requirement from my customer, it may be strange.
    The requirement is : Shopping cart (requestor) should be abe to save having delivery date as a past date  and  PO in SRM with same past date.
    Is there any BADI available or programming is required?
    Pls post your sugesstions.
    Regards
    Madhan

    i think you can do this config . 584 message ready made available for you as E . now you can turn to W
    and do lot of testing for entire procurement cycle.
    .. it may give some trouble approval time too. check it up
    IMG activity 'Influence Message Control' (Enterprise Buyer -> Cross-Application Basic Settings -> Message Control):
    Select the line with business object BUS2121 and double-clicking on 'Message Control'.
                        Message cl:   BBP_PD
                        No. :          584
                        Text:         W
    Save the new entry.

  • Shopping Cart Delivery Date (Required on) calender is blank

    Hi Guru,
    I have a problem when creating shopping cart by describing requirement.
    Txn.BBPSC02
    Shop >Describe requirement >
    Fill the description,Quantity,UoM,Price,Currency,Product Category.
    Now I need to select the date (system date is default) so I am clicking on the calendar to choose the date.
    But the pop up window (calendar) is showing blank and I couldn't select any date.
    Can any one help me how to fix the calendar . Any input appreciated.
    Thanks in Advance.
    Pradeep

    Does this only happen for one specific user or one specific transaction ?
    You could  set a BP at FM: DD_SHLP_GET_HELPMETHOD to check.
    PG:LSDSDU04
    perform get_interface_syst_values changing shlp.
    CALL FUNCTION 'DD_SHLP_GET_DIALOG_INFO'
          CHANGING
             shlp    = shlp.
    In our system shlp has value:
    SHLPNAME     C     30      CALENDAR
    SHLPTYPE     C     2      CA
    shlp-INTERFACE
    SHLPFIELD     C     30      _DATE
    VALTABNAME     C     30      BBPS_SC_APP_ITEM
    VALFIELD     C     132      DELIV_DATE
    VALUE     C     132                                                                               
    INTERNAL     C     1                                                                               
    DISPFIELD     C     1                                                                               
    F4FIELD     C     1      X
    shlp-FIELDPROP[1]
    FIELDNAME     C     30      _DATE
    SHLPINPUT     C     1      X
    SHLPOUTPUT     C     1      X
    SHLPSELPOS     N     2      00
    SHLPLISPOS     N     2      00
    SHLPSELDIS     C     1                                                                               
    DEFAULTVAL     C     21                                                                               
    Regards
    Lauren

  • Why shopping cart created date is save with difference in hours?

    I created a shopping cart at 04.09.2008 12:14.
    But when I execute the FM BBP_PD_SC_GETDETAIL to obtain the detail data, I see in E_HEADER-CREATED_AT field the datetime 04.09.2008 17:14:36 and E_HEADER-TZONE field = "CST".
    The time zone is correct (CST is the system's time zone), but the datetime should be saved with 04.09.2008 12:14:36
    Can somebody tell me how to synchronize this datetime? Or why the system is saving the datetime with 5 hours of difference?
    Edited by: Juan Alonso Valenzuela Rodríguez on Sep 4, 2008 7:46 PM
    Edited by: Juan Alonso Valenzuela Rodríguez on Sep 4, 2008 8:53 PM

    Hi
    Hope that you would have checked this settings.becareful here if you made any changes it may reflect all the clients too.
    General Settings>Time zones>Maintain System Settingscheck with Basis consultants and cross check for your country in SC. There could be impact depends upon the country settings in spro done by fico people.
    regards
    Muthu

  • Can I sort my Shopping Cart by Date Added?

    I have quite a few songs in my shopping cart and I want to sort them all by the Date I added them to the shopping cart. Currently I can sort by name, price, album, artist, etc... all standard... but I can't see how to add a Date Added sort to the Shopping Cart itself.

    Sorry, but you can't.
    Note that it's not a good idea to use your Shopping Cart for long-term "wish list" storage. There is to strong a possibility that a change to or removal of an item will corrupt your Cart. If you want a "wish list", create a normal playlist and drag the tracks you want to remember into it from the iTunes Store. That will save them for future purchase. Don't leave anything in your Shopping Cart unpurchased for more than a day or two at most.

  • Re-calculation of Shopping cart delivery date.

    Hi,
    I have a requirement wherein , i have to do some calcutaions on the delivery date of the shoppinng Cart based on the approvals.
    we are currently on SRM 5.0.
    The scenario is ,When a shopping cart is created a Delivery date is determined for the same. If an approval takes 2 days later, 2 more days should be added to the delivery date.
    Please let me know whether there is a BADI through which this can be implemented.
    Thanks & Regards
    Thamilselvan

    Hello,
    DOC_CHANGE_BADI will be triggered while creating the shopping cart.
    During its approval, you cannot change the delivery date according the date that approver is approving the cart.
    You could implement something like this in your CHANGE_BADI to change the delivery date while creating the cart:
    *item data
    loop at it_item into ls_item_import.
    ls_item_import-deliv_date = sy-datum + 2.
    move-corresponding ls_item_import to ls_item.
    append ls_item to lt_item.
    endloop.
    Then, you can change message BBP_PD 584 to warning via message control.
    Kind regards,
    Ricardo

  • Delivery date in shopping cart

    While creating a shopping cart, delivery date displayed is the current
    date.It is not taking into consideration the planned delivery time
    maintained in the material master in backend R/3

    Hi
    Which SRM version are you using ?
    <u>Yes it is default standard SRM behaviour.. It is correct..</u>
    <b>Incase you want to make changes to the delivery date, then using BBP_DOC_CHANGE_BADI, this can be easily done.</b>
    P.S.: Please read the standard SAP documentation of this BADI using SE18 Transaction.
    Hope this will help.
    Do let em know.
    Regards
    - Atul

  • Adding new field in Monitor Shopping Cart

    Helll All,
    I have a requirement where I need to add a new field in the Search Criteria screen for Monitor Shopping Cart (item data).
    The new field needs to have a property so as to be able to add more than 1 value for it. It is just like Purchasing Group criteria present in the standard Shopping Cart Monitor screen.
    I have the structure BBPS_MON_SC_ITEM where there is a field PURCHASE_GROUP, which is like a range. I need to add one more field here with the same range structure so as to get values of my new screen field into it.
    Coming to my question........In which structure should I append this new field so as to get it in BBPS_MON_SC_ITEM? I have read the note 672960 and tried appending for Table Type fields but no success.
    I am working in SRM Version 5.
    Kindly help.
    Thank you.
    Johnson
    Message was edited by:
            Johnson Ittyerah

    Hi
    <u>See related links -></u>
    Re: Adding CUF fields in Monitor Shopping Cart Selection Screen
    Re: Error while viewing the SC via BBP_MON_SC
    Adding fields in shopping cart
    Do let me know.
    Regards
    - Atul

  • Vendor part number for non catalog item in shopping cart?

    I have a requirement to get the vendor part number field in shopping cart basic data for non catalog item. This field is available for catalog items, would it be possible to make the same field available for non catalog items as well?

    Hi Gummadi,
    You can create custom fields in Shopping cart uisng a BADI and can populate the information.
    BBP_CUF_BADI can be used to create customer fields.
    Please get discuss with your ABAP fellow for the creation of customer field.
    Award points for helpful answers.
    Rgds,
    Teja

  • Default frame in shopping cart

    Hi All,
    i am working an issue which is in shopping cart screen default frame.
    after logon into shopping cart screen, you can see 'EXTENDED DETAILS' button. once you click 'EXTENDED DETAILS' button that will change as 'Simplify button' along with some more fields add into shopping cart screen( say for example custom fields).
    my requirement is when ever user log on and clicked shopping cart create button. the shopping cart screen should display 'EXTENDED DETAILS' view which contains the custom fields instead of 'Simplify details' view.
    Is there any way to do that,plz help me out.
    regards,
    sobhan

    Hi
    Which SRM Version are you using ?
    <u>As soon as you add customer fields (Refer SAP OSS Notes 672960 and 485891) to the Shopping cart (say at Item Level ) these fields are displayed in the the Basic data section (Item level) as well as the Search Criteria (in Extended search) functionality automatically.</u>
    As per your business requirement, when ever user log on and clicked shopping cart create button, then the shopping cart screen should display 'EXTENDED DETAILS' view which contains the custom fields instead of 'Simplify details' view.
    <b>This is Standard SAP functionality. These changes are not possible until we do modification to the HTML Templates in the Internet Service (BBPSC01) using SE80 Transaction.</b>  
    I have not tried the same, but i don't think it possible (or might be - not sure), as there is a maximum limit of displaying fields in the Shopping cart Basic Data / Search functionality section.
    You must have noticed as soon as the number of fields displayed on the Shopping cart exceeds (say more than 10 fields - including Standard and custom fields), there is automatically a  button feature ">>" / "<<" gets enabled to either go forward to the next page or come back from to the previous page for display of fields. <u>Therefore, as per my view, you can change the text lable of the 'EXTENDED DETAILS'  button / 'Simplify details'  button, but this might not help. Moreover, this might cause side-affects to the existing Shopping cart functionality. So be very sure, before making changes to the respective HTML Templates involved in this case.</u>
    Incase this does not help / need more details, please raise a Customer OSS message with SAP to get precise details before making Template changes.
    Do let me know. Hope this will help.
    Regards
    - Atul

  • Shopping Cart Search issue for Custom field

    Hi,
    I added one custom field into Shopping cart basic data tab. And it is also displaying in extended search place.
    When i am trying to search the shopping cart using custom field i am not getting any result. But if i gave any Time Frame then it's picking up.
    What is the reason it's not picking up without any condition.
    I Appreciate any one share yours idea.
    Thanks,
    Senthil

    Hi SRM Experts,
    Please let me know any suggestion on this issue.
    Thanks a lot in advance.
    Thanks,
    Koyya

  • Shopping Cart Extended View Button...

    Hi All,
         i am working an issue which is in shopping cart screen default frame.
       <b>after logon into shopping cart screen, you can see 'EXTENDED DETAILS' button. once you click 'EXTENDED DETAILS' button that will change as 'Simplify button' along with some more fields add into shopping cart screen( say for example custom fields).
       my requirement is when ever user log on and clicked shopping cart create button. the shopping cart screen should display as 'Simplify button' along with all fields ( say for example custom fields) instead of click 'EXTENDED DETAILS' button and see all the custom fields.</b>
    give me some suggestion to figure out this issue and is there any OSS notes avaliable.
    thanks,
    Saran.

    Hi
    Which SRM Version are you using ?
    <u>As soon as you add customer fields (Refer SAP OSS Notes 672960 and 485891) to the Shopping cart (say at Item Level ) these fields are displayed in the the Basic data section (Item level) as well as the Search Criteria (in Extended search) functionality automatically.</u>
    As per your business requirement, when ever user log on and clicked shopping cart create button, then the shopping cart screen should display 'EXTENDED DETAILS' view which contains the custom fields instead of 'Simplify details' view.
    <b>This is Standard SAP functionality. These changes are not possible until we do modification to the HTML Templates in the Internet Service (BBPSC01) using SE80 Transaction.</b>  
    I have not tried the same, but i don't think it possible (or might be - not sure), as there is a maximum limit of displaying fields in the Shopping cart Basic Data / Search functionality section.
    You must have noticed as soon as the number of fields displayed on the Shopping cart exceeds (say more than 10 fields - including Standard and custom fields), there is automatically a  button feature ">>" / "<<" gets enabled to either go forward to the next page or come back from to the previous page for display of fields. <u>Therefore, as per my view, you can change the text lable of the 'EXTENDED DETAILS'  button / 'Simplify details'  button, but this might not help. Moreover, this might cause side-affects to the existing Shopping cart functionality. So be very sure, before making changes to the respective HTML Templates involved in this case.</u>
    Incase this does not help / need more details, please raise a Customer OSS message with SAP to get precise details before making Template changes.
    Do let me know. Hope this will help.
    Regards
    - Atul

  • Display other shopping carts without change/delete possibility?

    Hi,
    We are using SRM 5.0 and some users needs to display shopping carts created by other, without given the access to change and delete those shopping cart (should still be able to change/delete one's own shopping carts).
    Anyone who has a solution on how to give users this authorization? Monitor Shopping Cart transaction displays all shopping cart, but the delete function is active.
    Thank you.
    Christina C-W

    Hi Christina,
    If i understand your requirement correctly, it is as follows;
    1.) User shall be able to change/delete their own shopping cart.
    2.) The same select user shall be able to view other shopping carts but will not be allowed to change/delete a shopping cart.
    <b>Solution:
    1.) User shall be able to change/delete their own shopping cart.</b>
    Analysis: The use can still continue to use the "Check Status" Transaction to change/deletre their own shopping carts.
    <b>2.) The same select user shall be able to view other shopping carts but will not be allowed to change/delete a shopping cart.</b>
    Analysis: Build a Custom Z role that will have access to the BBP_MON_SC (Monitor Shopping Cart Transaction). Use the BADI BBP_MON_SC and use the method, especially the one highlighted in bold below:
    BEFORE_SELECTION_SCREEN
    This method is carried out before the selection screen is displayed.
    Default values for the selection screen can be set in the following structures:
    CS_HEADER
    General Data
    CS_ITEM
    Item Data
    Furthermore, you can define the functions available in the list or define whether icons are active or inactive:
    CS_HEADER-AUTH_TRANSFER
    Transfer Shopping Cart to Backend
    CS_HEADER-AUTH_GET_STATUS:
    Update Shopping Cart with Data from Backend
    CS_HEADER-AUTH_ALERTS:
    Display Error Messages from Monitor Shopping Cart
    CS_HEADER-AUTH_SC_DISPLAY:
    Display Shopping Cart Overview or Items
    <b>CS_HEADER-AUTH_SC_CHANGE
    Delete Shopping Cart/Shopping Cart Item, Change Erroneous SC Item</b>
    Also, in the BADI, you need to make it specific to the Z-role that you had created, so that your standard monitor shopping cart transactions work for other standard or custom role in your organization.
    Hope this info helps !!
    Pls assign points for usefull answers !
    Sundeep
    null

  • Shopping cart Approval details

    Hi Experts,
    Could anyone tell me the table in which shopping cart aproval date and time is stored?
    Thanks.
    Regards,
    B.Siddhesh

    Hello,
    Approval date and time for an single approval task (usually TS10008126) can be found in table SWWLOGHIST for method SWW_WI_STATUS_TO_COMPLETED.
    This table store time execution of task method.
    You can access this table with workitem id.
    If you are looking for global approval time for a shopping card, you can found it by looking for the task TS10007991 (BUS2121-SetReleased) in the same table.
    Regards.
    Michel Tallon

  • Calendar help for Date i/p field in SRM 5.0 shopping cart

    Hi All,
    I am working on SRM 5.0..I have a requirement for the addition of custom field ie. lease termination date field on SRM shopping cart screen and having a calendar help for this date input field.
    Has anyone tried to add calendar help for an input date field in the ITS service??What all additions have to be done for this(style,images etc)...Does any one has any idea?Please help.
    Thanks & Regards,
    K rav.

    Disha can you please send me these images.
    IMAGES/CALENDAR/ICO12_CALENDAR.GIF
    IMAGES/CALENDAR/LEFT1.GIF
    IMAGES/CALENDAR/LEFT2.GIF
    IMAGES/CALENDAR/RIGHT1.GIF
    IMAGES/CALENDAR/RIGHT2.GIF
    my email id: [email protected]
    and should i store these images in mime repository? Also I have the below code to be attached in template for calendar function give by Zakhar..do you know where exactly in the template do you insert this code? and do you insert it in the standard template itself. My field will appear in shopping cart line item level (CUF field) so what will be the template number??
    <input type=text
              id="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
              name="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
              value="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.value`"
              onBlur="BBP_ITS_EXTW_CloseCalendar()" maxlength="10" size="10">
         <a id="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE" name="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE"
             href="javascript:BBP_ITS_EXTW_OpenCalendarDomRel(window.document.BBPForm.elements['`<b>zappsspr_incl_item_csf_avl-zzspr_dkk_date.name</b>`'], 'a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE')">
      <img src="/sap/public/bc/its/mimes/bbpglobal/99/images/calendar/ico12_calendar.gif" border="0"></a>
    Thanks,
    Krupa

Maybe you are looking for

  • How to find out who is using the shared library?

    Is there a way to find out who is listening to my music on my shared library and what they are listening to?

  • XML failing with Rosettanet DTD

    Hi, We are using a PIP5D5 xml message for an interface. This message is structurally defined as per the DTD provided in the Rosettanet standards. But for some segments where multiples are allowed, we are trying to use an attribute to distinguish each

  • BPM - Optional Multiple Send steps

    I have a situation where I'm doing Message Splits in BPM and subsequently Send steps. Due to MessageSplit I may  or may not produce Target messages. But Send Steps following the transformation are errored out saying no Instance found ( No message fou

  • Making all Infotype 0033 fields available in an infoset

    Hi. I have an infoset using the logical database PNPCE and I just added infotype 0033 in the Further Infotypes option. The infotype is now displayed but not all the fields I need. I need fields AUS16, AUS17, AUS18, AUS19 and AUS20 to be both Selectio

  • Web Service model creation : no error, but no model created

    Hi all, I would like to create a Web Service service model : Models-> Create Model -> Import Web Service model -> Local File System or URL I am using a local WSDL file. My NWDS version is 7.0.6. Everything seems to be OK, I don't get any error, but u