Userexit for quantity allocation

Dear All
Please suggest a user exit the the below scenario,
A provision in SAP to be provided for allocating quantity of the product  on a weekly basis on either a customer or a customer group.   User should have an tabular interface for allocating quantity
While booking the Sales order, after keying in the product, schedule date of delivery and the quantity (after material availability check), the system should: Check the pending quantity against the customer in allocation table. In case the customer is not found check for customer group.
Scenario 1
In case the system found a record for customer with pending quantity more than schedule quantity of the sales order. The system should:
•     Book the order
•     Reduce the pending qty (Pending qty - schedule qty)
•     Calculate the expected date of delivery to the customer.
Scenario 2
In case the system found a record for customer with pending quantity (more than zero) is less than schedule quantity of the sales order. The system should:
•     Throw a message to the user, stating the pending quantity available for the customer. And the Week when Rest quantity will be available.
•     On accepting: Change the schedule quantity
•     Book the sales order
•     Reduce the pending qty
•     Calculate the expected date of delivery to the customer.
•     On rejecting: Change the schedule quantity to zero
•     Return to initial screen of booking sales order
Scenario 3
In case the system didn't find a record for customer and neither the customer group. The system should:
•     Throw a message to the user, stating quantity not allocated for the customer.
•     Return to initial screen of booking sales order
Thanks
Goutam

Hi,
This is possible in standard SAP via Product Allocation settings.
Regards,
Shailendra

Similar Messages

  • Manual quantity allocation per sales order

    Hi All,
    The requirement is as follows.
    My client want users to allocate quantity for sales order manually so that they can control quantity allocation for sales orders when there is shortage of stock.
    We do not want to use product allocation for this, So can anyone suggest if there is any other way to allocate the stock manually for sales order.
    Thanks in advance,
    JM

    Hi,
    This can be acheived by enhancement.
    You can use userexit MV45AFZB -userexit_source_determination for this.
    You need to maintain the Z-table for all the bottleneck material with confirmation quatity column.
    So everytime when you create a sale order for bottleneck material, system will check this table & irrespective of any order quantity, it will confirm the quantities mentioned in the table.
    This way you can maintain the logic & fullfil the above requirement
    thank you

  • Userexit for SO Create/Change.

    Hi,
    Please tell me the userexit for the Sales Order Create/Chagne

    Hi,
    You can find the user exits in the include MV45AFZZ....
    Details are given below   :
    <b>User exits in the program MV45AFZZ</b>
    The user exits which you can use for modifications in sales document processing are listed below.
    •     USEREXIT_DELETE_DOCUMENT
    This user exit can be used for deleting data which was stored in a separate table during sales document creation, for example, if the sales document is deleted.
    For example, if an additional table is filled with the name of the person in charge (ERNAM) during order entry, this data can also be deleted after the sales order has been deleted.
    The user exit is called up at the end of the FORM routine BELEG_LOESCHEN shortly before the routine BELEG_SICHERN.
    •     USEREXIT_FIELD_MODIFICATION
    This user exit can be used to modify the attributes of the screen fields.
    To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP. If a field has no field name, it cannot be allocated to a group.
    The usage of the field groups (modification group 1-4) is as follows:
    •     Modification group 1: Automatic modification with transaction MFAW
    •     Modification group 2: It contains 'LOO' for step loop fields
    •     Modification group 3: For modifications which depend on check tables or on other fixed information
    •     Modification group 4: is not used
    The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.
    This FORM routine is called up by the module FELDAUSWAHL.
    See the Screen Painter manual for further information on structuring the interface.
    •     USEREXIT_MOVE_FIELD_TO_VBAK
    Use this user exit to assign values to new fields at sales document header level. It is described in the section strong> "Transfer of the customer master fields into the sales document".
    The user exit is called up at the end of the FORM routine VBAK_FUELLEN.
    •     USEREXIT_MOVE_FIELD_TO_VBAP
    Use this user exit to assign values to new fields at sales document item level. It is described in the section strong> "Copy customer master fields into the sales document".
    The user exit is called up at the end of the FORM routine VBAP_FUELLEN.
    •     USEREXIT_MOVE_FIELD_TO_VBEP
    Use this user exit to assign values to new fields at the level of the sales document schedule lines.
    The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
    •     USEREXIT_MOVE_FIELD_TO_VBKD
    Use this user exit to assign values to new fields for business data of the sales document. It is described in the section strong> "Copy customer master fields into sales document" .
    The user exit is called up at the end of the FORM routine VBKD_FUELLEN.
    •     USEREXIT_NUMBER_RANGE
    Use this user exit to define the number ranges for internal document number assignment depending on the required fields. For example, if you want to define the number range depending on the sales organization (VKORG) or on the selling company (VKBUR), use this user exit.
    The user exit is called up in the FORM routine BELEG_SICHERN.
    •     USEREXIT_PRICING_PREPARE_TKOMK
    Use this user exit if you want to include and assign a value to an additional header field in the communication structure KOMK taken as a basis for pricing.
    •     USEREXIT_PRICING_PREPARE_TKOMP
    Use this user exit if you want to include or assign a value to an additional item field in the communication structure KOMP taken as a basis for pricing.
    •     USEREXIT_READ_DOCUMENT
    You use this user exit if further additional tables are to be read when importing TA01 or TA02.
    The user exit is called up at the end of the FORM routine BELEG_LESEN.
    •     USEREXIT_SAVE_DOCUMENT
    Use this user exit to fill user-specific statistics update tables.
    The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.
    Note
    If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.
    •     USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Working with User Exits
    Updating the document flow
    The total quantity to be billed is transferred to the sequential data record. Quantities which have already been billed are managed within the SAP system. This process is influenced by user exits. User exits directly influence the update of compressed document flow VBAPF in the system. This document flow accumulates quantities which have already been billed and compares them to new billing quantities. A new billing document is then created with the following quantity:
    Quantity to be billed = New quantity - quantity already billed
    Using user exits, you can specify the keys to which records of the compressed document flow are to be stored.
    santhosh

  • Quantity Allocation

    Hi,
    We are in the process of finalizing our blue print,Need more
    clarification on the "Procurement Quantity Allocation". It has been
    identified as not a standard feature of SAP,would like to know the
    possibilities from experts.
    Our core business falls in the category of tyres trading,facing a problem in
    allcating quantities since supply is less than demand. As a business
    practice our procurement department collect the orders from all the
    sales man every month,consolidate it as a single order and pass it on
    to supplier.Our lead time is normally 90 days from the date of order .
    The same practice will be followed every month. Supplier will come back
    to us based on the availability and many times the quantities are less
    than requested. We need to allocate this quantity to various salesman
    based on various factors and make sure that this is the qty available
    for him for the 4 th month(if we are ordering in November it is for
    march month sales).
    If this practice is not followed strictly , many times the person
    requested the quantity will not be getting his allotment since the
    sames is already booked by the other sales persons.
    Either the person who has ordered is not selling it ends up in
    increase of stock or the person who has not ordered selling it with out
    allotment.
    We expect our system will be accessed from more than 15 countries
    it is not practially possible to control it manually. Would like to
    hear it from you how the same business process can be mapped into SAP
    and controlled effectively. The following depicts step wise details
    1) Purchase requisition from multiple Sales man
    2) Consolidated as a single RFQ and pass it on to supplier
    3) Based on qty allocation from supplier allocate it to multiple
    sales man
    4) Send P.O to supplier and follow up with shipments
    5) When the sales people are trying to book Sales order against the
    pending P.O control it from allocation
    Thanking You
    Karuna

    Hi,
    This is possible in standard SAP via Product Allocation settings.
    Regards,
    Shailendra

  • BAPI for product allocation Check gATP

    Hi all,
    I read in the SAP documentation that we can use gATP on APO to check order item coming from non R/3 OLTP on product allocations.
    Is someone test it, which BAPI or BAdi do we use?
    Many thanks in advance.

    Hello,
    Following enhancement is available for Product allocation.
    Maintain Enhancement Projects for Product Allocation
    In this IMG activity, you can edit customer exits for the global availability check.
    Product allocations
    The enhancement for the initialization is APOQT001 .
    The user exits for product allocations are divided into two different call sequences:
    Product allocations is the requirements check against the product allocation time series from planning. A complete check is executed for this call sequence.
    The enhancements for product allocations are:
    APOQT010 copy parameters
    APOQT012 product allocations control
    APOQT021 product allocations
    APOQT022 consumption at beginning situation
    APOQT023 order consumption
    APOQT032 results control
    APOQT033 sequence of product allocation procedures
    APOQT007 product allocation assignment of partial deliveries
    APOQT018 adjusting field catalog
    The comparison adjusts the results of product allocations to the results of the other basic methods. This adjustment is necessary when product allocations is not the last basic method executed.
    The enhancements for the comparison are:
    APOQT011 copy parameters
    APOQT014 product allocations control
    APOQT024 consumption
    APOQT034 results control
    APOQT035 sequence of product allocation procedures
    The sequence of the basic methods is configured in the check instructions.
    When comparing, the entries in the table for the product allocation assignment and the temporary quantity assignments (delta records) are adjusted to the final results of the ATP check.
    If the behavior of product allocations is changed by the user exits, the behavior of the comparison must be adapted accordingly in the corresponding user exits!
    Thanks and Regards

  • BADI or Userexit for ME2Xn for VERSION

    Hello,
    I want to know which is the BADI or USerexit for which in ME22n what ever the changes made in PO,Netprice or Delivery date it should create a NEW VERSION number,only if the Netprice is changed,new version is getting genarated....can any one help me regarding this please?
    Moderator message: please work yourself first on your requirement, search for available information.
    Edited by: Thomas Zloch on Dec 1, 2010 11:43 AM

    List of all U-Exists for ME22N:
    AMPL0001            User subscreen for additional data on AMPL
    LMEDR001            Enhancements to print program
    LMELA002            Adopt batch no. from shipping notification when posting a GR
    LMELA010            Inbound shipping notification: Transfer item data from IDOC
    LMEQR001            User exit for source determination
    LMEXF001            Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001            Customer-Specific Source Determination in Retail
    M06B0001            Role determination for purchase requisition release
    M06B0002            Changes to comm. structure for purchase requisition release
    M06B0003            Number range and document number
    M06B0004            Number range and document number
    M06B0005            Changes to comm. structure for overall release of requisn.
    M06E0004            Changes to communication structure for release purch. doc.
    M06E0005            Role determination for release of purchasing documents
    ME590001            Grouping of requsitions for PO split in ME59
    MEETA001            Define schedule line type (backlog, immed. req., preview)
    MEFLD004            Determine earliest delivery date f. check w. GR (only PO)
    MELAB001            Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1            Enhancement to Document Overview ME21N/ME51N
    MEVME001            WE default quantity calc. and over/ underdelivery tolerance
    MM06E001            User exits for EDI inbound and outbound purchasing documents
    MM06E003            Number range and document number
    MM06E004            Control import data screens in purchase order
    MM06E005            Customer fields in purchasing document
    MM06E007            Change document for requisitions upon conversion into PO
    MM06E008            Monitoring of contr. target value in case of release orders
    MM06E009            Relevant texts for "Texts exist" indicator
    MM06E010            Field selection for vendor address
    MMAL0001            ALE source list distribution: Outbound processing
    MMAL0002            ALE source list distribution: Inbound processing
    MMAL0003            ALE purcasing info record distribution: Outbound processing
    MMAL0004            ALE purchasing info record distribution: Inbound processing
    MMDA0001            Default delivery addresses
    MMFAB001            User exit for generation of release order
    MRFLB001            Control Items for Contract Release Order
    best regards.

  • ATP check partial Quantity allocation to Sales Orders

    Hi,
    Our client has three different sales order types for processing sales differently for the same materials.
    While doing ATP check they have a order of priority i.e ZOR1 -> ZOR2 -> ZOR3 with ZOR1 highest priority.
    For sales order type ZOR2 currently they donot have partial quantity allocation to sales orders.i.e if two orders, Order 1 created with 100 Qty and other Order 2 with 50 Qty and if ATP is 50 Qty.
    System is allocating material to Order 2 which has order quantity 50 ( Which equals ATP Qty )
    Now the client requirement is to configure system such that it does partial allocation to Order 1 ( order qty 100, where as ATP Qty is 50 ) i.e system should allocate even partial quantity to sales orders, that too in FIFO ( system should allocate ATP qty to order created first then next and so on )
    Please let me know what changes i need to do to achieve the above functionality in SAP system.
    Thanks
    Venkata Rama Reddy.K

    Dear Venkat,
    Please check the customer master for the customer which you have maintained in the 1st order. If the customer allows partial delivery, them the system will allocate the stock to the order which is created at first.
    At the time of ATP check(In Availability Screen), you do need to choose, One-time or System proposal, which will allocate the stocks partially to the 1st order as you don't have enough stock.
    Check out the settings in the customer master (for the customer in the 1st sale order) under Shipping Tab.
    Partial delivery per item  D/A/B
    Max. partial deliveries    >0
    (And more thing, you mentioned that sales document type is having priority. As of I know - there won't be any setting which will set particular sales document type with high priority. If you are really doing that kind of setting - update the same in this forum - it may help others..)
    Hope it may help you.
    (Venkat: Has your issue solved? Kindly update in the forum - if your question is answered)
    Thanks,
    Venkatesh.S.P.

  • Userexit For TCODE J1IJ depot excise invoice

    hi
    I want to know is there any userexit for depot excise invoice. That we can use to check weather excise entry date that is (J_1IRG23D-CPUDT) is equal to likp-WADAT_IST . Any info will be really helpful.
    Thank you

    Hi,
    Use this program SAPMJ1IJ in this program there are 4 includes.
    First try with  MJ1IJF01
    So check with your abaper which exit is working in this include.you can do it by setting break-point.
    Also check other includes MJ1IJTOP  MJ1IJO01  MJ1IJI01
    Thank you,

  • AFS ARun: sales order not been selected for the allocation run.

    Hi,
    I am setting up the Purchase-to-Order (similar to Indiv PO item sales order) Process for SAP AFS.
    When doing the Allocation Run (trx J3AT) after Goods receipt of Sales order stock, I get an error that ARun terminated because no requirements were selected. The delivery check report (/AFS/LIEF_CHECK) indicates that the sales order has not been selected for the allocation run.
    For this process, I have set-up an Allocation type with
    1.     Requirement selection that does not exclude MTO/PTO orders
    2.     Set-up stock selection which includes physical stock type for MTO/PTO orders to the customer special stock MSKA with the segment KALAB.
    Can someone suggest what I may have missed?
    Regards,
    PD

    Hi Pankaj, I have same exact issue. How did you fix this ?
    Thanks,
    Mahesh

  • Best practice for "Quantity" field in Asset Master

    Hi
    I want to know what is the best practice for "Quantity field" in asset master. It should be made displayed only or required field in Asset Master creation.
    Initially I made this field as required entry. So user entered 1 quantity. At the time of posting F-90, he again entered quantity. So my quantity in asset master got increased. Hence i decided to make that field display only in asset master creation.
    Now i made that field as display only in asset master creation. At the time of posting F-90, that quantity field is not coming only. I check my field status group for posting key as well as GL account. Its optional field. Inspite of that user is able to make entry in F-90. Now quantity field is '0' only in asset master even though there is some value in asset.
    Please help what is the best practice wrt quantity field. Should be open in asset master or it should be display only.

    Hi:
               SAP Standard does not recommend you to update quantity field in asset master data.  Just leave the Qty Field Blank , just mention the Unit of Measure as EA. While you post acquisition through F-90 or MIGO this field will get updated in Asset master data automatically. Hope this will help you.
    Regards

  • I am facing problem while working for userexit for vendor master and Editor

    Hi,
    I am working one userexit for vendor master. My objective is after MK01 transaction, I want to attach MM01 transaction using userexit SAPMF02K on IDES version.
    1) Function module is EXIT_SAPMF02K_001 and Include is ZXF05U01.
      while duble click on Include is ZXF05U01, I am getting below error.
      (Program names ZX...are reserved for includes of exit function groups).
    2) Second userexit is Menu exit.
        I want to create a sub menu in ABAP Editor under Utilities->Customer Exit.
       If double click on Customer exit then MM01 should be called.
       So I got one userexit SEU00001  and Function module under that EXIT_SAPLEDITOR_001  and incluse is ZXSEUU21
       If I double click on ZXSEUU21 then same error getting displayed
       (Program names ZX...are reserved for includes of exit function groups).
    Can any one help me to resolve this.
    Waiting for quick response.
    Best Regards,
    BDP

    Hi Bansidhar.,
    If you have created the include with same name and implemented youe logic , then it should stop in your include when you have put breakpointin it.
    Please try to find the case in  which you user exit is called .
    It is not necessary that you include will be executed in all cases , please try to use data which is suitable for your case.

  • How to create a info structure for product allocation functionality

    Hi Experts,
    how to create a info structure for product allocation functionality
    For allocating fixed quantities to the specified customers at sales order
    Especially i need help in selecting the key figures and key charecterstics for at mc21 and mc24 t.codes(source feilds)
    plase provide product allocation functionality with screenhots
    thanks in advance
    rp
    Edited by: rajendraprasad vasam on May 21, 2008 2:19 PM
    Edited by: rajendraprasad vasam on May 21, 2008 2:19 PM
    Edited by: rajendraprasad vasam on May 21, 2008 2:20 PM

    Hello,
    please have a look at the infostructure S140 in transaction MC23 and MC26.
    this is the standard infostructure for product allocation.
    I hope that the information are helpful.
    Regards
    Claudia

  • Is there any userexit for MIR7 and   MIRO transaction?

    Hai friends,
           Is there any userexit for MIR7 and MIRO transaction at the time of pressing "save as completed" or "save" button. I want to check the sales certificate and invoice verification for the document number entered in MIR7 and MIRO.
    Regards,
    safiq
    NOTE:useful points will be rewarded.

    hi,
    these r the exits related to mir7.
    Transaction Code - MIR7                     Park Invoice
    Enhancement/ Business Add-in            Description
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
      Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification
    put a break point in each exit,like break username and test the transaction .

  • Release Procedure for Quantity Contract

    Dear All,
    We have a business requirement to ensure that Quantity Contracts are released by the Account Receivable Accountant before the Sales Support Staff can create Sales Orders against them.
    Process : Create Quantity Contract (VA41) -> Release Contract (VKM3)->Create Sales Order (VA01)
    Currently, users can create sales order against the quantity contract before the contract has been released.
    I need guidance on how to implement system control to prevent this creation of Sales Orders before Quantity Contracts are released..
    How can i configure release procedure for quantity contract?
    Any assistance will be appreciated.
    Many Thanks

    Hi
    There is a concept of User Status / Status Management in SAP. By using this you can set status as default that is Blocked, and then the authorised person can release the document, only after that a person can create an Order, with reference to that Contract.
    The Customisation setting is in :- IMG> sales and Distribution>Sales > Sales Document>Define and assign User Profile(T Code is BS02)
    To know more about this you can search the Forum, also check the below given Link:-
    [http://web.mit.edu/sapbiz/docs/Explanation%20of%20Status%20Management%20functionality%20v3.doc]
    [http://help.sap.com/saphelp_crm40/helpdata/en/73/29943a7acb9023e10000000a114084/content.htm]
    Hope this will help you.
    Regards
    Amitesh Anand

  • VA01 userexit for PO duplication check

    Hi Experts,
    I have an urgent requirement regarding PO duplication check and I need to know if there is a userexit for VA01 where I can perform PO duplication check. This PO duplication check will consists of fields VBAK-KUNNR, VBAK-BSTKD and VBAK-BNAME.
    Points will be awarded. Thanks in advance.
    Regards,
    Leo

    hi,
    check the include MV45AFZZ...It has number of userexits....put a breakpoint and check..
    Regards,
    Nagaraj

Maybe you are looking for