How to limit the rows in the item level in sales order

hi
i have created a sales order here my requirement is in item level there are so many line items i want to limit the line items to 5 num is it possible

Dear chandra
In billing it is possible.  But if you want in sale order, apply user exit in program MV45AFZB - USEREXIT_CHECK_VBAP. 
This user exit can be used to carry out additional checks (e.g. for completion) at item level.
thanks
G. Lakshmipathi

Similar Messages

  • How to auto reset delivery block in item level in sales order

    hi i have one scenario. After creation of sales order it needs to be approved through work flow at item level so that without approval no delivery can be made. We have blocked the items in sales order now we want after approval the blocked status should be auto reset from block to free. how to do it.

    Hi,
    How is the approval taking place? Is it through work flow? If yes, You can write code for BDC or BAPI for removing the block after the approval step.
    If it is manual approval, then you can write a program with BDC/BAPI for removing the block with input as sales order number.
    Ask the approver to run this program after the approval.
    Thanks,
    Vinod.

  • Sending Alter Text by mail automaticlly on item level of Sales order.

    There is a 'Alter Text '  listed on the tabpage 'Texts' at item level in Sales order.  
    I want to send  content  of 'Alter Text '  by mail automaticly as end user change the text .
    How to implement this requirement?
    Thanks

    Hi,
    U can add the field in sales order header (Additional Data B tab). pgm name = SAPMV45A screen no: 8309.
    Regards
    Sathis

  • Can we limit the no of line items in a Sales Order

    Can we limit the no of line items in a Sales Order.

    Hi Atul,
    You can use user exit USEREXIT_MOVE_FIELD_TO_VBAP in MV45AFZZ
    Reward points pls.
    Regards,
    Govind.

  • How can we revise the pricing both at header and item level of sales order?

    Dear All,
      Now there's one issue of the pricing to me. i want to revise the pricing both at header and item level of sales order. but after i finished the cutomize and tested it, it's more different as i thought. i found that the pricing can revise at the one side only,for example, if i revise the pricing at item level and it's grey and can't be revised at the header. on the other hand, it's the same result what's happened at item.
      So, in my opinion, we can't revise the pricing both at header and item, right? if not, please give me more advices and teach me how to solve the problem. thanks a lot.

    Dear Lakshmipathi,
      Thanks a lot for your kindly and useful answer for me and I learn more for the pricing technology.
      I didn't notice the way that you reminded ago therefore I also saw the button at the condition tab. And your suggestion makes me know more.
      And I had tested the way that you said, I met with a question. Below is my opinion for my testing.
      I had created one SO and the pricing was $10, then I revised the pricing from 10 to 15 by VK11. It can't be updated automatically at SO and I must update it manually by clicking the "Update" button. This is OK for my testing, but I have another question to disturb you for the use of "Active" button. When I click the button and nothing is responsed, it's quite different what you said. So, please give more detail for the Active button. Thanks a lot.

  • Change the Payment Method at header level in Sales order document.

    Hi Experts,
    I have a doubt and a problem; I want to change the Payment Method at the header level however that is not possible never at header level is the same even either I chose other when I was creating the sales order document or I tried to change after that. The system allows changing the Payment Method but when I display the document after that the change is not done always is the same payment method. Maybe it is defined at customer or sales organization level.
    At item level it is possible change the payment method with any problem.
    Thank you and best regards.

    Dear Alberto
    Payment Terms can be changed both at header level and at item level in sale order.
    thanks
    G. Lakshmipathi

  • Delivery tolerance at header and item level in sales order

    Dear All,
    My client wants to maintain delivery tolerance at both header and item level. NOTE: The tolerance at sales order header is different than the delivery tolerance at sales order item.
    eg if i maintain 3% plus and minus tolerance at item, the header level tolerance can be 2%.
    Also if there are more than 1 line items, the system should give warning message, when it finds that the delivery tolerance at item level can be maintained but that of the header level cannot be maintained and vice varsa.
    Awaiting an early help and thankful for the same in advance.
    Regards,
    Avnesh Kamdar

    Hi Avnesh,
    Delivery tolerance can be made in the customer master,sales org data ---delivery tab.
    Delivery tolerance is always at item level.
    Reward points if it helps.
    Regards
    Karan

  • Block the Material at Item level in Sales Order automatically for delivery

    Hi!
    My business scenario needs a material to be Ckecked for Inspection after raising the Sales Order by thirdparty person. So, I need to block that particular material at Item level automatically for delivery and rest of the line items can get delivered. I can do this by selecting the reason for Block at Item level manually, but I want the system to get detemine this block. And one more thing is that there is NO Quality Management module for this. So, let me know what I need to configure for this effect.   Thank you.....

    hi,
    pl check the user exit " userexit_save_document_prepare" or "userexit_save_document".
    Take the help of your abaper to see if the logic written here can affect the item level block in the sales order for inspection. Create new reason for the item level block and have it triggered with this exit. Instead of hard coding which might require regular intervention of abaper for code changes for the business to be able to manage it, maintain a master data in the material master against some field with a key.
    now use that key to identify if these materials require to be blocked at the sales order level for inspection. To release this item again the user has to go in VA02 mode to release the block. Let this be done after the inspection of that material.
    regards
    sadhu kishore

  • How to swap between to sets of item categories in sales order

    Hi,
    We receive Idocs from a different system that creates sales order in the R/3 system. For some of these, we want to be able to use an alternative sourcing mode - basically switch between standard POs and 3rd Party POs. The orders has many items, and we find it impractical to manually update all items - also because the order might contain different materials with maybe 5-10 different item categories, that needs to be changed to 5-10 others. This will be very difficult for our business users, since we do not have a simple naming convention of item categories to ease this.
    So we are looking for alternative ways, where we can change all items by changing on header level.
    We have thought of these alternatives :
    1. Change distribution channel. Requires all materials and customers to be set up in 2 DCs - not realistically.
    2. Change sales order types using VOV8 alternatives. This seems not to be allowed for materials in BOMs and with E consumption. See other thread named "Can not change SO order type - disallowed by item settings" for more details.
    3. What we we really need is changes on schedule line level, and I suppose we could have a logic in MV45AFZZ change this dependent on some user field. But I don't think this will work, as other settings controlled by requirement class etc. will be inconsistent.
    Proposals for this are welcome - it should be a common issue.

    Hi,
    We ended up designing a solution where item category was swapped by shipping condition. For shipping condition 11, we simulated that a specific 'usage' was active. It required a few tricks to get the Source determination to run, and a further trick to avoid a re-pricing B to nuke the pricing conditions. This is still draft code, but it seems to work :
    Enhancement points ES_SAPFV45P / VBAP_FUELLEN_10 : Ensure ‘usage’ is set according to shipping condition
    data : ld_active type c.
    data : ld_no_pricing_vwpos type c.
    constants : lc_vwpos_no_pricing(20) type c value 'VWPOS_NO_PRICING'.
    Fake change to ensure new item cat determination
    ( conditions when this is active, setting ld_active )
      if sy-subrc is initial
      and ld_active = 'X'            "Action enabled for company
      and t180-trtyp ca 'HV'.       " Create/change mode
    case vbak-vsbed.
      when '11'. " Special logic
        t184_vwpos = 'Z001'. " Special T184 usage for direct
        clear *vbap-mandt. " simulate change of *vbap
        matnr_changed = 'X'." simulate change
        ld_no_pricing_vwpos = 'X'. " Flag for suppress B repricing
      when '12'. " standard logic
        clear t184_vwpos.  " Standard T184 usage for indirect
        clear *vbap-mandt. " simulate change of *vbap
        matnr_changed = 'X'." simulate change
        ld_no_pricing_vwpos = 'X'. " Flag for suppress B repricing
      when others.
        clear ld_no_pricing_vwpos.
      endcase.
    Memory ID read in MV45AFZB, form USEREXIT_NEW_PRICING_VBAP
      export ld_no_pricing_vwpos to memory id lc_vwpos_no_pricing.
      endif.
    MV45AFZB, form USEREXIT_SOURCE_DETERMINATION : Ensure item category determinations takes ‘usage’ into consideration
    ( conditions when this is active, setting ld_active )
      if sy-subrc is initial
      and w_active = 'X'            "Action enabled for company
      and t180-trtyp ca 'HV'.       " Create/change mode
    Get higher-level item category
      clear lv_uepos. clear  gv_spp_pstyv.
      lv_uepos = vbap-uepos.
      do 10 times. " to eliminate phantom levels
      read table xvbap with key posnr = lv_uepos.
      if sy-subrc = 0 and xvbap-pstyv ne lv_zvco.
      gv_spp_pstyv = xvbap-pstyv.
      exit.
      elseif sy-subrc eq 0 and xvbap-pstyv eq lv_zvco.
      lv_uepos = xvbap-uepos.
      elseif sy-subrc ne 0.
      exit.
      endif.
      enddo.
    t184_vwpos set in FV45PFAP_VBAP_FUELLEN
      call function 'RV_VBAP_PSTYV_DETERMINE'  "Determine using T184
             exporting
               t184_auart   = tvak-auart " Order type
               t184_mtpos   = maapv-mtpos "Item category group
               t184_uepst   = gv_spp_pstyv  "Higher level-SPP item category
               t184_vwpos   = t184_vwpos " Usage from FV45PFAP_VBAP_FUELLEN
               vbap_pstyv_i = ''
             importing
               vbap_pstyv   = vbap-pstyv.
    endif.
    MV45AFZB, form USEREXIT_NEW_PRICING_VBAP : Ensure dynamic change of item categories does not trigger repricing type B.
    data : ld_no_pricing_vwpos type c.
    constants : lc_vwpos_no_pricing(20) type c value 'VWPOS_NO_PRICING'.
    Memory ID set in FV45PFAP_VBAP_FUELLENP, FORM VBAP_FUELLEN
    import ld_no_pricing_vwpos from memory id lc_vwpos_no_pricing.
    if sy-subrc is initial
    and ld_no_pricing_vwpos = 'X'.
    Skip repricing when mass change item cat
      clear new_pricing.
    endif.
    I hope someone will find it useful. Please notice that Enhancement points was required, so it will not work in older R/3 versions.

  • How to limit entry of Ship to party in a sales order

    Dear Gurus,
    My current project requires the following Scenario:
    My  client's requirement is that for <b>a single sold to party</b>, there need to be <b>more number of ship to parties</b>.   We were able to achieve the same by <b>assigning </b> the list of all the <b>respective ship to parties in the sold to party, customer master.</b>
    Now the client's requirement is that, the <b>system should not</b> let the user to enter a <b><b>ship to party</b> apart from the list maintained in Sold to part</b>y.  But when we are creating the sales order, the system is letting us enter, <b>a ship to party apart from</b> what is maintained in sold to party..
    Looking forward for your inputs at the earliest.
    regards
    Sridhar.P

    hi,
    In SPRO Determine Partner determination Procedure for sales Order, jut check for ship to party partner function : what value has been maintain in the field Origin
    leave the field blank or maintain c.
    other wise you can make use of custome r defined user exits.
    PARTNER_CUSTOMIZING_40C_XPRA
    this might be useful to you in solving the problem.
    thanks
    deepak

  • Complete Delivery at Line item level in Sales Order

    Hello Gurus,
    While creating a sales order for some customers (the sales area tab in the customer master data has complete delivery and full delivery at item level), the complete delivery flag should be enabled and partial delivery flag at item level shoulb be C.
    We have a situation where this is not working in some cases. I need to know what user exits are copying the customer master data into the sales order fields. Please give me a lead how I can proceed with this.
    Regards,
    Balu

    Hi Balu,
    Please check user exits in program MV45AFZZ.
    i.e USEREXIT_MOVE_FIELD_TO_VBAK 
    Regards,
    Gumanti

  • Delivery block at item level in sales order,Qty should not be confirmed

    Dear all
    We have a below requirment
    We will have multiple line items in sales order and put delivery block at item level.If delivery block is put at item level it should not confirm the qty and pass on to MRP
    But if we put at header level delivery block,schedule line qty at item level are not getting confirmed.So requirements are not passed to MRP-This is correct .Working as per SAP standard configuration.
    Can you tell how to activate the same for item level delivery block.if same delivery block is put at item level,it is confirming the quantity.But we don't want confirmation of qty to happen.
    Can you give us solution
    Regards
    Sudha

    We had similar issue , there will be confirmed quantity but the requirement will not transfer to MRP , We used Item category configuration ( Copied new item category assignment and it should behave as Inquiry item category)
    Check OVZ7 T code for customizing the u201CDelivery Blocku201D in your sales document to block Confirmation block
    Check the  customizing OVZ8: if the flag  Transfer of Requirement
    Transfer of requirements of the requirement class should be ON.
    In the sales order the requirement type is determined by the combination sales order item + MRP type.
    Refer SAP Help URL below
    [Setting a Delivery Block |http://help.sap.com/saphelp_470/helpdata/en/93/744bf2546011d1a7020000e829fd11/content.htm]

  • Adding a new field in web ui at item level in sales order

    While creating the sales order in WEBUI,we select a product at the item level. Once the product is selected into the line item, the vendor associated with the product should be determined and displayed in the custom column field(vendor)  for that line item. If there are more than one vendor associated with the product, the list for vendors should be displayed in a drop down to select one.
    this was the requirement
    1) how to add field to the structure.
    2)how to get the value from the field product field.
    3)how to display it in the field vendor in the form of drop down list
    please suggest me any documents or procedure to achieve this requirement .
    thanks in advance,
    srinivas.
    Edited by: srinivasa reddy mallidi on Jan 29, 2009 11:05 AM

    srinivas,
    Honestly a better approach would be to add/use a new partner function at the line item level.  Then you could configure a new partner determination procedure to select the vendor.  You may need to use one of the partner determination procedure BADI exits to handle the selection logic.
    The best part is this would not require any UI configuration as all the standard screens are available for maintenance of this information.
    Take care,
    Stephen

  • Suppressing tabs at item level in sales order

    16.07.2008
    Hi friends,
    How do i suppress tabs like say the condition tab or the billing plan tab at item level for a Sales document type and for certain users when the user is using transaction code va02?. My requirement is certain users should not be able to change date in these tabs.
    Please suggest.
    Regards,
    Uday

    Hi,
    You can control it through user-exit USEREXIT_FIELD_MODIFICATION in program MV45AFZZ by using following coding. You have to create database table <ztable> where you will maintain user who are not allowed to change the billing date.
      tables: <ztable>
      case screen-name .
        when 'VBKD-FKDAT'.
          if vbak-vbtyp eq 'C'.
            select * from <ztable>
               where user_name eq sy-uname.
               if sy-subrc eq 0.
                  screen-input = 0.
               endif.
          endif.
      endcase.

  • User Exit for Updating Delivery Plant at Item Level in Sales Order

    Hello Experts
    There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant.  There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
    Thanks a lot....
    -Harkamal

    Best place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
    Are you kidding???  You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!!  Never, ever change a critical value like plant in the SAVE user exits...

Maybe you are looking for

  • Report on separate sheets

    In my application a page has a table with data rows. The source for the region is a PL/SQL-statement which generates the data rows. The data rows are grouped by the frist table column (person). The break formatting is at the first column. I have the

  • How do you get your ipod unfrozen if your lock button doesnt work?

    My lock button doesnt work anymore and my ipod's screen is frozen. How do i get it unfrozen without using the lock button?

  • Need an I/O Master

    First of all, this is a MIDlet so i cannot use java.net , only java.io and java.microedition.io, which lets me use InputStream and StreamConnection, etc. I am trying to create a simple program to read data from a webpage and display it to the user. T

  • Raw files ORF

    Can someone give me a way how ORF Raw files from my Olumpus digital camera (OMD5E) can be openend in Elements 9. (i always get an error message)

  • Regd. Connection URL and Database Classname

    Hi! All, Can anyone help in the following mentioned below related issues: I have created a stand-alone report template in CR-XI-R2 and using command passed the query to bring the resultset. While bringing the resultset from network database from SIT