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

Similar Messages

  • 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

  • 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

  • Sales orders with availability check?

    Is there any transaction code to generate list of sales order /open orders with respect to availability check ( with the combination of organizational data)?.  will anyone share your expertise pl.

    Have you tried with VA05 where you can see tabs like
    -  Open Order quantity (quantity not yet despatched),
    -  Confirmed Quantity
    -  Status of the order (Partially delivered, Being processed etc)
    thanks
    G. Lakshmipathi

  • Problem in sales order Item availability

    User created sales order with 5 materials, out of this 5 material first one material X not appear in MD04 transaction.
    I try to re activate the item availability in sales order,but system not showing the availability control screen.
    but in schedule line tab system show the order qty and confirmed qty on request dalivery date.
    If I enter same material X in new sales order or same sales order once again it’s working properly.
    Like to know the root cause for this issue and any solution to avoid this issue in future.
    Thanks,
    Karthikeyan R 

    Karthikeyan,
    This is why the SO item does not appear in MD04.
    You can manually enter KSV in VA02, if you are sure this is the proper RqTy.
    The most likely reason this field is blank is that a user manually removed it.  In general, this field is 'determined' automatically during Sales order processing in one of several ways.  However, in most implementations, a user can remove this entry, and the system will not repopulate unless the sales item category is somehow altered (which can also happen in a number of ways).
    If a user did this manually, you can probably see this in the change log.  VA03 > Environment > changes.
    Beyond this attempt at finding a root cause, it is not usually time well spent to troubleshoot something that has only happened once.  If it happens 'often', you may have to revisit.  Unfortunately, the NEXT most common root cause that I have seen is 'enhancements', which can be a bear to troubleshoot.
    Best Regards,
    DB49

  • Automatic Item availability check on Sales Order

    Hi,
    We use SAP B1 9.0 PL 08 HF1
    I have two questions:
    1.
    When Automatic availability check is activated on Sales Order in Document Settings, there will pop-up a windows for each sales order line which cannot be delivered.
    My question is, since we could have more than 100 item lines in one order, and we have maaany orders, this pop-up is taking to much time. Is it possible to define one alternative (e.g. "Change to Earliest Availability") as standard, and avoid the pop-up window?
    2.
    We also use B1if to import orders in SAP B1 using XML files. Is there any way we could get B1if to use one of the alternatives from the Item Availability Check when importing the order lines? Right now, the imported order lines will have the exact same date on all lines.
    Please advice,
    Kind regards
    Kjetil Sandvik

    Hi,
    1. I don't think it is possible to change system design. Better remove this function to avoid waiting time, if not necessary.
    2. Not sure about second question.
    Thanks & Regards,
    Nagarajan

  • 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

  • Sales order item report based on results analysis key and status

    Hi,
    I am trying to find a a report to generate list of sales order items with following selection
            -invoicing status -invoiced/not invoices (other status)
            -result analysis key assigned to this item (VBAP-ABGRS)
            -system status /released/teco
    Basically i am CO consultant and not so familiar with the SD statuses. I tried VA05 and V.26 but all required selections are not available in these reports.
    If no standard report is available in ERP, i would like to have it in BI. Can some help me with table fields for statuses.
    Thanks in advance.
    Regards
    Raghu

    Hi Raghu
    Go to SE16 and give VBUK table and execute it there you can select the following feilds and then check wheather they are meeting your requirements or not.If they are meeting your requirements then create a new Z report by copying standard VA05 key feilds. and include the other feilds which you need.So you take your ABAP team help
    Billing status     FKSTK
    Posting Status  BUCHK
    Overall status  GBSTK
    Document category VBTYP
    Regards
    Srinath

  • Cancel Confirmed Quantity in Sales Order Item (VA02)

    Dear All,
    I am having the following scenario :
    Customer have created a Sales Order, item 10, schedule line 1 with quantity 120.  The delivery date is 2011.12.22. 
    They have confirmed the quantity using the "Check Item Availability" function. 
    They have then changed the delivery date from 2011.12.22 to 2011.12.23.  The problem arises that in the "Availability Overview", the system still show the confirmed quantity is on 2011.12.22.  It doesn't release the confirmed quantity after we have changed the delivery date.  And what is worst is the system is prompting me that no stock is available on 2011.12.23.
    Does anybody knows how to release the confirmed quantity in the schedule line.  I have tried in VA02 by modifying the schedule line details.....  but does not work..
    Thanks.

    Hello,
    One easiest way is to reject the line item and add a new line, make the delivery date as 23rd. Once you reject the line item the confirmed schedule line get reversed.
    You can try with CO09 also.
    Regards,
    SAM

  • Ignore the number of schedule lines in sale order item when run MRP

    Dear All,
    I have a problem when I create production order (discrete manufacturing)
    When I create a sale order with one sale order item and 3 schedule lines for this sale order item.
    After that, I run MRP for this sale order, what I get is 3 planned orders for 3 schedule lines. It means that I will have 3 production orders for 1 sale order item.
    I want  create one production order for one sale order item whatever the number of schedule lines in sale order item.
    I think I have to config in MRP. Please help me.
    Thanks in advance

    Dear
    Check in OPPQ then look in Master data Availability Check & strategy for material also check whether u have maintained strategy for same material and see did u extended sales views for other material
    As u said 3 schedule lines for this sale order item check whether u have extended sales views for next material
    With Regards
    Pushpalas

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

  • Unable to skip Item Availability Check form

    Hi,
    I am trying to skip the Item Availability Check dialog (FormTypeEx = "65050") which comes up in Sales Order if an item's available quantity is less than ordered quantity. I know I won't be able to completely skip it since it's a system UI form, so I tried to do "Click" on the OK button as soon as form 65050 is activated, using the following code:
    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE and pVal.FormTypeEx = "65050" Then
       objForm.Items.Item("1").Click()
    End if
    Seems simple enough, and the form does close as I wanted it to. But the events that followed backed me into a corner, almost making me think this just can't be done.
    First, after the form closes, the focus is back at the quantity column of the Sales Order form (139). If I tab out of that field, another Item Availability Check form opens up, as if the first one never opened, unlike if I clicked on the "OK" button on form 65050 manually through UI, the second time I tab out of the quantity field, the 65050 form won't pop open again.
    So I thought instead of having the focus stay in Quantity field, why don't I force the entry of the Unit Price field, which won't trigger form 65050 to open again. And it did not open form 65050 just as I expected. Great, just when I thought everything is working the way I want it to, as soon as I enter a price in the Unit Price field, then tab away from there, the Order Quantity value keeps getting changed from my last value to the previous value. That is, by default the qty is 1 when a new line is added. If I change the qty to 5, after I click on OK in form 65050, and click into Unit Price (all thru code), then I enter a unit price, and when I tab out of the price field, the order qty is changed from 5 back to 1. At that point if I try to force 5 back into the qty field, then form 65050 keeps popping up in a loop.
    I tried to use Event Logger to debug, what I realized is that clicking OK button on form 65050 thru UI and SDK generate different event sequences. If I do it in SDK, even though I have the click action in the After Action of FORM_ACTIVATE event, the event logger shows the FORM_ACTIVATE entry of form 65050 after all the entries of CLICK and ITEM_PRESSED and even FORM_UNLOAD as a result of my "clicking" of the OK button. Maybe this is why coming out of that form, tabbing out of qty field still triggers it to open again, because B1 doesn't recognize it as having opened before?
    Anyway, hope this long description make some sense, but I certainly am running out of ideas to get around this. Any help would be much appreciated!

    i would try some situations - for example freezing/delfilters after leaving the quantinty field.
    when you use a function like i post here no events will get executed - its like a "silent" mode
    Public Sub DelFilters()
        Set oFilters = New SAPbouiCOM.EventFilters
        appl.SetFilter oFilters
    End Sub
    maybe this will help you !
    regards & nice weekend
    (iam not sure if iam online today again)
    David

  • Sales Order Item Shipping point (VBAP-VSTEL) value in APO table

    Hi,
    I am looking for Sales Order Item Shipping point (VBAP-VSTEL) value in APO.Can I  get this info in APO ?
    This information is not available in table /SAPAPO/SDORD or  /SAPAPO/SDFIELD.
    Basically table /SAPAPO/SDORD is completely blank. Table /SAPAPO/SDFIELD has entry for Sales Order Item but not for VSTEL. Shipping point is there in the Catalog table in ECC and I can see that it is getting imported to APO but why it is not avaibale in SDFIELD table.Any idea ?
    I cheked table /SAPAPO/SHIPPING also for the guid (Item guid) but not found any entry .
    Please help.

    RKS,
    Most data in SCM is not stored in tables, it is stored in LC.  In general, it is not the best idea to use APO for creating custom reports against  transactional data.  You do such reporting in the OLTP, and you use the standard SAP programs to keep these systems in synch.
    Some SD auxiliary data is sometimes stored in /SAPAPO/SD_DOC.and /SAPAPO/SDFIELD.  Check here, you might find something useful.  No guarantees......
    Best regards,
    DB49

  • Sales Order Item configuration

    Hi,
    In my scenario, if there is any change in Sales Order Item configuration (characteristics), i have to create an entry in custom table.
    TCode - VA02
    How do i check if it is changed or not and in which exit?
    Thanks,
    Vetri

    Hi Vetri,
    The tables I told you about are only relevant for old values. For the new values after changing the document and before saving the document will be available in some internal tables and only the technical team will be a competent team to find out how the new values can be found out during run time.
    The checks you want to enable can be enabled in the user exit USEREXIT_SAVE_DOCUMENT or USEREXIT_SAVE_DOCUMENT_PREPARE based on the scenario.
    You can reward if this helps you.
    Message was edited by:
            Navaneetha Krishnan

  • Pop up when Sales order item partner is changed

    Hi,
    Can we get a pop up when a partner function in sales order item line is changed which should display the text maintained for the customer in XD02??
    If so please let me know..
    Thanks & regards,
    Santhosh
    Edited by: SS on Jun 8, 2009 3:27 PM

    Hi..
    Put option C there & save.
    This filed defines result of ava chk in sales order.
    (Rule for transferring the results of the availability check
    Specifies for a particular sales area how the system reacts when the availability check determines that the inventory is insufficient to satisfy the order quantity.
    Use
    When inventory is insufficient, the system can react in one of two ways:
    The system presents a pop-up window and you choose from different alternatives, or
    The system automatically proposes one of the alternatives (no pop-up window appears)
    Example
    The system can, for example, automatically confirm the delivery proposal. The delivery proposal consists of the quantity that is available for delivery by the requested delivery date.)
    Also make sure in OVZ8 you have ticked Av Chk for your schedule line category
    Regds
    MM
    Edited by: MANOJ  MAHAJAN on Oct 26, 2009 12:21 PM

Maybe you are looking for

  • My Itunes wont let me add music to my phone

    Yesterday, I went to Target and bought From Death To Destiny (Asking Alexandria's new album) I then added it to my itunes but it wont let me add it to my phone.. I have Windows 8 I dont know if that has ANYTHING to do with it but its frustrating me b

  • Firefox Safari Broken by 10.5.6? HSBC Facebook + Others not working!

    Hi All, This is driving me mad. And I've tried everything I can think of to resolve it. Facebook, hsbc, warehouseexpress and a few other sites that I can't remember at the moment aren't functioning properly on my computer: PPC G5, 10.5.6. My default

  • Payment Advise By Email  or FAX

    Can any one tell me how to send Payment Advise by email or Fax.   My req is, first i have find out the payment advise pgm or t-code and then how to send that by email.   Pls give t-code and where i can find the option to send email. Thanks in advance

  • SADMIN User-Id failed logins while running srvrmgr

    Hi All, Need help with one of my Customers running srvrmgr command against gateway. Customer had installed siebel environment 15 days back and it was working fine. Suddenly, from easter week end seeing sadmin id failing and locking out. Customer is r

  • SOAP -- XI -- JDBC-Sender

    Hi All, i am doing a synchronous scenario from Webservices to JDBC. I try to get Data from the SQL-Database (SQL-Server). But my problem is, that i have more than one SQL-Statement . I am writing a program which call the Webservice. The Webservice is