Restriction of No. of Sales Orders

Dear Gurus,
How  can we restrict the no. of sales orders for a customer ie. if we want to only allow the system to create say 3 orders for the particular customer in a particular month, and the system should not allow  to create the fourth order for that month for that customer.

Hi Hari
In customization its not possible.
Blocking /unblocking customer every month will be an extra effort for end user.
Advisable is go for user exit.
Take help of ur abaper, use User exit USEREXIT_SAVE_DOCUMENT.
Write a code such that before saving sales order program will check VBAK table for the Sold to party (KUNNR) and number of sales orders created in SY-DATUM month i.e. current month.
If its already 3 then display an error message and exit. ie not save that sales order.
try and revert.

Similar Messages

  • How to restrict the Number of sales orders in theTCode:VL10A whil creation

    I'm creating the Delivery by using the batch job with program: RVV50R10C Here I need to restrict the number of sales orders numbers while creating deliveries for sales orders
    Like system should pick the sales orders (sales documents) from 1 to 100 OR 100 to 200
    Please advise me how to do it and what changes I need to do it

    Hi,
    Aslo, you can see Note 198137 - VL10: Customer-specific enhancements / user exits. As is for SO, check subroutine LV50R_VIEWG03. If cf_subrc = 1 thin this SO isn't seen in list.
    ***INCLUDE LV50R_VIEWG03 .
    *&      Form  POSTAB_VEPVG_FILL_USER
    FORM POSTAB_VEPVG_FILL_USER
         USING    IX_LIST_PROFIL    TYPE      SHP_VL10_LIST_PROFIL
                  IX_PARAMETERS     TYPE      SHP_VL10_PARAMETERS
                  IX_SELECT_OPTIONS TYPE      SHP_VL10_SELECT_OPTIONS
                  IT_ENQUEUE        TYPE      SHP_VL10_PACKAGE_T
                  IX_SD_ORDER       TYPE      SHP_VL10_SD_ORDER
                  IS_VEPVG          TYPE      VEPVG
         CHANGING CS_POSTAB         TYPE      SHP_VL10_ITEM
                  CF_SUBRC          TYPE      SYSUBRC.
    CF_SUBRC = 0.
    *  cs_postab-zzfield = ......              "add new field to List
    *  if xxxxxxx = yyyyyyy.
    *    cf_subrc = 1.                         "Exclude this index from List
    *  endif.
    ENDFORM.                    " POSTAB_VEPVG_FILL_USER
    I hope this helps you
    Regards
    Eduardo

  • How to restrict saving of a sales order without a material.

    Hi Gurus
    Please advice How to restrict saving of a sales order without a material. That is the system saves the order even if no item is assigned to it.

    Hi Raghu,
                 In standard SAP we can not do that. Even for some requirements of the customer this feature is required, specially in case of milestone billings, custom materials etc. client after saving the empty sales order they may create materials based on that sales order number.
                 If it is mandatary for u to save sales order only after the entry of the materials, u can try user exits or go for a code with the help of an ABAPer.
    Regards,
    Ravi Duggirala
    Edited by: ravi duggirala on Jun 20, 2008 11:11 AM

  • How to restrict status profile for sales order.

    Dear Friends,
    Pl suggest me for follwoing scenario
    ►     As per business process for tender/ institutional sales and exports, the order is complete once the complete delivery and invoicing for the same has been performed.
    ►     It was also observed that a sales order may be modified (material, quantity, price etc) even after complete invoicing of the same has been performed in SAP.
         The requirement is  Possibility to enable a control to restrict any amendments to the sales order after complete delivery and invoicing will be explored as per business requirements.
    Is there any solution above scenario without writing any code.
    Regards,
    Atul
    Edited by: atul thakur on Oct 28, 2009 5:09 AM

    Mr Atul,
    My understanding is, you don't want your user to be able to change the pricing and order quantity once the order is complete, i.e Delivered and Shipped.
    The status profile will not help you in the above scenario, Price/Quantity changes will not come up as Business transactions that can be controlled at Status profile.
    Standard SAP restricts the price changes to a completed item of the order, so no need to worry about this.
    But order quantity can be increased any time.
    So to restrict the user to increase the order quantity you need to use the User-Exits that SAP provided.
    Use the MV45AFZB user-exit program and form  FORM userexit_check_vbap to code this.
    Hope this helps you.
    Regards,
    Aj.

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • How to Restrict Confirmed Quantity in Sales Order (Based on Batch Expiry)

    Dear SD Experts,
    Currently our sales order confirms any amount of quantity if stock is available. And only during delivery it checks for the expiration of the batch and reduces the delivery quantity to batches available in stock within expiry.
    But since we are doing a bulk creation of deliveries at the end of the day, the check for expired batches is happening too late and no visibility for the data entry operators of stock that cannot be delivered during creation of the sales orders.
    So I am looking for solution to restrict the confirmed quantity in sales order to actually confirm only stock what can be delivered. i.e. based on expiry of the batch.
    Thanks!

    hi
    in Logistic general - batch mangement - batch determination allocation and check activation - maintain allocate SD search Procedure/ activate check
    check this for your sales area and sales document type and then in the search procedure maitain the strategy to check the Expiration date.
    regards,
    Sudhir

  • Restrict Pricing updates in Sales Order

    Hi All,
    I have created a pricing conditon formula to get the price for the real time contract price from a third party Contract management system through a RFC call, and assigned the formula to a condition type.
    In this formula, if there was an error i am exporting the error message to a memory and importing the value from  that memory to set a billing block in the user exit SAVE_PREPARE_DOCUMENT (MV45AFZZ).
    The problem i am facing is that the formula is getting called many times uncessarily for eg. when you click pricing etc
    and not necessarily updates the price all times. Actually the price is not updated when called from the following routine and is basically because of the following code.
    Form: xkomv_bewerten.
      IF xkomv-kofrm NE 0 AND wertformel EQ space AND komp-kposn NE 0.* rettkomv = xkomv*.   
      xkwert   = xkomv-kwert.      frm_kondi_wert-nr = xkomv-kofrm. PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND. xkomv    = rettkomv.
        ENDIF.
    During Change Sales Order,  because of this even a billing block is set before, it is getting cleared without updating the price.
    Can somone help me with this?
    Thanks.
    Martin

    Hi,
    Do one thing you could ask your functional consultant to restrict pricing update into IMG Guide. There is pricing where SD consultant restrict the Pricing Updates. If they have problem then let me i will tell you how and where you can do the pricing restriction.
    Regds,
    Rakesh
    Edited by: Rakesh Kumar on Aug 8, 2009 1:35 PM

  • Line item restriction after billing in sales order ?

    Hi All
    i am new to this forum and this is my first question going to put up
    After doing the billing , i am able to add another line item in the sales order via va02 , so i want know how can i restrict to add line item after completing whole cycle in sales order ?
    Regards
    Vincent

    Irrespective of whether it is an order related or delivery related, you can add en number of linei tems in sale order which is a standard functionality.  If you want to restrict, you have to go with user exit.  But there is nothing wrong in adding new line items via VA02.
    G. Lakshmipathi

  • Quantity restriction for Customers in Sales Order

    Hi all,
    Please advice on priority basis,
    I have one requirement, we want to have quantity restriction for product & specific customer in sales order. system should not allow more than the defined quantity for product  to particular customer. We dont have the contract process.
    regards

    Hi,
    This can be achieved by the condition type.
    Go to V/06 and copy PR00 and made the new condition type.
    Now this will be your main condition type which will carry out pricing.
    Assign this condition type to your pricing procedure and save it.
    Make this condition type mandatory and remove it from PR00.
    Now go V/06 and select your newly created condition type and click on detail.
    Over there you will find condition update just click on that.
    Condition type : C quantity basis.
    Do these setting for your condition type.
    Now go to VK11 and enter the condition type and store the data first.
    Then click on extras u2013 additional data or press F7.
    Over there you will find max condition base value.
    Enter the total number of value which you want to sell to your customer.
    Now every time you create order this value is getting updated for your customer for that material.
    So when it reach the limit which you set then this condition type will be deactivated.
    And because this will be mandatory condition type so with out this you wont be able to create the sales order.
    Itu2019s a little bit confusing language hope so you will understand.
    If you have any problem then let us know.
    Regards
    Raj.

  • Restrict user access to sales order

    Hi all...
    We have the following situation:
    A user xxxxx creates a sales order with va01 ... how can be limited the access to this sales order??..another user  yyyyyy is not allowed to modify this sales order but user yyyyyy can create orders/modiffy ordes with va01/va02.(something like limit access to o sales order created by another user).
    Regards,

    Hello Viadi,
    Your basis person can help you out in providing this restrictions.
    I would like to tell you that you can restrict a particular user from accessing a t-code entirely for eg: you can restrict a user to only VA01 & VA03 i.e., creation and display  and another user should be given access to VA02 i.e, change SO.
    This way you can maintain security measures for SAP usage.
    If you give authorization for creation and change there might not be sanctity of usage. But this again depends upon the client requirement.
    Hope this helps.
    SAP gurus any additions or corrections to this are welcome.
    Thanks
    Swami

  • Restrict Formula Calls in Sales Order Pricing

    Hi All,
    I have created a pricing conditon formula to get the price for the real time contract price from a third party Contract management system through a RFC call, and assigned the formula to a condition type.
    In this formula, if there was an error i am exporting the error message to a memory and importing the value from that memory to set a billing block in the user exit SAVE_PREPARE_DOCUMENT (MV45AFZZ).
    The problem i am facing is that the formula is getting called many times uncessarily for eg. when you click pricing etc
    and not necessarily updates the price all times. Actually the price is not updated when called from the following routine and is basically because of the following code.
    Form: xkomv_bewerten.
    IF xkomv-kofrm NE 0 AND wertformel EQ space AND komp-kposn NE 0.* rettkomv = xkomv*.
    xkwert = xkomv-kwert. frm_kondi_wert-nr = xkomv-kofrm. PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND. xkomv = rettkomv.
    ENDIF.
    During Change Sales Order, because of this even a billing block is set before, it is getting cleared without updating the price.
    Can somone help me with this?
    Thanks.
    Martin

    I coded  this logic in a 906 pricing routine... and I did not have any problem bcoz of multiple hits... SAP is taking care of when to update values as per the calculations I am doing here....
    if I remember right SAPLV61A is the main program which will be included with all sorts of code related to routines..
    * Call the RFC wrapper in a new task
      CALL FUNCTION 'ZTEST'
        STARTING NEW TASK taskname
        DESTINATION 'NONE'
        PERFORMING ret ON END OF TASK
        EXPORTING
          comm_head_i           = wa_komk_i
          comm_item_i           = wa_komp_i
        EXCEPTIONS
          communication_failure = 1
          system_failure        = 2
          resource_failure      = 3.
      IF sy-subrc EQ 0.
        WAIT UP TO 1 SECONDS.
      ENDIF.
    * Get the values from the RFC shared memory export
      CONCATENATE 'ZTESTVPRS' sy-uname INTO memid1.
      IMPORT lt_komp = comm_item_e
      FROM SHARED BUFFER indx(st) ID memid1.
      wa_komp_o = comm_item_e.
      IF sy-subrc EQ 0.
        DELETE FROM SHARED BUFFER indx(st) ID memid1.
      ENDIF.
    * Get the Header level from RFC shared memory
      CONCATENATE 'ZTESTVPRS_H' sy-uname INTO memid2.
      IMPORT lt_komk = comm_head_e
      FROM SHARED BUFFER indx(st) ID memid2.
      wa_komk_o = comm_head_e.
      IF sy-subrc EQ 0.
        DELETE FROM SHARED BUFFER indx(st) ID memid2.
      ENDIF.

  • Restricting Target quantity in sale order

    Dear Guru's
    In the Sale order I want to have a default order quantity as 1 irrespective of whatever material I enter.
    Please let me know how can I do this.

    Go to T.Code: VOV7 and in the item category which you are using
    In the general control you have field called
    Order Quantity = 1
    This indicator allows sales order line item unit (order Qty) as one (1), this is the usual case in case of contracts.
    It is relevant for WKN (Value Contract Item)
    Regards
    AK

  • How to restrict date flow to sales order

    i want to keep the required delivery date field blank when a sales order is created with reference to quotation.
    how to do it?

    Hi Santhosh,
       Use the badi CRM_SALES_BADI method Merge to implement your code.
    Regards.
    Manuel

  • Restrict Billing Block in Sales order

    I have a question. We can apply Billing blocks on Header and Item level in a sales order 'OR' document.
    we  blocked an User from removing Billing block  for Object V_VBAK_ATT ACTVT 43 on a Sales order for both Header and item level.
    She gets 'Authorization block' when she double click on item --> Billing documents--> and remove billing block (Field VBAP-FAKSP)
    But, Issue is, on the Sales overview screen of the sales order, she scrolls towards the right of the item and removes Billing block on Item. This time she's able to save the document and NO authorization block message.
    I checked , both are same field, as it should be, VBAP-VAKSP.
    Can you please advise? 

    Hi
    you can have the billing blick in order type ( VOV8) or in the billing type
    is it possible for you to have a different billing type
    in the sales order type you can have the billing block as default and incase if you want to service it you can remove it in the sales order
    or you can block the dealer for the sales  area in xd05
    and when ever you want to service unblock it
    reward if it helps

  • How to restrict Material Class in Sales Contract Doc

    Hi,
    I need to restrict Material Class in Sales order based on Item catagory, Material group4 and Sales contract Document type.
    If the above 3 fields having a particular value then the system should restrict all the other classes of that material and display only a particular class and it's related characteristics.
    If any one come across such a senario then pklease let me know.
    Regards
    Ajay

    Hi,
    You have to make few configuration settings before you actually restrict at the object level. The solution is clearly discussed in the below thread:
    how to restrict material master by material type  t-code MM01
    Hope this helps!!
    Regards,
    Raghu

Maybe you are looking for

  • How can i save multiple locations to my reminders app on the iphone 4?

    I want to be reminded to do a task when I arrive home. Is it possible to save my home location (and other useful locations) to the reminders app? This is more useful than guessing when I will arrive at a location and setting a reminder for then. If n

  • Wrong Profit Center on Material document (Goods Receipt PO for Asset)

    Dear SAP Expert, When our company upgrade our SAP version from 4.6C to ECC6, all Profit Center on Material document (Goods Receipt on Purchase Order for Asset) is filled by profit center DUMMY. This condition not happend in our previous version (4.6C

  • My notes on my iPhone 4s have disappeared.

    All of my 40+ notes are gone. I tried to sync via iTunes, to no avail. Can I restore from an earlier backup? Thanks!

  • Ap.thumbnails file doesn't get smaller

    when the underlying project is reduced. I have a project in which I removed ~ 70% of the files and noticed that the size of the AP.thumbnails file for the project remained constant at 231 MB. I created a new project moved all of the images to it and

  • Mount SMB share accessible by all users

    Hello, I aim to have a smb share accessible to all users. I've tried to mount with mount_smbfs ou autofs, but each time the mount is only accessible to one user and no right to group or others. This is what i've do with autofs : in /etc/auto_master /