How to restrict the total order size to 10 in atg CRS store

Hi,
i want to restrict customer from selecting orders not more than 10 either the same product or different one. i got the solution for same product but the problem is when i am trying to restrict the customer from selecting items more than 10 by changing some code in StoreCartFormHandler.java . i cant able to get that....... and i'll also explain what are all the changes which i have made in that like putting condition for overallQuantity attribute it was not effecting the code. can anybody please tell me what else i've to do...

Thanks for the reply,
Mr.Rsharma and karthik you both said that orderHolder oh=getcurrent(); but that getcurrent() method was not there in that. when i am trying to write that it was showing getCurrentTransaction(). and also i want to know from you guys that i need to make changes to preaddItemsToOrder() or addItemsToOrder(). i am editing the preaddItemsToOrder() And as i am new to ATG i dont clearly know what are all the methods like OrderHolder or commerceItems.and i want to restrict the user from selecting items of same type or different type that overallitems should not exceed 10.
i am pasting my code over here.which i have written from your references.
OrderHolder shoppingCart = (OrderHolder) this.resolveName(SHOPPING_CART, false);
     Order order = shoppingCart.getCurrent();
     List info=order.getCommerceItems();
     if(info!=null)
     for(Object ob:info){
               Nquantity +=getQuantity(((CommerceItem)ob).getId(), pRequest, pResponse);
     System.out.println("the new quantity is"+Nquantity);
sorry if i am not clear.
Edited by: Ravikishore on Nov 28, 2012 4:46 AM
Edited by: Ravikishore on Nov 28, 2012 4:50 AM

Similar Messages

  • How to restrict the upload file size in me21n/me22n/me23n?

    Hi Guru's,
    I have a requirement to restrict the user from attaching a local file more than 20MB in Purchase Order.
    In standard SAP system, the user can attach a file of any size in PO. How to restrict the size of the file?
    I have no clue how to achieve this? Any kind of help would be great...
    Thanks in Advance...
    Regards,
    Satyam

    Hi Guru's,
    The file size is now restricted in function GUI_UPLOAD. But this function module is used at many places. I want to restrict it only for Tcode: ME22n and ME23n.
    I thought of restricting it by sy-tcode field but sy-tcode value  is not passed to this function module in the run time.
    Could anyone help me on this how to restrict it for the above mentioned tcodes??
    Regards,
    Satyam

  • How to restrict the columns order movement at runtime in 7.3

    Hi Experts
    We are using EP7.3 Portal.
    We have modified the  Cats table in a customized ESS Cats DC . We have added a another table
    say subTotals table (This table does not have header) to calculate the hours as per business requiremnt just below the cats table with proper allignment.
    Now at run time i.e when launched through Iview in the portal, the user can able to
    personalize the columns order of Cats Table (Moving columns from one place to other) by Right click on the
    table>User settings->other-->Re Arrange the columns
    We have 2 tables so moving the first table column order will effect the second table which displays the totals (This is readonly)
    Our requirement is we should not allow the user to change the column order at run time (At least we need to restrict 8 columns outof 13 to 14 columns)
    How can we restrict the columns order through code i.e by controlling the property if any
    Regards
    KALYAN

    nwa->configuration management->infrastructure  --->application modules
    filter the name column with "tcwddispwda"
    select the entry(should be only one after filter)
    select the "web dynpro properties" tab
    select the "default" in the table
    AllowUserPersonalization----->false

  • How to Calculate the total orders for Items with supplier

    How do I write a function or SQL query that will give me the total quantity of an item that an organization has on order with other suppliers? Any help would be greatly appreciated. Thank you.

    It would help if you provided the description of the tables.
    To do totals by say item_id
    select item_id, sum(quantity)
          from supply_table A
          where org_id = 1
               and exists (select 1 from supplier B
                                         where a.org_id = b.org_id )
    group by item_id
    How do I write a function or SQL query that will give me the total quantity of an item that an organization has on order with other suppliers? Any help would be greatly appreciated. Thank you.

  • Performance Issue-;How to restrict the total output of the report.

    Hi Experts
    I need your advise to resolve one performance issue in my BI Publisher report.
    My report query is extracting more than 80000 records at once. To load these records into the report template it is taking all most 14 to 15 hours. Unfortunately i cannot change my logic to put some more filter to restrict the query output, as this is the requirement from the client.
    Is there any way i can restrict my report so that it will extract the first 1000 record and on the event of pressing next it will extract the next 1000 record and so on from the point when it left in last time.
    Kindly let me know if you have any solution for this.
    Thanks in advance.
    Regards
    Srikant

    Hi experts...
    Any update on this...

  • How To Get The Total Delivered Quantity of a Sales Order

    Hello All,
    I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
    Regards,
    Pavani.

    Hi
    Check the Table:
    VBEP  - Sales Document: Schedule Line Data.
    Inside the table check the Quantity Fields.
    Regards,
    Sreeram

  • How to restrict the change access in CRM for OLTP orders

    Hi Guru's,
    Please let me know  how to restrict the change access in CRM for the orders that are created in ECC. The ECC orders will only for display in CRM but not for change,
    We have  the orders that are  created in ECC, it will flows to CRM and should restrict the access to get in to the change mode in CRM but as of now CRM  system is allowing change mode for ECC orders and ending up with errors.
    Is there any additional middleware parameter that needs to be added to SMOFPARSFA table to get this functionality! Please advice! Thank your for your help.
    Regards
    Suneel

    Hi.
    You can use the PFCG role to control if the user is able to create, change, delete or only display a business transaction type.
    Regards.

  • How to restrict the GR for Production Order when Goods Issue is not done

    Hi Gurus
    How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
    Pls suggest best solution.
    Abhijit.

    Hi,
    You can club together the GI nad GR at the time of confirmation..
    I.e Backflush for the components and auto GR for the Product.
    So that you can stream line the Process.
    The best Option would be to use the User Exit:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below link for further details..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • How to restrict the size of folder in KM?

    Hi All,
    How to restrict the size of folder in KM?
    Suppose I allocated 1 personal folder to every SAP KM Folder. Can I restrict the size of folder with do not allowed the uploaded file to be exceeded certain capacity?
    Thanks & Regards,
    zhixuen.

    Hi,
    Refer this [http://help.sap.com/saphelp_nw70/helpdata/en/62/468698a8e611d5993600508b6b8b11/content.htm]
    Also chk.
    https://forums.sdn.sap.com/thread.jspa?threadID=80571
    https://forums.sdn.sap.com/thread.jspa?threadID=80326
    https://forums.sdn.sap.com/thread.jspa?threadID=80145
    http://weblogs.sdn.sap.com/pub/wlg/3219
    Regards
    Baby

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • How to restrict the the oreder reason list while creating sales order

    Hi gurus,
    Can anyone suggest me
    how to restrict the Order rerson list
    while creating the sales order in VA01
    Thanks & Regards
    kalyan.

    hi,
    Try this exit:
    Enhancement            MMFAB001     User exit for generation of release order                    
    Thanks,
    AMS

  • How to restrict the entry of same material twice on the order

    HI,
    How to restrict the entry of same material twice on the order before saving the Order ?
    I do not want my users to enter the same material as two different line items in the order.
    Any inputs wud b appreciated

    Hi Vam,
    For this you need to take the help of an ABAPer . Ask him to modify the user exit and add the logic.
    For user exit please go through the below link it will help you to resolve your issue.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Krishna O
    Edited by: Krishna O on Jun 3, 2010 12:29 PM

  • Schedule lines not covering  the total order Quantity

    We have an issue  with Schedule lines
    Order created on  19-02-201
    Material =M
    Requirement type =KSV
    Order Quantity =2500
    Delivered Quantity=1700
    Schedule Lines
    Date               Order quantity       Confirmed Quantity        Delivered  Quantity
    19-02-2010     801                                        0
    19-03-210       500                                        0
    16-04-2010      500                                    500                                       500
    14-05-2010      500                                    0
    15-06-2010     0                                        500                                        500
    15-06-2010      0                                        500                                        500
    18-06-2010      200                                   200                                         200
    Item  Status
               Processing Status
                                         Overall status=Completed
                                         Delivery Status= Fully Delivered
    1)Even though we have not delivered the total Order Quantity 2500,Delivery Staus is Fully Delivered Why?
    2)Why the system not created SCHEDULE LINES for the remaining Order Quantity  2500-1700=800

    Check if there are still requirements existing for this order on MD04.
    You might also want to check how the availabilty is carried out, whats the replinishment lead time - anything mentioned there. Generally if you take RLT into consideration - then the unfulfilled qty is shown at the end of RLT.
    Not too clear at this moment on the dates you have mentioned, bit hard to read.
    Am curious too, why this is happening.

  • How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    The Friend: Thanks from me too for that super simple fix!! I feel kinda stupid for not knowing that.
    Too bad Apple didn't:
    Give it a more intuitive name than "Status Bar"... "status" is what is shown at the top of the window along with the Artist and Song Title, e.g.; how far into the song/podcast/video I've played and how much is left,
    Put the keyboard commands in a more prominent place in their release notes when version 11 came out so we could more easily find the information they decided to hide in this attempt to make the desktop less cluttered and
    Allow us the option of displaying the data size along with the song count and duration just beneath the playllist title. The status bar is a redundant listing of information except for the data size!  Poorly conceived!
    Perhaps Apple will remedy this in a future release. For those of us who like to burn our playlists to CD, DVD and even a thumb drive this information is essential. WIthout it, we're left to guess whether a given playlist will fit on our target device.
    Thank you!

  • How to restrict the department to not user other departments' equipment?

    Dear SAPIENTS,
    How to restrict the department to not user other departments' equipment? If suppose any one creating order for equipment having different authorization group then system should not allow me to do this.
    Regards,
    Kaushal Rai

    Kaushal Rai,
    Use Authorization group for technical objects, create authorization gruops in IMG and assign the same to the Equipment master and block the other department with the same authorization group. For ristricting the authorization group to other departments after creating and assigning it to the equipment seek help from your BASIS team.
    goto the below path for cerating the Authorization group:
    IMG - PMCS - Master data in PMCS - Technical Objects - Define Authorization groups:
    Here you define the authorization groups, after completion of this step go to the Equipment master in General Data tab page there is a feild Authourization Group, mention the respective authorization group and provide this Authorization gruop value to the respective user in the user role with the help of BASIS Team.
    Regards,
    Praveen.

Maybe you are looking for

  • Java doesn't bypass proxy for IPs using (IP-Subnet) combination ??

    Dear All, On Mac OS I am getting the below problem, I didn't tried it on Windows may be this problem may not occur there. Problem:--- On Mac OS (Leopard). When bypassing proxy IP in "Network Settings->Advanced...->Proxies->Bypass Hosts & Domains" fie

  • GC time doubles in 1.5 and doesn't happen in 1.4.2 with same heap settings

    I have an application which runs in 1.4.2 and 1.5.0_05 JVM. Below are my heap settings which is same in both the versions. -Xms2048m -Xmx2048m -XX:+PrintGCDetails -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=64m -XX:+UseParNewGC -XX:ParallelGCTh

  • 60€ for all or 20€ for one, nothing else ?

    On this page : http://www.adobe.com/fr/products/creativecloud/design.html?skwcid=true Adobe is presenting various option (creation, video, photo pack) but you can't choose the softwares you're using one by one, I mean at a reasonable price because 20

  • Tuxedo 8.1  supports mfcobol 3.1

    hi whether tuxedo 8.1 supports older version of MF COBOL ( VERSION 3.1.31 ) THANKS & REGARDS

  • Why do non-flattened PDFs display incorrectly on PCs?

    We have found that PDFs do not display correctly in Windows if they were generated from InDesign files with transparency layers on a Mac. They look fine in both Acrobat and Preview on the Mac, but not on Acrobat for Windows.  This problem shows up in