Sales order item Qty check with sale plan qty

Dear all
How its poosible  - While creating sales orer system should  check sales order item qty, delivery date    with sales plan qty  for that period. If total sales order requirement qty greater than sales plan qty then system should give error msg.  System not consider stock & inward / outward mvt . only check plan qty.
in details
1>  Create Weekly sales plan   -  w.r.t  Material & Plant   -  ( T code u2013 MC87 )
  Eg .   Material  - FG001   , Plant 1001  ,   Week 11.2011  -  2000 Kg 
2>  Now creating sales order . system check  sales order item qty  & plan qty as per delivery date or week
Eg .  i> Sales order  no. 1 -  delivery week  u2013 W 11.2011   , item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1500 kg 
Requirement :  System check u2013 delivery week u2013 11  according to that  sales plan qty for that material & plant is  2000 kg ;
total actual  Sales order qty =  1500 kg . so condition is fulfill  system allow to create sales order.
Eg. ii> Sales order no. 2 u2013 Delivery week u2013 11.2001 ,  item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1000 kg 
Requirement :  System check u2013 delivery week u2013 11  according to that  sales plan qty for that material & plant is  2000 kg ; total actual  Sales order qty =  1500 + 1000kg =2500 kg .  so condition is failed  , ( sales requirement qty > sales plan qty ) system should not allow to create sales order, gives error msg.
Thanks & Regards
Pramod

Hello,
I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
You must place it in SBO_Application_ItemEvent
if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
                CheckAvailability();
Don't forget to disable the SBO Check Availability in the document's config form.
Sorry for my poor english and good luck
Chris.
Message was edited by:
        Christophe Vuignier

Similar Messages

  • Sales Order - Item Availability Check

    Hi All,
    Currently I am doing some integration work between SAP B1 and another ERP system.  The inventory data is maintained in the other ERP system and not in SAP B1. When I create a Sales Order in SAP B1, I need to replace SAP B1's default Item Availability Check with a customised routine.  Is there a way to trap the action and replace it with my own customised check using the UI/DI API?

    Hello,
    I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
    You must place it in SBO_Application_ItemEvent
    if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
                    CheckAvailability();
    Don't forget to disable the SBO Check Availability in the document's config form.
    Sorry for my poor english and good luck
    Chris.
    Message was edited by:
            Christophe Vuignier

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • BAPI for Sales Order item availability check

    hi all !!!!!!!!!
    May I know how to force SO item to perform AV check?
    What BAPI or function should I use (In custom program, not user-exit)?
    I use BAPI_SALESORDER_CHANGE to insert or update schedule lines but the confirm qty is always zero!!!! When I go into the SO to click the "Item Availability" manually, the AV check is run and qty is confirmed
    I am using product allocation
    thanks

    Hi,
    Could you please tell me how to use ISM_ITEM_FCODE_AVAILABLE_CHECK?
    I can't find any document of it
    I am using BAPI_SALESORDER_CHANGE in Z-program.
    I need to call ISM_ITEM_FCODE_AVAILABLE_CHECK after calling BAPI_SALESORDER_CHANGE???
    Thanks in advance

  • In sales order item level problem of sales unit.

    Hi All,
    When I create the sales order at that time at item level when I enter the sales unit to order quantity, it then replaced by base unit of that material.
    Also I have checked the unit conversion in material master, but no conversion is maitained for that one.
    Example: When I enter 12 MUN then it is replaced by 12 CS .
    But the user wants same unit that is 12 MUN.
    Please give the reply as early as possible.
    Thanks in advance.
    Regards,
    Vikram

    Hi vikram,
    first check the T-code of VA01 if any Enhancements is id don privosely , if it is don please deactivate the enahancement then process the transaction now.
    if want deactivate the enahancement Goto T-code  C-mod  give the enahancement name than it will opens the one pop window it will shows the existing project then select that project palce it into the C-mod intila screen than deactivate that project & prcoess that transaction than it will work fine.
    i think will helpfulll.

  • How to know if a Sales order item created with or without reference

    Hi,
    I am working on user exit USEREXIT_MOVE_FIELD_TO_VBAP, and I just wanted to know if there is a way to know if a sales order item is created with or without reference to a contract.
    I need to write the code in USEREXIT_MOVE_FIELD_TO_VBAP, however, when an SO line item is created with reference the userexit is being called twice and when the SO line item is created without reference the user exit is being called only once.
    My aim is to check if a SO line item is created with reference to a valid contract. If the item is without reference to a contract or the referenced contract is not valid, then I will have to determine the contract based on the customer contracts.
    Any help on this would be greatly appreciated.
    Best regards,
    Siva

    Hi Vindo,
    The Userexit USEREXIT_MOVE_FIELD_TO_VBAP is called twice when the SO line item is created with reference to contract. The first time the user exit is called there will be no value filled in vbap-vgbel and the second time it comes to the userexit then vbap-vgbel will have a value. I think CVBAK-VBELN will contain the reference if the so line item is created with reference and the value of CVBAK-VBELN contrains blank if the item is not referenced. Anyway thanks for your reply.
    Best regards,
    Siva

  • Creating new sales-order item with text using BAPI_SALESORDER_CHANGE

    Hi all.
    I want to create new sales-order item in an existing sales-order by using BAPI_SALESORDER_CHANGE. This works fine.
    I also want to enter item-texts for the new item in the same call, but this doesn't work.
    When I call the BAPI I do not assign an item-number for the new item, thus I have no item-number to assign to ITM_NUMBER in table ORDER_TEXT.  IF ITM_NUMBER is empty, it's treated as a header text....
    Any clues?
    Regards
    /Elisabet

    increment the last itemnumber and pass it to that.
    if they are following a sequence 10,20,30.
    find the next sequence and send it to the ITEMNUMBER field.
    or else you add the text after the Function call.

  • DIR link to Sales Order Item

    Hi Expert,
    How can I link a DIR or a document to a sales order item? In the sales order header level, there is a place to link a DIR or General object service to attach a document.
    Thanks,
    Yong Kim

    Hi,
    In my system only DIR type DRW can be link to VBAP .
    I open a Sales order in modification, select an item inside, then go to Extra/Document. I'll got a screen with the link ( look at the title of the popup, it should be 'Sales Document Item' ) . There i set a DRW DIR and save .
    After i go to table DRAD and look at the record for my DRW DIR and i found one for the sales order i just changed.
    Regards.

  • Duplicate planned order is generated with  one sales order item.

    dear :
    when the production order is confirmed with sales order item.the other new planned order is generated.
    the   requiremet quantity of sales order item  is  1,but the custstock  is 2 .display exception:26. in md04.
    please help me analyze it .
    best regards.

    Hi
    Please check rescheduling horizon in OPPQ(by default it would be 100).
    May be you would have shifted the dates of production order after converting from planned order which had crossed rescheduled horizon. This would generate additional planned order to maintain initial dates.
    If this is the case, increase Rescheduling horizon.
    Regards,
    Krishna Mohan

  • Bill Plan with Sales Order item rejected

    Milestone Billing Plan created.
    IMG Config Sales Order Item Reason for Rejection = BIC checked (Not Relevant for Billing)
    Add material on the (Billing Plan) Sales Order Item.
    Set the Item Reason For rejection (same reason as set in IMG config for BIC above)
    Create some Billing Plan dates (at the sales order header).
    [F3] back. You get an info message "Value-based differences in the billing plan cannot be allocated"
    Save the Order.. All is fine.
    If I do not set a reason for rejection on the item all is fine.
    Can anyone explain this ?

    Hi Friends
    I have resolved the problem myself. I have used sap note : 97272 and downloaded the utility/ correction program ZZUNREJE and ran it for rejected sales line item.
    The reason for rejection was successfully reversed without touching any of the associated POs.
    Regards

  • Sales order item quantity not rounded and allowing decimals with UoM EA

    Hi gentlemens,
    I noticed something strange in our SAP ERP system.
    When we enter a material in a new sales order item, we are allowed to enter quantity 1,5 EA (1 and half Each).
    But when I check the config of the UoM EA in table T006, the number of decimals (field DECAN) is 0 and the decimal place for rounding (field ANDEC) is also 0.
    As far as I remember from other other SAP system, there should be an error message when entering the quantity 1,5 EA saying that decimals are not allowed for this unit of measure.
    Can someone help and tell me wich error message or which rounding program should normally be active when entering decimals with uom EA ?
    Thanks and regards,
    BDT

    Hi Mani,
    Thanks for the thread reference. I found the related OSS notes yesterday evening but this was for procurement.
    Here the question I have is more for a sales item.
    The strange case we are facing is:
    In a sales order, we can enter a particular material as a standalone item with a quantity of 1.5 EA without any problem.
    But if we create the same new item as a sub-item of a previous one (filling UEPOS), with qty 1,5 EA, then a rounding is triggered by the system based on the T006 config.
    I am wondering if this is a problem with the SAP standard program or if we did anything wrong in the past in our system?
    Best regards,
    BDT

  • Change End date of billing plan/invoice plan in sales order item(fpla-erdat

    Hi Experts,
    Could you please help to me regarding this issue.
    I need to change  End date of billing plan/invoice plan  in sales order item  of  "billing plan" Tab.( FPLA-ERDAT) for all line items. It is not a one sales order,more than 1000 sales orders.
    How can i change those end date of billing plan for all line litems and all sales orders ( i have input file with sales orders, items, dates.)
    Thanks
    jaya

    Hi ramki,
    I tried with using  MASS  T.code ( bus2032 Object type).
    There are no field  related to Billing plan end date?.if case i done wrong ,tell me what are steps while using MASS T.code.
    now what i can do. or explain
    Thanks
    jaya

  • Credit Check for "Not Relevant" sales order items

    Hello All,
    I am having a situation where my client takes advance reservations almost an year in advance.
    The sales order items have schedule line category to not consume inventory and so the overall status on each line item is "not relevant". The credit status on the order is "not performed". Since the overall status is "not relevant", the sales order amount is not added to the credit master receivables.
    We have around 100K orders and I am trying to see if there is a good solution to do a credit check on all these orders.
    I am in a desperate situation and would really appreciate a quick response.
    Thanks very much for your help.
    AM

    Hi Shiva Ram,
    Thanks very much for your reply.
    When I change the schedule line category on the items, the overall status on the line item changes to "Open". The credit status of the order will be "not performed".
    If I were to create an advance order with items consuming inventory, it goes through a credit check with the existing configuration.
    AM

  • Billing Plan Tab required in Sales Order - Item Level

    Hi,
    I am trying to create a Sales Order, in which at Item level I also require Billing Plan Tab.
    This is for scenario Periodic billing & milestone billing.
    If you could also help with configuration & business process document of Periodic & milestone billing.
    my email id is [email protected]
    Thanks in advance.
    Warm regards,
    Rajesh Banka

    Hi Rajesh Banka,
    In sales order if you item category group is relevant for Billing Plan (Milestone) then you will get a billing plan tab for sales order item in Va01 T.code.
    You can go to MM02 and change item category group of material to Milestone billing in Sales org2. and then try creating order for the item using va01, go to item level you will get the billing plan tab.
    Reward if it helps
    regards
    srini

  • Project Revenue Plan Not Update from Sales Order Item

    I am generating a network and project from the sales order item using Assembly processing. I am using milestone billing on the sales order item and the milestones attached to the project network activities are appearing as billing blocks on the sales order item billing plan. However, the project revenue is not getting updated from the sales order billing plan. Can someone please help?
    I have deleted the billing plan on the billing WBS element and activated revenue planning update from sales order in cusomization for PS. I am looking at CNS41 under the project revenue sched in version 0. Is there a different report I should be looking at?
    Regards,
    Venkat.

    HI Venkat,
    You are looking at the correct report & I believe you have also done the necessary customization. If you create a sales order and reference it to a quotation, the related plan values in the WBS element are refreshed automatically.
    When the payment data is recorded, the terms of payment and the customer payment history are taken into consideration. One of the probable causes could be the credit limit of the customer might have been exceeded. Take help of your SD consultant & increase the credit limit for that customer (from the sales document), t-code FD32 if it is permitted in the business.
    After the new credit limit is set execute the following steps:
    u2022     Go to the t-code Change billing request (VA02)
    u2022     Open the required billing request
    u2022     Remove the account assignment of WBS element from each line item
    u2022     Save the billing request
    u2022     Reopen the billing request in change mode
    u2022     Reassign the WBS elements to all line items
    u2022     Now the changed credit limit will take affect
    u2022     Check the Planned Revenue for the said project in CNS41, it should get updated.
    Rgds
    Deepak

Maybe you are looking for