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

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

  • 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

  • Regarding skip the availability check in BAPI_PO_CREATE1

    Hi Abapers,
         Can you suggest any enhancement, to skip the availability check in function module BAPI_PO_CREATE1?
    (My requirement is, availability check should not be triggered, because delivery has been completed already).
    Regards
    Subash
    Edited by: subash Arthanari on Dec 2, 2008 10:56 AM

    u can pass field  Delivery Completed" Indicator
    structure BAPIMEPOITEM
    field   NO_MORE_GR
    like:-
    wa_item-material = p_matnr.
    wa_item-plant = '3200'.
    wa_item-quantity = 100.
    wa_item-conf_ctrl = 'Z01'.
    wa_item-ACKN_REQD = 'X'.
    WA_ITEM-ERS = ''.
    wa_item-NO_MORE_GR= 'X'.
    APPEND wa_item TO it_item.
    wa_itemx-po_item = p_int.
    wa_itemx-material = c_x.
    wa_itemx-plant = c_x .
    wa_itemx-stge_loc = c_x .
    wa_itemx-quantity = c_x .
    wa_itemx-item_cat = c_x .
    wa_itemx-acctasscat = c_x .
    wa_itemx-conf_ctrl = 'X'.
    wa_itemx-ACKN_REQD = 'X'.
    WA_ITEMX-ERS = 'X'.
    wa_itemx-NO_MORE_GR= 'X'.
    APPEND wa_itemx TO it_itemx.

  • Item Availability Check on Sales Order

    Hi Experts,
    I have 2 companies in SAP.  On one of the companies, if I try to place a Sales Order for 10000 units of Product X and there is insufficient stock, I get the error message "Quantity falls below the minimum stokc level [Message 131-14]"
    On another company if I repeat the same scenario, I get an "Item Availabilty Check" window appearing with 5 options:
    1 - Continue
    2 - Change to Availabile Quantity
    3 - Display Quantities in Other Warehouses
    4 - Display Alternative Items
    5 - Delete Row
    Which parameter cause the difference in system behavior?  Ideally I would like both companies to show the "Item Availabilty Check" window.
    Thanks
    Greig

    Hai
    Try this
    Administration ->sys ini->document setting -> per document - > sales order ->
    enable this option ->Activate Automatic Availability Check

  • 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

  • Changing Schedule Line Category after checking Item availability

    Hi Expert,
       I would like to change the schedule line category according to the result of item availability check, i.e. change to another self defined schedule line category in case confirmed qty < order qty.
       Could any one please suggest where I can implement this logic? Which user-exit is required to modify? Thanks a lot!

    hi,
    U can change the SCH line category manually in sales order
    Menu path:
    Spro-->Img> sd> sales -> sales documents>sch lines-> assign sh line categories---->
    here find ur current combination
    eg:
    ITem cat+ MRP TYPE= SCH LINE CAT + MANUAL SCH LINE CAT
    <b>TAN + ND=CN+---<u><i><b>here u give teh sch lien cate u want</b></i></u>----</b>
    this will aloow u changing sch line cat manually in sales order
    regards,
    Arun prasad

  • Disable the Item Availability Button based on Order type and Item category

    Hi ,
    My requirement is to disable the Item availability check button in VA01 based on the Order Type & Item category. Is there any user Exits/ Badi / FM available for this.
    Thanks in advance.
    Srinivas.

    Hi,
    Although it is an old post I need to answer for people who search an answer to the same type of question. To hide a field
    you can use transaction variant 'tcode:SHD0'. But it is not based on Order type and Item category. May be you can use
    USEREXIT_FIELD_MODIFICATION form in user-exit MV45AFZZ. You can loop at screen and set screen-active = 0 in fields
    where you want them to be inactive.

  • COHV (Availability check issue - Urgent)

    Dear All,
    In COHV, when i select the LIST - Operations, in the Mass Processing tab i am unable to select Material Availability check option in the Functions drop down box. Is there anyway i can get the function - Material Availability Check when i select Operations list?
    The reason for this is because, at the moment, the collective Av. Check run is taking place at the order header level & hence the materials are committed to orders which have earlier basic start date. There is no option for me to select based on operation date. This is a real problem as material required by orders having earlier requirement is not gettting the materials.
    If anyone has any alternative solution to overcome this problem, pleaset let me know. I want the Av. Check to be based on Operation date & not at order basic date.
    Hope my problem is clear, await inputs.
    Vivek

    Can anyone let me know how i can do an availability check based on Operation date using COMAC or any other transaction?
    Edited by: Vivek on Mar 11, 2008 1:34 PM

  • Item Availabilty Check

    Hi Guys
    I am having a issue with the item availability check that gets triggered in the sales order, if you use the "Copy To" Functionality from Sales Quotation to Sales Order then the check doesn't get triggered, is there a way of triggering that check on every add or update of a sales order? Currently the check gets triggered by changing qty on order, is there a way of simulating this on every order even if the qty hasnt changed or any other solution that will trigger the  item availability method? Maybe through Transaction Notification?
    Thanks

    Hello Euston,
    But if you use copy to you can catch the button click-event on the copy to button and check the Availability and if this is negative give a message and cancel the event... Or allow the user to copy to an order but catch the buttonclick event (save) on the savebutton.
    Hope this helps.
    Regards, Teun

  • Disable Item Availability Button based on Order Type and Item category

    Hi ,
    My requirement is to disable the Item availability check button in VA01 based on the Order Type & Item category. Is there any user Exits/ Badi / FM available for this.
    Thanks in advance.
    Srinivas.

    Hi ,
    the screen 4050 in program SAPMV45A controls this push button
    In screen 4050 goto ->  MODULE BUTTON_AUSWAHL. ->PERFORM BUTTON_AUSWAHL. ->  ENHANCEMENT-POINT BUTTON_AUSWAHL_10 SPOTS ES_SAPMV45A.
    write the code to hide the button in this enhancement point
    using the screen-name and screen-group2
    Hope it helps you solve your problem
    Reward if helpful
    Regards
    Byju

  • Forms Services availability checking for BIGIP Load Balancer

    We are load balancing across a number of 10.1.2.2 Forms servers using a BIGIP load balancer. Currently our load balancing is done based on which server has the "least connections" to the BIGIP. So far we have been using the following test URL to allow BIGIP to check the availability of the Forms Services on each server.
    http://server:port/forms/frmservlet?ifcmd=status
    This works well however it only checks through to the HTTP level within Forms Services. We encountered a problem when the Forms Services failed to work on a particular server however the above URL showed that everything was OK. The effect of this was that all new users attempting to login were directed to the failed server as this server had the "least number of connections".
    After raising an SR with Oracle they advised that the forking of runtime processes had probably failed and this was not detectable by the load balancer with the above URL. So they have recommended a number of options for checking the status of the Forms Services. These are:
    a) http://server:port/forms/frmservlet
    This loads the default Form and therefore by definition tests the forking of runtime processes. However BIGIP is unable to automatically process the information to distinguish whether the service is up or down. Oracle recommended that if using this method we would need to customise BIGIP to handle the various FRM-xxxx error codes.
    b) http://server:port/forms/frmservlet?userid=scott/tiger@YOURDB&form=yourtestform.
    fmx
    Even more thorough would be to actual log on to the database using a test form as above.
    My question is does anyone out there have experience in checking Forms Services availability using these last two methods as I'm not sure how to customize the load balancer so that it can handle the output of these URLs. Also when using the original URL is it normal to load balance using a "least connections" method or do people out there use a different algorithm.
    Thanks for any help/advise that you can give.
    Regards,
    Philippe

    Well SR followed up and it looks like the only course of action is to use the standard HTTP check: http://server:port/forms/frmservlet?ifcmd=status ...
    ... unless that is you want to do some serious customisation. Oracle don't support any other form of checking.
    I'm guessing from the lack of responses to this thread that this hasn't been an issue for anybody else ... ???
    Any thoughts/suggestions really welcome as we go into production in 4 weeks.
    a) What do people recommend for load balancing Forms ... least connection, round robin ... ?
    b) Do people use http://server:port/forms/frmservlet?ifcmd=status or have some of you used something else?
    Thanks,
    Philippe

  • Forms gves an error - unable to update item

    Hi,
    I am running an Oracle Form 10G. I get an error which says unable to update item as soon as I click( or type in) on any field or item in the Form, I have looked at the item's property and also the block properties. Update , Insert is allowed at both the Item and Block level. So what coulbe wrong ? How can I trace or debug what is causing this error ?
    Please advise.
    Regards
    IQ.

    Hi
    So what coulbe wrong ? How can I trace or debug what is causing this error ? Pls try to press Help >Display Error from the form's menu 's runtime.
    This will display the errors related to the db that causes the problem of ur form.
    another option that u can check the block property of this item & the db property of each may be it's set to no... just a guess....!!!
    Hope this helps...
    Regards,
    Ammatu Allah.

  • Availability Check not working for Item Cat TANN or YG05 in Btch Split

    Currently working on implementing Automatic Batch Determination (BD) project and one fine piece is holding up the implementation (make or break for project).
    In our QA System:
      - In inventory we have a quantity of 2 for a material: 1 in one batch and 1 in another batch.
      - Create an order with 2 line items with the same material number for a quantity of 1 each.  Line item category is TANN
      - When you generate the delivery the batch determination causes the items to split (even though you have a quantity of 1 in the line item).
      - When you go into the delivery and open up the 1st line item and look at the 900001 line, BD chooses the 1st batch for a quantity of 1.  Line item category is YG05.
      - When you open up the 2nd line item and look at the 900002 line, BD chooses the 1st batch again, NOT the 2nd batch which it should.
    If I change the line item category on the Sales Order to TAN and generate the delivery, BD correctly assigns the 1st batch to the 900001 line item and the 2nd batch to the 900002 line item.  Which is correct.
    Now for the strange part.  The TANN item category and BD works find in our DEV Sandbox, but NOT in our QAS system.
    I have spent two days now trying to find out where Availability Check is assigned specifically to Item  Categories and any differences between our DEV Sandbox and our QA systems to no avail.
    Our customers need the ability to be able to put the same material number on multiple lines of a sales order due to special pricing per customer within an order.
    Can anyone direct me to some configuration or transaction that controls Availability Checking by Item Category.  I have checked the 0VLP transaction and they are identical between our DEV and QA system for the TANN and YG05 categories.
    Any help will be greatly appreciated.

    In VOV6 the 'CP' Schedule Line Cat. has the Availability flag check.  There were a few areas where I found an "Availability" flag and made sure there were all set.
    But, I did finally find out what the error was:
    Logistics Exec -> Shipping -> Basic Shipping Functions -> Avail Check and Transfer of Requirements -> Transfer of Requirements -> Determination Of Requirement Types Using  Transactions
    There are entries by Item Category.  For
    I/C = TANN
    MRP type = PD
    the Requirement Type was missing (if you look at the entry for TAN/PD you see an 11 in the RqTy column).
    So I entered a 11 (Delivery Requirement) into the field and now the Availability Check works and I am getting the correct Batches and quantities during Batch Determination.
    There is no entry for the YG05 batch split, so I guess the system just uses the Item Category of the main line item.
    Thanks for the responses.  Sorry to bother you I should have figured this out earlier.
    Scott.

  • CRM Availability Check not working for certain Item Category

    Hi there,
    I have a situation where for certain order type/item category combinations, the availability check on the same material is not working.
    The check is set up to happen in SAP ECC.
    I have checked the config. under SPRO->CRM->Basic Functions->Availability Check->Availability Check using SAP ECC
    as per many SDN posts on this, and everything looks fine.
    The new item category, which was a copy of an existing one, works (i.e. gives availability) for certain order types, but not others.
    If I create the same order directly in ECC, it works correctly every time.
    I searched the code (from consultants who set it up originally) and can see nothing specific to the order type/ item category.
    I also put a breakpoint on AVAILABILTY_CHECK function module in SAP ECC - it is not being hit, in the case where check is not successful.
    Breakpoints in MV45AFZZ (Sales Order userexit) also not being hit, but they are hit for the Order/item category combination when it works successfully.
    Any suggestions on where else this could be configured would be appreciated!
    thanks,
    David

    Hi David,
    One 'simple' reason for this could be that the copied item category does not have the
    ATP Profile set up in the item category in the IMG. Make sure you have an ATP profile assigned in the area 'ATP Profile' in the item category.
    Please see as well the SCN Wiki link:
    Availability Check CRM-BTX-BF-ATP - CRM - SCN Wiki
    Best regards
    Christophe

Maybe you are looking for

  • Simple problem with  code

    whenever i try running my code i get a error message and it has to do with this part of the code public int cmd()     footballer.footComp()=0;     Collections.sort(xList);     return  footballer.getFootComp(); the method being called is in another cl

  • How to remove leading ' in workbook?

    Hi, we are reporting queries via workbooks. Yet, all values in the workbook (in the data area) start with 'xxx. eg. Instead of showing 3 it's showing: '3 as the content of excel cell. How can I change my workbook in such a way (maybe via Format -> St

  • Photoshop CC 2014 Extensions Pulldown Menu Grayed Out

    I was trying to access the Kuler panel when I realized the Extensions Pulldown is grayed out. CC version is okay.

  • Select-option _no input possible???

    Hi.. all How can i get my selct option as no input possible mode in selection screen.... so here user can not change the default value which i set... for that how can i restrict...... how can i get my select-option with defulat entries and with NO IN

  • Could not find server

    I am trying to create a connection to my server so that I can start working. I enter the name of my FTP server, which is http://dreamhost.com. I enter my FTP username and password and this little box pops up that reads:"Unknown host. Contribute could