How to block inventory at sales order level

Hi to all,
            i am using sapb1 2005 pl36 i want to block invetory at sales order level means what i want, if any user create sales order of item1 if instock qty of that item1 is 10 and commited is 10 then availabale inventory is 0 nos .means sales order  should not posted it should be block at sales order level.so how it can possible .if it possible through addon pls send code of perticular.i will await for positive reply .
Regards,
Vishal

Vishal,
You can use Application_FormDataEvent to block the add.
  Private Sub Application_FormDataEvent(ByRef args As SAPbouiCOM.BusinessObjectInfo, ByRef bubbleEvent As Boolean) Handles MyApplication.FormDataEvent
    If args.BeforeAction Then
      Select Case args.EventType
        Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
          ' get document form
          Dim form = MyApplication.Forms.Item(args.FormUID)
          ' get docucment matrix
          Dim matrix = DirectCast(form.Items.Item("38"), SAPbouiCOM.Matrix)
          For row = 1 To matrix.RowCount
            ' get ItemCode
            Dim ItemCode = DirectCast(matrix.Columns.Item("1").Cells.Item(row).Specific, SAPbouiCOM.EditText).String
            ' Do a query on inventory or use Company object
            ' If a line is not allowed block adding the order:
            bubbleEvent = False ' order is now blocked!!
          Next row
      End Select
    End If
  End Sub

Similar Messages

  • How to allocate inventory on sales order saving and before credit blocking

    Hi gurus,
    Hope you can assist us in our issue.  We are a food manufacturer and we had setup our availability check to CH and our MRP Type to PD.  The problems we had encountered are : 
    1)  If the order quantity is more than the available stock, it does not allocate anymore (for example - if order is 500cases and the available stock is 300cases only) and;
    2)  the allocated quantity after sales order saving changes after credit releasing (procurement tab) and sometimes becomes zero
    Implication is that we can not rely on the availability check at the same time credit block is again activated once we edit the sales order just to allocate.  Are there other config settings that we need to revise/update?
    Your immediate help is needed.  Thanks a lot. 
    Frances

    Rahul,
    Thank you, but this I need automatic as if I requiere my users to manually change the setting they will not and the order will go through. I heard somewhere that with the combination of SPs and authorizations this could be done however I don't know how.
    Any ideas?
    Thanks,
    GAC

  • How to block deleteion of sales order items

    We need to be able to block users from deleting sales order items. The objects V_VBAK_VKO and V_VBAK_AAT can be used at the 'order header' level but these do not prevent a user deleting an individual item in an order. Does anyone know of a way of achieving this through authorisations?

    Thanks for your responses. We have decided to use USEREXIT_CHECK_XVBAP_FOR_DELET in MV45AFZB with some code based on the AUTHORITY-CHECK syntax below:
    AUTHORITY-CHECK OBJECT 'S_CARRID'
                      ID 'CARRID' FIELD pa_carr
                      ID 'ACTVT' FIELD '03'.
      IF sy-subrc = 4.
        MESSAGE e045(sabapdocu) WITH pa_carr.
      ELSEIF sy-subrc <> 0.
        MESSAGE e184(sabapdocu) WITH text-010.
      ENDIF.
    In our case we will reference object V_VBAK_AAT.

  • How to Block Customer from Sales Order Type

    Hello Gurus!
    I was wondering if there was a way to block a specific customer from a sales order type? 
    We have 4 Sales Organizations, and 2 of them use this customer, with different sales order type for each sales organization.  So I only want to block this customer for 1 sales organization and a sales order type.....is this possible.  If so, please advise!
    I just want to block a customer from a sales order type. 
    Thank you for your time!
    Best regards,
    WC

    Hi,
    I have an wild idea just check it works or not--
    Create a dummy customer pricing procedure.whenever u want to bleck a customer for any particular order type assign this dummy pricing procedure in customer master(Sales Tab).
    Do not define any pricing procedure in SPRO against this customer pricing procedure
    The moment user will try to process any order type (which u want to block for a customer), the system will not determine any pricing procedure & consequently it will not allow to save the order.
    Hope it will solve the problem.
    Regards
    Sanjay

  • SPL block when changing the Address manually at Sales order level

    Hello all,  I hope every one doing well
    I am facing one problem in SAP system, when I am chanigng the Partner address at sales order level , system giving the SPL block , without screening even though the customer is a good customer.
    I checked in Img: GTS -> SAP Compliance Management->"Sanctioned Party List Screening" Service->Control Settings for "Sanctioned Party List Screening" Service->Sanctioned Party List Screening Strategy for Customs Docs tested with  as " Status check of unchanged Addresses( Partner Address) and New check of changed Addresses.
    I didn't find any difference. Sales order getting block for the above cases when changing the Address at Sales/Create document level.
    Please let me know  how to resolve it.
    Is it related to configuration  if yes how  ? pr
    do we  have any OSS Notes to Rescreen the Sales orders with compliace even though changing the Address at sales order level ( ship to party address changes like Name, city, email id, of fax )?
    or
    do we need to do the Enhancement for Rescreening when changing the ship to party adress (changes like Name, city, email id, of fax )
    manually at sales order level ?
    Thanks in Advance
    NVR

    hello Sameer,
    1. Whether your Embargo service is activated for the Country of Plant from which your order is getting shipped. -- Yes I have activated the Country under Embargo list.
    2. Whether the partner function for which you changing the county detail has been added in into the Partner group which is assigned to Embargo services.( GTS)-- Assinged the Sold to Party ( AG) for PGEMB2- Partner group
    3. Whether the country which u putting as Embargo has been maintianed under Embargo country list,
    - yes
    What I am doing exactly is , I am creating sales order with US customer master , but I am chaning the Country Key as Embargo country ( Ex: CU, SY, IR) at VA01 , or VA02 level Sales order header Partner tab level for Sold to party address ( changing only country key as embargo country) , not to ship to party  ( ship to party still US country key only), at that time system not blocking the sales order as embargo.
    please let me know if any once come across this sistuation..
    Thanks in advance
    NVR

  • How configure the credit limit at sales order level

    Hi
    how can i configure the credit limit at sales order level..
    ex: when i create sales order ... if exceeds the sales order value to  credit limit value ...sysyem does not accept to save this sales order ...is it possible...pls help me in this issue
    regards
    sesidhar

    Hiiiii
    It is very much possible in SAP
    first you have to create credit control area
    then assign your company code to your credit control area
    then create your customer and assign credit control area in billing tab (for that u have to activate credit control area for your transaction by OB20)
    Then go to t-code VOA8
    assing credit check to your sales document type
    create credit control area automatic with your credit control area.
    Regards
    Shambhu Sarkar

  • How to restrict header text changes in sales order level

    Dear Experts,
    how to restrict header text changes in sales order level change mode
    thanks

    Hello Chandu,
    how to restrict header text changes in sales order level change mode
    In order to restrict changes to Sales Order Header Text, the appropriate User Exit would be USEREXIT_MOVE_FIELD_TO_TVCOM_H. With the help of ABAPer, you can include the simple logic on the basis of Header Text type such that whenever any changes are incurred on the Sales Order header text, updates would be prevented.
    Please try out this approach and let us know your latest observation on this issue.
    Regards,
    Sarthak

  • MTO --- How can one verify costs are tracked at sales order level

    PP members:
    In MTO -- costs are tracked at sales order level, how can one verify that costs are tracked at sales order level
    Are there any settings/fields in master data to look into for <b>identifying costs at sales order level</b>,
    Thanks for your time

    Hi suren,
    on the top you will see "sales document" "edit" "goto" and then you have "extras".
    On the dropdown you will see "costing".
    Regards,
    Satyajit

  • How to place a credit block on a Sales order

    Hi All,
    I am creating a scenario for testing in which I have to place a credit block on a Sales order. How do I do that. Please help.
    Regards,
    Shanu

    >
    Shanu Jain wrote:
    > Hi Ravi,
    >
    > Thank you for the response. If I want to get the error of credit block while creating the Sales order itself (when I am trying to save the Sales order) what settings we need to do besides making the credit limit zero for that customer in FD32?
    >
    > Regards,
    > Shanu.
    Hi Shanu,
    Just do simple debugging and change the field  value , it will automatically solve your purpose , with this there is no need to change the configuration etc.
    pls put the break point at ..
    1) Goto tcode se38. Here input SAPLVKMP and then press display.
    2) here you can see lot of includes , here pls double click on the include LVKMPF0A.
    3) Here you will see the code like..
    open values  > creditlimit
      IF SCC_SUM_OPENS GT SAV_KNKK_KLIMK.     :> place the break point here
        PERFORM MESSAGE_EXCEEDED_VALUE USING SCC_FLG_ORDER SCC_SUM_OPENS.
        MOVE CON_RC_NOK TO SCC_RC.
      ENDIF.
    4) And now do the sales order , the cursor reaches here , then in the debugging mode change the value of SCC_SUM_OPENS  to more than SAV_KNKK_KLIMK.
    5) And then press f8 , now you will get the desired result , ie your order will have a credit block.
    Hope this will help you.
    Regards,
    Vvieks

  • How is a Billing Block on a Sales Order manually removed?

    Hi friends,
    I want to know,How is a Billing Block triggered on Sales Order due to pricing intolerances is manually removed,even if the intolerances are not corrected.
    Regards,
    Imran.

    u have to check ur config setttings , it depends ?
    Regards
    Peram

  • SD Stock checkint at Sale order level

    Dear Gurus
    I would like to know that, instead of delivery stage i would like to give control at the time of material entry in sale order level. Whenever user enters a material code system should not allow unless stock is there.
    regards
    Prasad

    Hi there,
    Are you asking that in order entry if a material is not available, then the system should not allow to even enter the material?
    May I know the reason for that?
    Through customizing it is possible. But consider this scenario which you will surely come across in that case. Consider that you will code in such a way that material will have a block if stock is not available. Consider that on 13th Oct you will carry out stock inventory in your plant & find that 100 quantity is available. So you will remove the material block & allow order entry for that material. Consider that you have an order with quantity 150 logged in.  Since there is no block on the material, user will be allowed to enter the material.  Customer requires 150 but you have just 100. That means there is no sufficient stock available to fulfill your order. This will contradict your requirement. Right?
    Unless the material is entered, system will not be able to carry availability check. Coz only then you will come to know what quantity the customer requires. Only then you will be able to confirm when the item will be available.
    So what I feel is that your requirement may be feasible through customized user exists but it will surely have issues like above.
    Regards,
    Sivanand

  • Credit check at sales order level?

    Dear experts
    I want to set credit check at sale order level with following conditions
    consider open deliveries for credit exposure
    consider billing documents for creadit exposure
    do not consider any open orders
    Also if oldest items are open for more than 7days then block the sale order creation
    e.g suppose customer is having credit limit Rs.100000/- and open deliveries against this customer is having the value Rs.50000/- i.e. credit exposure is Rs.50000/-. In this case system should block the new sale order created of value more than Rs.50000/-
    plz suggest the configuration steps
    regards
    kailash

    dear friend
    For i am already having the same setting but still my scenario is not working. i will explain my scenario again
    suppose customer is having credit limit Rs.100000/- and open deliveries against this customer is having the value Rs.50000/- i.e. credit exposure is Rs.50000/-.
    In this case system should block the new sale order created of value more than Rs.50000/-
    But with the said settings purpose is not getting solved.
    my settings are;
    In OVA8 ;
    Update: 000015
    Static check: TICK
    Status: TICK
    open deliveries: TICK
    Plz suggest
    kailash

  • At sales order level

    Hi,
    In sales order level i am opening MWST condition i am getting "CondRoundDiff ".  0,01-, where it is getting this value and how to remove this one , and what is the solution for this please help me any one..
    Thanks,
    KK
    Edited by: Anand2mnp on Apr 26, 2011 6:57 PM

    This is likely due to the MWST being a group condition - meaning that SD recalculates the condition on the basis of the sum of the items in the group. This is quite normal for tax conditions -as customers expect tax to be calculated in the total.
    You can remove the group setting - however, you may get customer complaints when the tax amounts on the item add up to more than the tax calculated on the total.

  • Free Good Qty as non modifiable field in the Sales Order Level

    Dear Friends,
    I have successfully done the config change for the Free Goods, But now i want make the free good line item qty as a non modifiable field in the Sales Order Level.
    How can i do this.. Please advice.
    Thank U,
    Uwanthi

    Hi
    This is a standard behaviour in the system
    kindly use the below program and user exitexit
    MV45AFZZ and use "Userexit_filed_modification"
    Regfards
    Damu

  • How to assign version in sales order and transfer to PP module

    Hi all
    Users say that customer will require to produce/deliver old goods (we active revision level. The newest material version is D. But customer want version B). How to assign version in sales order and let PP user know the version customer want (MRP run and production order must use version B's BOM)?
    Regards,
    Rita

    Hi,
    i have a query if you have implimented ECM this will serve the purpose but it also depends on how good the planning is, in ur client site ( out of SAP ) where planner will plan according to the customer requirement as to which version to be kept active for a date range.The ECO analysts(functional) or consultants will make the ECO changes for those dates.
    In general for those type of customers (who needs old version) a different SO created under different document type which will create a production orders with specific order type depending on the assignment of requirement type and requirement class.
    those specific production ordertypes can be inturn assigned to either different plant where your old version BOM's will be active.
    You need to look into the custom settings in SAP to design the larchitecture to allign with other requirements.What i explained u is common methodology used.
    Hope this is clear..
    Prakash
    Message was edited by:
            prakash Uddagatti

Maybe you are looking for

  • Intensity II Dead?

    I have an Intensity II, and it seems to be completely devoid of "life." I tried charging it in the car today, and it wouldn't take power, not for five minutes, not for the five hours I was driving around today. Now I'm home and I put it on the wall c

  • Any mid size companies for SAP HR to help to get a job as a fresher

    hi all, any mid size companies to get a job in sap hr

  • Problems importing Photoshop docs

    Hello- Hopefully someone can help me with this: My Phooshop docs are importing without an alpha channel (I.e.: all transparancy turns to white). I don't recall having this problem before; but then again, this wouldn't be the first time that I stepped

  • Nokia Account Error

    Please provide that someone contat me in order to solve my nokia account issue that is preventing me to buy from nokia store.

  • Turn off or close screen

    does anyone have a good guiding tip regarding when I should only close the screen when not working on it, and when it would be best to shut the computer down. I can't find any information regarding how much battery usage it takes if I only close down