Adding to item quantity

Hi all
When first adding an item to the basket, is it possible to add more than 1. For example on the partdetail.aspx page have a quantity box next to the add to basket link. Rather than adding it once then having to update the quantity after in basket view.
Thanks

The cart page is actually doing the add part, so you would either need to redirect from there using a plugin, or create a plugin to manually add the part (using NPOrder.AddPart())
If you want to create the plugin, then you only need to swap out the NavigateURL on the "~/catalog/controls/partslistblock.ascx" for the cart image.
Find the lnkAddToCart Hyperlink and change
NavigateUrl="~/commerce/cart.aspx?AddPartNo="
to
NavigateUrl="~/catalog/partdetail.aspx?partno="
Message was edited by:
        Shane Hart

Similar Messages

  • Using Bapi_salesorder_change adding a item, deleting a  item,Quanty change

    I need help on Bapi_salesorder_change.
    I have a table control in which there will be data of a particular sales document no, items, quantity, sales unit. When user changes the quantity, or adds a line item or deletes a line item and the press the save button bapi_salesorder_change should trigger and should change the order as the user changes.
    Can u help how to write code for this three conditions
    1> adding line item.
    2> deleting a line item.
    3> changing the quantity.
    using bapi_salesorder_change
    Can i use the same bapi for three conditions?
    Please help me in this as soon as possible.
    I thank them in advance

    Hello Geeks,
              i am using this bapi  for updating my item quantity no....
              but the bapi return msg say tat its not changing....
              i think i may did some mistake pls anyone can rectify it....
              i hv attached my code below......
    *For line item
    TYPES :BEGIN OF y_t_vbap,
            vbeln TYPE vbeln_va,  "sales Document
            posnr TYPE posnr_va,  "Item no of SD document
            matnr TYPE matnr,     "Material No
            zmeng TYPE dzmeng ,   "Target qty in Sales unit
            spart TYPE spart,     "division
            message TYPE BAPI_MSG,
           kwmeng type kwmeng,   "cummulative order qty
           END OF y_t_vbap.
    TYPES : y_t_itemin TYPE bapisditm,
            y_t_return TYPE bapiret2,
            y_t_headerx TYPE bapisdh1x.
    TYPES: BEGIN OF y_t_logdata,
           lno             TYPE         lineno,         "Lineno
           field           TYPE         fieldname,      "Field Name
           value           TYPE         lmon_fvalue,    "Field Value
           message         TYPE         bapi_msg,       "Messages
           END OF y_t_logdata.
                     Internal table declaration
    DATA: "y_i_vbak      TYPE   STANDARD TABLE OF y_t_vbak,
          y_i_vbap      TYPE   STANDARD TABLE OF y_t_vbap,
          y_i_headerx   TYPE   STANDARD TABLE OF bapisdh1x,
          y_i_itemin    TYPE   STANDARD TABLE OF bapisditm ,
          y_i_iteminx   TYPE   STANDARD TABLE OF bapisditmx,
          y_i_return    TYPE   STANDARD TABLE OF y_t_return,
          y_i_logdata   TYPE   STANDARD TABLE OF y_t_logdata,
          y_i_bapiret   TYPE   STANDARD TABLE OF bapiret2.
                     Table type declaration
    TYPES: y_tt_vbap    TYPE   STANDARD TABLE OF y_t_vbap ,
           y_tt_logdata TYPE   STANDARD TABLE OF y_t_logdata.
                     Work Area declaration.
    DATA:   y_wa_vbap     TYPE   y_t_vbap,
          y_wa_itemin   TYPE   bapisditm ,
          y_wa_iteminx  TYPE   bapisditmx,
          y_wa_headerx  TYPE   bapisdh1x,
          y_wa_return   TYPE   y_t_return,
          y_wa_logdata  TYPE   y_t_logdata,
          y_wa_event    TYPE   slis_alv_event,
          y_wa_event1   TYPE   slis_t_event,
          y_wa_bapiret  TYPE   bapiret2.
                     Variables declaration.
    DATA: y_i_event     TYPE   slis_t_event,
          y_v_success   TYPE   i           , "For Success
          y_v_error     TYPE   i           , "For Error
          y_v_sno       TYPE   char30      ,
          y_v_eno       TYPE   char30      ,
          y_v_msg       TYPE   char100     . "error msg
                     Constants declaration.
    constants : y_k_x type char1 value 'X',
                    y_k_u type char1 value 'U',
                   y_k_e type char1 value 'E'.
                  SELECTION SCREEN LAYOUT
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 3(18) text-003.
    PARAMETERS   :    y_p_vbln TYPE vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN: END OF LINE.
    SELECTION-SCREEN : END OF BLOCK b1.
                      START-OF-SELECTION.
    START-OF-SELECTION.
    WRITE: text-002.
                      END-OF-SELECTION.
    END-OF-SELECTION.
      SELECT  vbeln
              posnr
              matnr
              zmeng
              spart
              FROM vbap
                   INTO TABLE    y_i_vbap
                   WHERE vbeln = y_p_vbln.
      LOOP AT y_i_vbap INTO y_wa_vbap.
        y_wa_vbap-zmeng = 2 + y_wa_vbap-zmeng.
        MODIFY y_i_vbap FROM y_wa_vbap INDEX sy-tabix.
      ENDLOOP.
      PERFORM y_f_update USING y_i_vbap.
    *&      Form  y_f_update
           POPULATE BAPI DATA AND RUN BAPI
    FORM y_f_update USING  y_p_vbap TYPE y_tt_vbap.
      CLEAR: y_i_headerx, y_i_itemin, y_i_iteminx,
             y_i_return, y_i_bapiret.
      REFRESH: y_i_itemin, y_i_iteminx, y_i_return, y_i_bapiret.
      LOOP AT y_i_vbap INTO y_wa_vbap.
        MOVE y_wa_vbap-zmeng TO y_wa_itemin-target_qty.
        MOVE y_wa_vbap-posnr TO y_wa_itemin-itm_number.
        APPEND y_wa_itemin TO y_i_itemin.
      ENDLOOP.
    *Update the Bapi Itnernal tables
      y_wa_headerx-updateflag = y_k_u .
      APPEND y_wa_headerx TO y_i_headerx.
      LOOP AT y_i_vbap INTO y_wa_vbap.
        y_wa_iteminx-itm_number = y_wa_vbap-posnr.
        y_wa_iteminx-target_qty = y_k_x .
        y_wa_iteminx-updateflag = y_k_u .
        APPEND y_wa_iteminx TO y_i_iteminx .
      ENDLOOP .
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = y_wa_vbap-vbeln
          order_header_inx = y_wa_headerx
        TABLES
          return           = y_i_return
          order_item_in    = y_i_itemin
          order_item_inx   = y_i_iteminx.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      CLEAR y_i_vbap.
    IF y_i_return is not initial.
      LOOP AT y_i_return INTO y_wa_return where TYPE = y_k_e .
        MOVE y_wa_return-message TO y_wa_vbap-message .
        Append  y_wa_vbap to y_i_vbap.
        y_v_success = y_v_success + 1.
      ENDLOOP.
    ENDIF.
      y_wa_event-name = 'TOP_OF_PAGE'.
      y_wa_event-form = 'Y_FD_TOP_OF_LIST'.
      APPEND y_wa_event TO y_i_event.
      CLEAR y_wa_event.
      CALL FUNCTION 'ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program         = sy-repid
          i_tabtypename1             = 'Y_T_VBAP'
          it_events1                 = y_i_event[]
        TABLES
          t_outtab1                  = y_i_vbap[]
        EXCEPTIONS
          program_error              = 1
          maximum_of_appends_reached = 2
          OTHERS                     = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " y_f_vbap
    *&      Form  Y_FD_TOP_OF_LIST
    FORM y_fd_top_of_list.
      MOVE: y_v_success TO y_v_sno,
            y_v_error   TO y_v_eno.
      CONCATENATE text-002 y_v_sno '/' y_v_eno INTO y_v_msg SEPARATED BY
      space.
      CONDENSE y_v_msg.
      WRITE / y_v_msg .
      SKIP 1.
    ENDFORM.                    "Y_FD_TOP_OF_LIST

  • Check Sales order item quantity

    Hi,
    The scenario is such that our client has a specific production capacity for specific item group. and he wants that the sales order should not be added if the quantity of an item in the sales order goes beyond the specific limit for a particular day.
    Regards
    SAB

    Hi,
    Can you be more specific in your question
    Example : If you want to block booking of sales order for a limit i.e beyound this limit you should not book the sales order until you make the delivey
    Create a UDF in Items - Items WareHouse - and enter the limit value in that respective UDF
    and then create a SP to block the transactions
    With regards.
    Eshvanth Singh

  • Error while adding a item

    Hi All
    When I am adding a item in master data then error occurred "variation for price list and price list for items" and finally i could'nt add item. So please solve it if you have any solution regarding it.
    Thanks with regards
    Bibha
    Edited by: Bibha Singh123 on Mar 25, 2011 12:43 PM

    Hi Bibha,
    check Message 3506-9 Price List Error - Please Help thread.
    Thanks,
    Neetu

  • How to create new subsite while adding new item to the list by using javascript?

    hi,
    I hav a task ie, when I add item to the list then subsite will create with that list item title and description . So By using javascript, I have to create subsite while adding new item to the list.
    Help me to solve this.
    Thank you, 

    Is your item getting added through Javascript client object model ? If yes, you can write in the success delegate of your list creation method the logic to create the subsite.
    function CreateListItem()
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('List Name');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', 'My New Item!');
    oListItem.set_item('Body', 'Hello World!');
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.CreateListItemOnSuccess), Function.createDelegate(this, this.onQueryFailed));
    function CreateListItemOnSuccess() {
    var subsiteTitle = oListItem.get_item('Title');
    //Logic to create a subsite
    function onQueryFailed(sender, args) {
    I have added a sample flow for the above scenario. Have a look at the following lnk for how you can craete a subsite using ecmascript.
    http://ravisoftltd.wordpress.com/2013/03/06/sharepoint-2010-create-site-with-ecma-script-with/
    Geetanjali Arora | My blogs |

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • How to Fetch Sales Order Item Quantity from Customer table(ztable)?

    Dear Guru's,
    My scenario:
    While creating Sales order the item quantity should be fetched from a Ztable. So iam using the Userexit "V46H0001 - - Customer functions for resource-related billing", in that i have implemented my code in the Function Exit - EXIT_SAPLV46H_001 and the FM documentation says
    This function module allows you to change item information for generating a new item.
    In order to achieve this, you must change the relevant field in the structure C_VBAPKOM.
    So i activated that exit and wrote the following code to test it as follows;
    break-point.
    C_VBAPKOM-zmeng = 10.
    But it seems not working, even it doesn't stop at the break-point when i type the material number for the item in the sales order and press enter...
    Please guide me in this regard, am i correct in choosing the User-Exit? what else have to be done in order to fetch the item quantity from the ztable....
    Please suggest if there is some other way to do this, i also heard that we can do this through Routines...
    Thanks in Advance...
    Regards
    Karthik D

    I have solved this  and you can found how i solved in the last reply of the following thread....
    [SD UserExit - V46H0001 - Customer functions for resource-related billing|SD UserExit - V46H0001 - Customer functions for resource-related billing]
    Thanks
    Karthik D

  • PO issue :What should we do to close the PO or change item quantity?

    Hi Everyone,
    I am new to MM.I got an issue saying that there is some mismatch with quantity in the particular PO. User wants to cancel/close the PO system but it is not allowing to do so. To change the quantity is also  good, but while trying to change item quantity system is giving the following error message.
    Quantity 1000 is smaller than quantity issued 2000.
    To close the PO or change item quantity what should I need to do?
    A help will be highly appreciated
    Regards,
    sharon.

    Hi,
    It is of the standard functionality of SAP to verify the GR and IR against PO quantity when you try to close your related PO line item.  It ensures data consistency for your PO and PO history.  What you should do is very much subject to the status of your PO history (i.e. how many you have already GRed and/or IRed).  Check it again in your PO history tab of the PO item details level prior to making any further action on how your PO line item quantity shall be adjusted.  A particular example is if GR was done for the quantity of 2,000, you can't simply adjust your PO quantity into 1,000 as it goes against the logic whereby the GR quantity (and/or IR quantity) must be no larger than PO quantity.
    Cheers,
    HT

  • Change Alternative Item Quantity in Production  Order BOM

    Hi Gurus,
    I woould like to ask how can I make the Alternative item quantity to become editable. As of now, the system will calculate the percentage in the BOM and default it in the Production order.
    Now I have a requirement that in the Production order Change, the user can change the quantity of the Alternative Item based on the situation with out changing the BOM. Just change in the production order. What settings do i need to change?
    Thanks,
    Raymond

    Hi,
    Can you let us know why you want the user to make the changes manually ?
    Not in front of the system at the moment, but just do an Av. Check to see if you're able to get the switch if the stock situation has changed for the alternative items.
    Based on what i know, the field will not be editable & there is no specific setting to make it editable.
    Regards,
    Vivek

  • Freight Units Line item Quantity

    **Hello All,**
    **We have a requirement to extract the Freight unit line item quantity. Is there a table available in SCM capturing this data. The freight units that we are using in this custom report is Sales orders and Purchase orders.**
    **Please let me know if you know the table name.**
    **Thanks.**
    **Ramesh**

    Hi Ramesh,
    Use the structure /SCWM/S_ASP_VEH which carries
    many tables.  Field name FRD_NUM denotes the
    freight document number.
    If you want additional information, use the tables under
    this structure to build your custom report.
    Regards
    R. Senthil Mareeswaran.

  • Adding line item prior to ACC_DOCUMENT03 Posting

    Due to our legacy currency alignment on some systems being incongruent with our SAP ECC 6.0 environment, some upstream inbound IDocs will post with 2 decimals for HUF when 6.0 environment has 0 decimals for HUF.  The inbound documents are coming in as ACC_DOCUMENT03 IDocs.
    There will be rounding involved.  iN certain cases, the rounding will mean that the line items are no longer in balance.
    Rather than alter the value of the inbound line items, preference is to add line item prior to posting that contains the balance difference and posts to the "rounding difference" account.
    Has anyone expereinced this situation before? How was it resolved?
    Considered adding line item via "BAPI_ACC_DOCUMENT_POST" or, if possible, within "'BAPI_INCOMING_INVOICE_CREATE'".
    Has anyone faced this or a simlar issue before?  How was it resolved?  Was it resolved internally?

    Hello Weng,
    I also looked on SAP notes. 
    There is a note with much information about Tax Postings with accounting BAPIs and it's a consulting note.  The note number is 626235.
    Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Dec 21, 2010 10:11 PM

  • In which table Item quantity is stored

    Hi Gurus,
    In which table Item Quantity in the CRMD_ORDER Transaction is stored .
    What is the transaction for pricing conditions.In which tables pricing details are maintained.
    Please give me the reply as early as possible.
    Thanks,
    Saritha

    Saritha,
            This itself it your item quantity. check for one of your order. first get header guid from CRMD_ORDERADM_H from order number, then go to CRMD_ORDERADM_I and get item guid providing header guid. take this item guid and go to table CRMD_SCHEDLIN and provide that item guid and it gives you item quantity which itself is schedule line quantity.
    Alternatively you can use CRM_ORDER_READ function module as well to get details of item.
    let me know if there are any issues
    Siva
    Message was edited by:
            Siva Velama

  • Change Item Quantity in the Billing Document ( Proforma Invoice )

    Hi,
    There is a requirement from the client to change the quantity at item level in the billing document ( Order based Proforma Invoice ) after it is saved.
    As SAP does not allow to change in the VF02 transaction, Please let me how to change quantity at the item level of the billing document.
    Please let us know if we need to use any user exit or any other system modification.
    Regards
    V R Reddy

    Hi Venkat Rama Reddy
    First of all Welcome to SDN forum
    Now coming to your query , your requirement cannot be fulfilled  as standard SAP doesn't .Because ,First of all at billing level you cant change the item quantity , then in VF02 it is not possible.But if your clients requirement is to change the item quantity in VF02 , then first of all do VF11->VL09->VL02N and here you can change the picking quantity and then do the billing ,as once if you change the picking quantity then at billing item  level also the item quantity will change
    Check with the following user-exit  USEREXIT_SAVE_DOCUMENT_PREPARE. Here with the help of the Technical consultant include the requirement that after saving the billing document we can change the item quantity
    But it is not suggestible to change the item quantity at billing level . As once you save the billing document , an accounting document will be getting created.
    Regards
    Srinath

  • Restricting PO line item quantity

    HI all,
    How should i restrict a PO line item quantity from RFQ Quantity?
    please help me how to restrict PO quantity.
    Thanks,
    Message was edited by: sungnam ko
    Message was edited by: sungnam ko

    Hi
    It is always collecting the Qty of RFQ or referance document but you can change the same manually if you want to restrict to manually change then only option one option is "you have to change po-qty field status to display only" but this will not the proper soluction.
    With Regards
    Dhananjay

  • Line Item Quantity

    Hi All,
    Its a small query,What is the field in the dictionary for line item quantity & line item number,
    Thanks

    HI,
    go to tansaction code VOV7 ANSD SELECT your item category you can find a filed called order quantity =1
    this will reslove your problem
    REward points if the answer is helpful
    REgards,
    Murali

Maybe you are looking for

  • Java.io.io​exception error on third party twitter app

    Device info My carrier: Blackberry 9360 smartphone(3g,wi-fi) 7.0 Bundle 1555 (v7.0.0.319, platform 8.0.0.359) 3G Bands 1,2,5,6 Cryptographic kernel v3.8.7.0 Branding version: 1.0.107.263H Apps and free space Ubersocial (third-party twitter app) free

  • Database fails on startup

    HI I have copied the database from tape. When i try to start it - I get the error message: ORA-01122: databasefile 1 failed verification check ORA-01110: datafile 1 '/dev/rlvdbsfm-01.db' ORA-01207: file is more recent than controlfile -old controlfil

  • Text Metrics

    Hello, I need to know how flash calculates the distance between text rows when using textField. What is the default leading? Documentation says it's undefined.. but what does undefined mean? 0? Also I need to know what is the distance from the top of

  • Tell me the logic

    Folks..... iam selecting the data from bkpf to I_BKPF based on selection criteria. then getting the data from REGUP to I_REGUP by doing for all entries in   I_BKPF. suppose in I_BKPF i have 20 records. and i got 3 records in I_REGUP. now i need data

  • CRM Technical objects

    Hi friends, 1.)I request you to send some of the objects developed under technical in CRM in specific, on smart forms,BAPI's,BADI's,customised reports. 2.)Can you suggest which BAPI is used for Complaints returns and repair order management?