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

Similar Messages

  • Tables to link Shopping Cart to Workflow

    I have a request to report on total dollars for shoppng carts that are sent to a particular inbox and total dollars for shopping carts that were rejected in that inbox.  I've written dozens of Quickviewer queries to report on shopping cart data however I've never linked the shopping cart to workflow items.
    Can this be done without writing an ABAP program to extract the workflow data?

    Hi Nancy,
    You may want to form joins between the following Shopping cart tables and workflow tables.
    Shopping cart tables
    CRMD_ORDERADM_H
    CRMD_ORDERADM_I
    Workflow tables
    SWWWIHEAD
    SWW_CONTOB (The field Object key in this table will have shopping cart number)
    SWWUSERWI
    SWW_CONT(Workflow container table which will store whether workitem is approved or rejected)
    Hope this helps.
    Please reward points if hint is foud useful.
    Thanks
    Venkat

  • 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?

  • Grouping of Shopping Carts using the report  BBP_SC_TRANSFER_GROUPED

    Hi Experts,
    I am a new SRM consultant and have been asked to investigate an issue regarding grouping of Shopping Carts using the report  BBP_SC_TRANSFER_GROUPED.
    The wanted scenario:
    For one specific vendor we wish to pool/group request coming from various shopping carts into one PO e.g. once a day. The shopping carts for that vendor can be destinguished by one specific product category.
    We are on classic scenario hence the PO will be created in our ECC system.                                                                               
    Settings we have done to accomplish what we want:
    1. We have set up the transfer for grouping on the specific product category in the sourcing area in the IMG structure
    2. We have run the report BBP_SC_TRANSFER_GROUPED (grouping takes place according to the product category)
    This approach works, the shopping carts gets grouped into one PO in ECC. however the line items from the Shopping Carts are mixed in the PO eg SC1: Item A, Item B, Item C, Item D SC2: Item 1, Item 2, Item 3, Item 4 PO (Current result) Item A, Item 1, Item B, Item 2, Item C, Item 3, Item D, Item 4.
    This seems quite strange, as there are no logic reason for this split. It would be understandable if it was a matter of delivery dates of the goods, but they are not in any order i.e. first coming delivery date first.
    Does anyone know how to correct this or can anyone clarify why this sequence mix happens?
    For me it seems like a program errror.
    Hope you can help me solve this issues
    Cheers Christian
    Edited by: Christian Gjellerup on Aug 6, 2010 3:34 PM
    Edited by: Christian Gjellerup on Aug 6, 2010 3:35 PM

    Hi,
    In SRM -Product categories = Purchasing group in SAP R/3.
    During the transfer of P.R   from R/3 you have enter the Purchasing group in R/3.
    In SRM in the PPOMA_BBP in the extended attribute you can enter the exact product categories
    or else enter * in the product categoies and the backend logical system
    in SPRO --define objects in backend system --- in this enter the purchasing group and category Id
    check your default settings in the SRM web browser
    Regards
    G.Ganesh Kumar

  • Need Help Badly on Shopping Cart Using JSP And Java Servlet

    Hi All,
    This is the 1st time i am trying to create a shopping cart using JSP and Servlet.
    I have read through a few acticles but i still do not get the whole idea of how it works.
    Please guide me as i need help very badly.
    Thanks.
    This is one of the jsp page which displays the category of products user would like to buy : Products.jsp
    <html>
    <head>
    <title>Purchase Order</title>
    </head>
    <body topmargin="30">
    <table border="0" width="100%" id="table1" cellpadding="2">
         <tr>
              <td bgcolor="#990000" width="96">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Code</font></b></td>
              <td bgcolor="#990000" width="260">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Description </font></b></td>
              <td bgcolor="#990000" width="130">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Brand
              </font></b></td>
              <td bgcolor="#990000" width="146">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">UOM
              </font></b></td>
              <td bgcolor="#990000" width="57">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Unit<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="62">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Carton<br>
              Price </font></b></td>
              <td bgcolor="#990000" width="36">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">
              Qty</font></b></td>
              <td bgcolor="#990000" width="65">
              <p align="center"><b><font face="Verdana" size="2" color="#FFFFFF">Add<br>
              To Cart</font></b></td>
         </tr>
    <tr>
    <td align="center" width="96" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">123</font>
    </td>
    <td align="center" width="260" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Tom Yam</font>
    </td>
    <td align="center" width="130" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nissin</font>
    </td>
    <td align="center" width="146" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">12 x 10's</font>
    </td>
    <td align="center" width="57" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$3.85</font>
    </td>
    <td align="center" width="62" bgcolor="#CCCCCC">
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">$46.2</font>
    </td>
    <td align="center" width="36" bgcolor="#CCCCCC">
    <!--webbot bot="Validation" S-Data-Type="Integer" S-Number-Separators="x" -->
    <p align="center"><input type="Integer" name="Q10005" size="1"></p>
    </td>
    <td align="center" width="65" bgcolor="#CCCCCC">
    <p><input type="checkbox" name="checkbox" value="123"></p>
    </tr>
    <tr>
    </table>
    <table border="0" width="100%" id="table2">
         <tr>
              <td>
              <div align="right">          
                   <input type="hidden" name="hAction" value="AddToCart"/> 
              <input type=submit name="submit" value="Add To Cart"/>                     
    </div>
    </td>
         </tr>
    </table>
    </body>
    </html>
    After user has make his selection by entering the qty and ticking on the check box, he would click the "Add To Cart" button ... and this would call my servlet : AddToAddControlSerlvet.java
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.util.*;
    import java.util.ArrayList;
    public class AddToCartControlServlet extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException
              String action = req.getParameter("hAction");
              if (action.equals("AddToCart"))
                   addToCart(req,res);
         public void addToCart(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              try
                   String url = "";
                   String[] addList = req.getParameterValues("checkbox");
                   HttpSession sess = req.getSession(true);
                   //String sessionID = sess.getId();
                   DBClass dbClass = new DBClass();
                   ArrayList cartList = new ArrayList();
                   for (int i = 0; i < addList.length; i++)
                        String productCode = (String)addList;
                        int qty = Integer.parseInt(req.getParameter("Q"+productCode));
                        Products product = dbClass.getProductDetail(productCode);
                        double totalUnitAmt = qty * product.getUnitPrice();
                        double totalCartonAmt = qty * product.getCartonPrice();
                        Order order = new Order(product.getProductCode(),product.getProductDesc(),product.getBrandName(),product.getUom(),qty,product.getUnitPrice(),product.getCartonPrice(),totalUnitAmt,totalCartonAmt);
                        cartList.add(order);
                   sess.setAttribute("cartList", cartList);
                   url = "/Cart/CartDetails.jsp";
                   ServletContext sc = getServletContext();
                   RequestDispatcher rd = sc.getRequestDispatcher(url);
                   rd.forward(req, res);
              catch (Exception e)
                   System.out.println(e);
    From here, i would get the list of items which user has selected and add to the cartList, then i would direct the user to CartDetails.jsp which displayed the items user has selected.
    From there, user would be able to remove or to continue shopping by selecting other category.
    How i do store all the items user has selected ... everytime he would wan to view his cart ...
    As i would be calling from jsp to servlet .. or jsp to servlet ... and i do not know how i should go about in creating the shopping cart.

    Hi !
    Yon can use a data structure as vector and store the items selected by the user into the vector . Keep the vector in session using session object , so the user can access the entire shopping cart from anywhere in the application .
    Then , you can change the cart accordingly .
    Hope this works.
    Cheers ,
    Pranav

  • Determine approvers based on lineitem in Shopping Cart Approval Workflow

    Hi All,
    We have N-step Approval workflow for Approving the Shopping cart implemented.
    The issue here is that based on the Product Category for a line item the list of approvals may differ.
    How can i handle this scenario ?
    Regards,
    Radhika.

    Hello Priyanka,
    While using N-step item level SC WF, you have to use BBP_WFL_APPROV_BADI for agent determination. This badi gets called everytime when shopper changes SC or approver takes action on it. So after every change done to SC, approvers are determined.
    Follow the listed steps:
    1) As per your logic, for each item first determine the approvers at each level & assign them approval index. Arrange them in ascending order of their approval index at item level.
    2) Now its possible that you have multiple approvers, multiple item at each level. For sending SC for approval, you will have to generate Approval_object_guid for each approver.  For this you have to find out a criteria for generating Approval guid.
    Eg:
    SC has 3 items then, if for any 2 items product category is similar then approvers will be similar at a particular level. Similarly for different Product Category, different approvers are determined. So you can consider 'Product Category' & 'Approval index' as a criteria to club approvers at each level.
    3) Use function module ''BBP_WFL_DIN_APP_OBJ_GET' to generate approval guid based on criteria & to update badi parameter 'item_approval_obj'.
    4) Update badi parameters 'Approval_table' and 'Item_approval_table'.
    5) Once SC is approved by all, set 'no_further_approval_needed' flag.
    Please let me know if you need any further help.
    Thanks,
    Shital

  • Problems in shopping cart approval workflows

    Hello friends,
    We are using standard shappong cart approval workflows ( WS14000129 and WS14000060). I have configured all the steps mentioned in documents but workflows are not working while creating saving shopping carts.
    I have tried testing above workflows from background and they work properly from there, which means nothing wrong with basic workflow settings. But when I try save a cart from portal, workflow does get triggered but stops at very first step ( i.e. Parralel section between approval) in workflow. Also it does NOT get errored out but just waiting.
    Can anyone please help me in understanding what is wrong and how I can fix it.
    Regards,
    Arpit

    Here are some screenshots of what is happening
    http://img306.imageshack.us/img306/245/scerror1np5.jpg
    http://img101.imageshack.us/img101/1065/scerror2lx9.jpg
    Here is the binding
    http://img101.imageshack.us/img101/2289/scerror3wo1.jpg

  • How to attach files while Creating shopping cart using FM- BBP_PD_SC_CREATE

    Hi
    I am trying to create shopping cart from R/3 system using RFC calls to FM's BBP_PD_SC_CREATE, BBP_PD_SC_SAVE & BBP_PD_SC_COMMIT.
    Also I have to attach files as we do in Standard SAP shopping cart creation process..
    But I see a parameter IT_ATTACH to pass the attachments in the FM - BBP_PD_SC_CREATE..Is that the right one to use? If yes, can you suggest the values to be passed in the same if you have done this before..
    Thanks
    Geetha
    Edited by: GEETHA VASUDEVAN on Apr 20, 2009 6:17 PM

    Hi
    I am trying to create shopping cart from R/3 system using RFC calls to FM's BBP_PD_SC_CREATE, BBP_PD_SC_SAVE & BBP_PD_SC_COMMIT.
    Also I have to attach files as we do in Standard SAP shopping cart creation process..
    But I see a parameter IT_ATTACH to pass the attachments in the FM - BBP_PD_SC_CREATE..Is that the right one to use? If yes, can you suggest the values to be passed in the same if you have done this before..
    Thanks
    Geetha
    Edited by: GEETHA VASUDEVAN on Apr 20, 2009 6:17 PM

  • How to change Vendor text  in shopping cart using BADI/Function module

    Hi
    If any could help me out that i want to change vendor text using BADI/FMs.
    Using  BADI" bbp_catalog_transfer"   i dint find any parameter for vendor text. please let me know if there any idea to resolve the problem

    Hi,
    you should find the vendor text within the BAdi
    BBP_DOC_CHANGE
    Method for shopping carts
    BBP_SC_CHANGE
    Here you could use the Changing Parameter
    CT_LONGTEXT
    The table contains 2 important fields:
    TDID, where you can identify the type of text, in your case this should be ITXT for standard shopping carts (vendor text within positions)
    TDLINE: which contains the text
    You are now able to change the vendor text directly within this BAdi with standard ABAP methods.
    Best regards
    Andreas

  • Error in Shopping cart Approval workflow

    Hi Workflow experts,
    We are on SRM 5.0 with Extended classic scenario.
    I have activated & set the start conditions for No Approval workflow.
    The workflow for shopping carts end up in Error status.
    Message "Error changing to status RELS". upon further dwelling, the message "Work item XXXXX: Object XXXXXXX method SETRELEASED cannot be executed" is displayed. How can i check the Binding between the Task container & the Method Container.
    I have no red flags in SWUD for WS10000060. I have checked the automatic customisation of workflow & every thing looks good. The workflow back ground jobs are running.
    What could be the problem?
    Your inputs in this regards are appreciated & will be rewarded!!
    Cheers,
    Akash

    Hi
    hopefully this link and the OSS note  1233774 should help
    "method SETRELEASED cannot be executed" for SC work item
    thanks

  • Creating limit shopping cart using catalogs in SRM

    Hi,
    Can we create "limit shopping carts" in srm using catalogs or we can only use it for free text items? how do we integrate catalogs for use in "create limit item"? is it standard or required any customization? please explain.
    Thanks
    Deepu

    Hi. What you could try is using BBP_DOC_CHANGE_BADI.
    When SY-UCOMM = 'ADDI' that is when items are being added to the cart from a catalogue, presuming you have configured ADDI in your catalogue call structure.
    Then, you can try and change the item category to LIMI and see what happens.
    If that does not work (and I don't think it will be that easy) then you can create a limit item manually and debug the DOC_CHANGE BADI to look at all the item values to see what else might need assing in there.
    It might work, I have done some serious manipulation of items using this BADI.
    Regards,
    Dave.

  • Tables Shopping Cart and Workflow

    Hello,
    I need to report about the delay of approval in Shopping carts.
    In the transaction BBP_PD I can see the data I need in "Work item WF" - node ID.  ("created at" - "finished at")
    In which table is this information stored?
    Thanks
    Aart

    Hi,
    use BBP_PDH_WFL_WI_FROM_OBJECT_GET with
    iv_object_id = SC ID
    iv_object_type = BUS2121
    you can then use SRM_WAPI_WORKFLOW_GETDETAIL to get WI details.
    related  threads:
    Re: Link SC to Work Item
    Re: SRM tables for Approvals Items
    Re: Approving agents of an item in SC ?
    BR,
    Disha.
    Do reward full points for useful answers.

  • Develop simple shopping cart using ADDT

    Hi, I'm new here.I just wondering if its possible to develop a very simple shopping cart application using ADDT?Anyone have any ideas?
    I'm thinking to develop a very simple shopping cart with no shipping cost,tax details and all that.Just an image,description of the product and price.All the orders with be send to 1 or many emails.No payment gateway needed.That's it.And of course got basic common shopping cart features like 'Add to cart','Remove item',session, that's all.Any ideas guys?
    Thanks

    Duh, I figured it out.
    <cfset bar = arraydeleteat(SESSION.shoppingcart, i)>
    I am having a problem when looping not sure why. I think
    because I'm deleting an item in the array it tries to loop to that
    index in the array. It will say "The element at position 3 cannot
    be found". I guess I normally wouldn't have to delete multiple
    positions in the array with a normal shopping cart unless they
    selected two different id's. I'll work on a more advanced shopping
    cart and post again.

  • Checking Contents of Shopping Cart using Liquid

    Using Liquid is it possible to check what items are in the shopping cart? If so can someone point me in the right direction?
    Basically what I am looking to achieve is when a page loads check to see if certain items are in the shopping cart. If they are in the shopping cart I do something otherwise I do something else. If I can check quantities, even better.
    I am still working to grasp everything liquid. =>

    Hi Lynda,
    Take a look at this guide - Reference guide - e-Commerce related - it also supports the "on-the-fly" cart update Robert mentioned.
    Let me know how this works.
    Thanks,
    Mihai
    PS: On the cart.html page you can insert
    <pre>{{cart | json}}</pre>
    to see what other cart properties you can access (like the individual products and so on).
    At the moment though there are few fields that are "numeric", so this means that you can't apply mathematical operations to most of them. This will be fixed in the future, see Bug: Liquid math filters don't work with module data

  • Shopping Cart using Coldfusion

    Hi, I am relatively new to Coldfusion and I am wondering how to create a shopping cart for a website using coldfusion. Thanks

    This is probably going to come across to you as unnecessarily snarky, but your request is analogous to "I am relatively new to architecture and engineering and I am wondering how to create a skyscraper". The short, glib answer is that you have to learn architecture and engineering first.
    You will need to learn the basics of the language, and you'll have to learn how to track and persist user-specific values using something like the Session or Client scopes. You will need to learn how to store user-specific and non-user-specific values within a relational database, and fetch them as needed.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

Maybe you are looking for