Block material order due to shortage

Dear All,
        I want to block my order automatically when material shortage happen.So as to say when I will give material with quantity in item row in order,system will automatically check availability.If material shortage will happen,the order will be automatically blocked and if material is available,order will pass for delivery.Can anybody tell this solution and tell me configuration ?
                                                                                with regards,
                                                                                RANA
Edited by: Rana Debgupta on Oct 9, 2010 7:18 PM
Edited by: Rana Debgupta on Oct 9, 2010 7:19 PM

Hello,
This is what we called "fill or kill.  You can add entries in userexit MV45AFZZ or from a simple point of view, review the complete delivery functionality that is used in the customer master / CMIR.
Regards
Waza

Similar Messages

  • How to block material issuing after sales order invoiced?

    As the subject mentioned,  could be a possible to block material issuing since sales order invoiced, or
    in the another words, after the sales order completed?
    Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
    forbidden?
    Thanks in advanced,
    Zhou Zhen

    Dear Friend
    A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
    That means the order 10000 is closed
    Case 1
    Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
    This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
    Case2
    But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
    Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
    But you can test it if it throws any warning message we can try to convert that error
    But in case 2 it is not happening(even warning is not there)
    Regards
    Raja

  • Credit blocked sales order and shipping due list

    Hello all,
    We would like to see credit blocked sales order in the shipping due list (VL10C)
    First we have modified a user exit to have schedule lines quantity confirmed even when the sales order is credit blocked. It works fine but still the schedule lines do not appear in the shipping due list.
    Do you know some way to make this lines appear in the shipping due list ?
    Thank you in advance.

    hello, friend.
    i believe that you can configure the system in such a way that even if a sales order is blocked for credit, the requirements will still be passed on to PP/MM.  however, as long as the delivery block (for credit reasons) remain in the sales order, this order will not appear in delivery due list. 
    i have to ask you:  if you want the blocked order to appear in delivery due list, why block the order at all?  an alternative to listing orders still not delivered would be to use t-code VA05 or VA05N and specify 'open' orders.
    hope this helped.
    regards.

  • BAPI/Function module TO block material which is mentioned in sales order

    Hi All
    Is there any BAPI to block material which is mationed in sales order....
    I am using BAPI_MATERIAL_AVAILABILITY to check material availibility
    how to block quantity if it is available whicl creating sales order via
    "BAPI_SALESORDER_CREATEFROMDATA2"
    ..Thanks

    The normal SAP ATP done in the sales orders use the figure ''committed qty'' meaning that if the ATP has been done and confirmed, that quantity will not appear in the next sales order as available.
    So if You're using the normal BAPI to create the sales order, the normal ATP function will be called in the processing.
    Nevertheless another solution to this issue is to have the MTO (Make-to-order) solution where the requirements are ''attached'' to one sales order/line only.....like this the problem of the stock being taken to another customer disappears.
    To do this you'll have to configure the following :
    - Go to SPRO and go to Sales and distribution -> Basic functions -> Availability check and transfer of requirements -> Determination of requirements using transaction - Here insert the entry with your sales order type - MRP type (from material master - you might want to consider create one only for this solution) and you should use one of the following:
      - KEL      Make-to-order, mat. variants
      - KELV     Make-to-ord.variant + consump
      - KP       Make-to-order with project 
    and choose the origin of your requirement - 1 - Item category + MRP Type
    - Than configure the association of the requirement type above to the requirement class (normally is the same code) transaction *OVZH*
    - Than configure the requirement class (this is what will tell the system the MTO) transaction *OVZG* - On the screen in the field Special stock - E - Sales order stock and please ask for help from an FI consultant because the area of *Account assignment is very important to be well configured*
    About the BAPI you're using - Its correct - That's the normal BAPI to be used, taking only into consideration the product allocation issue - MARA-KOSCH
    Explaining a little the BAPI you're using :
    The program should check if the selected material is allocated or non-allocated.
    This information is stored in a field MARA-KOSCH.
    We should check this field and if the field is not empty then material is allocated, otherwise is not:
           select kosch into l_kosch
            from mara
           where matnr = <VBAP-MATNR>. " Selected material
            if subrc = 0.
               if l_kosch is initial.
                  +" Perform calculation for non-allocated materials+
               else.
                  +" Perform calculation for allocated materials+
              endif.
           else.
         " Material not found, skip it ...
          endif.
    For allocated materials it will be checked allocation for the netting market of that Order.
    The calculation rules for allocated and non-allocated materials are different.
    For Non-allocated materials
    BAPI 'BAPI_MATERIAL_AVAILABILITY' should be used for getting the ATP quantity.
    Bapi should be called as follows --
    data: lfl_bapiwmdvs type bapiwmdvs,
    lit_bapiwmdvs type standard table of bapiwmdvs,
    lfl_bapiwmdve type bapiwmdve,
    lit_bapiwmdve type standard table of bapiwmdve,
    l_dialogflag type bapicm61v-diafl.
    call function 'BAPI_MATERIAL_AVAILABILITY'
    exporting
    plant = <VBAP-WERKS>
    material = <VBAP-MATNR>
    unit = <VBAP- VRKME>
    check_rule = 'A'
    +* STGE_LOC =+
    +* BATCH =+
    +* CUSTOMER =+
    importing
    +* ENDLEADTME =+
    +* av_qty_plt =+
    DIALOGFLAG = l_dialog
    +* RETURN =+
    tables
    wmdvsx = lit_bapiwmdvs
    wmdvex = lit_bapiwmdve.
    Please note that table lit_bapiwmdvs is the input table and to this following input should be passed -
    lfl_bapiwmdvs-req_date = sy-datum. "Current date
    lfl_bapiwmdvs- REQ_QTY = <Unconfirmed Quantity> in Sales Order Unit
    append lfl_bapiwmdvs to lit_bapiwmdvs.
    The return value l_dailog will be --
    ' ' --- Quantity can be Delivered -- Item to be displayed in the Report!
    'X' --- Complete quantity cannot be delivered -- ATP failed, Item not to be displayed.
    'N' --- Material not relevant for ATP --- Item not to be displayed in the Report.
    For Allocated materials
    For the allocated Materials, we have to first do the ATP check in same fashion as for Non-allocated Materials and then in addition to this ATP check, we have to also check for Allocation from SIS table S941.
    If ATP check fails, straight away the Item should be ignored from Output display.
    If ATP check passes, we further check allocation as follows --
    Valid entry should select from S941 as -
    data: l_period like s941-spbup,
    l_BUPER LIKE T009B-POPER,
    l_GJAHR LIKE T009B-BDATJ,
    lfl_s941 type t_s941.
    data: l_bukrs type tvko-bukrs,
    l_periv type t001-periv.
    * Select company code
    select single bukrs into l_bukrs
    from tvko
    where vkorg = <VBAK-VKORG>.
    * Select fiscal year variant
    select single periv into l_periv
    from t001
    where bukrs = l_bukrs.
    * Get Period
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
    I_DATE = sy-datum
    I_PERIV = l_periv
    IMPORTING
    E_BUPER = l_buper
    E_GJAHR = l_gjahr
    EXCEPTIONS
    INPUT_FALSE = 1
    T009_NOTFOUND = 2
    T009B_NOTFOUND = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    concatenate l_gjahr l_buper+1(2) into l_period.
    select single kcqty aemenge from s941
    into corresponding fields of lfl_s941
    where SPBUP = l_period
    and KONOB = 'OBJ_ALL_MATERIALS'
    AND MATNR = <VBAP-MATNR>
    and zzcnetmark = <VBAK-ZZCNETMARK>
    and VRSIO EQ '000'.
    IF SY-SUBRC <> 0.
    *Ignore entry and skip further processing
    ENDIF.
    Remaining Allocation = difference between product allocation quantity and incoming order quantity
    i.e. (S941-KCQTY - S941-AEMENGE). Now we have to compare this qty with the Unconfirmed qty.
    Ensure same Material UOM for quantity comparison as follows --
    IF <VBAP-VRKME> NE <S941-BASME>.
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
    EXPORTING
    i_matnr = <VBAP-MATNR>
    i_in_me = <VBAP-VRKME>
    i_out_me = <S941-BASME>
    i_menge = <Unconfirmed qty in Sales UOM>
    IMPORTING
    e_menge = l_menge
    EXCEPTIONS
    error_in_application = 1
    error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    * Ignore entry and skip further processing
    ENDIF.
    ELSE.
    *If both Units are same no need for conversion
    l_menge = <Unconfirmed qty in Sales UOM>
    ENDIF.
    Then, compare if Remaining Allocation > = l_menge i.e. Unconfirmed quantity converted to S941-BASME unit, then there is enough allocation for this Material for the Unconfirmed quantity and should be displayed in the report.
    Else, the Item should be ignored.

  • How to block material issue to work order

    Dear Expert,
    How do block material issue to work order when the item have been flag for deletion in MM module and have also been block for procurement and inventory in mm module.
    Please help

    Hi,
    Thank you for the prompt reply, what you mean by the Standard SAP? can you provide the reference link? I am facing the problem that the item material have been flag for deletion and been block for procurement and inventory in MM module material master data however it still able to material issue to work order. Any ideal how to block the material issue to work order when the material item have been flag for deletion and block for movement in MM material.
    Please help.

  • Material block for order process

    How to block  an order to process a specific material. We are no more using that material, ths SAP should be configured so that it should stop processing for this specific material.
    Plz advice.

    Dear Raghav,
    Try with this option,
    Go to MM02 transaction enter your material then select the Basic data1 view then go in to the detail here you can find the field X-plant matl status under General Data tab you can maintain option OB -Obsolete Materials to block that material.
    Other blocking options also available
    01     Blocked for Procmnt/Whse
    02     Blocked for task list/BOM
    BP     Blocked for Purchasing
    KA     Blocked for Costing
    PI     Free for Pilot Phase
    Z1     Blocked for Procmnt/Inven
    I hope this will help you,
    Regards,
    Murali.

  • Block material for sales order entry in specific plants

    Hi Experts,
    I wanted to know if there is a simple way to block material from being ordered in a specific plant other than maintaining exclusions. My situation is one sales org, two plants (A & B). Order entry should be blocked at plant A and not B.
    I tried using the material Cross-distribution-chain material status on Sales org 1, but this blocks across all plants.
    I also tried Plant-Specific Material Status on purchasing view, this blocks the material only if it is being procured (non stock). This does not work for materials that does not require procurement. Setting the material to deletion status in MM06 at the plant level will only give a warning.
    Any ideas or suggestions on how to handle this?
    Thanks,
    Nanda

    Lakshmipathi,
      Thank you. But I don't want to entirely cut off the plant from the sales org. I just don't want to be able to create sales order for a few materials in a specific plant. Ex. Material A should not be allowed on sales orders in plant X but should be allowed in plant Y, both are assigned to the same sales org 1000.
    I did some research and found there is no standard way to handle this in SAP, so I decided to go with a user exit MV45AFZZ. By checking against plant specific status (MARC-MMSTA) and if the value is 'XX' then issue an error message.
    Thanks,
    Nanda

  • Block material for sales order

    Dear All,
    there is any transaction code to release the block material(for sales order) with refernce to specific plant.
    i can do in CO06 but we can delete one by one.
    but i want to delete all blocked material form 2008 to till date.
    Regards
    ajit

    Actually i have created a numbers of order since 2006 to till date but delivery is still pending.
    because of this material is blocked for specific order and i can not create order for particular material because its block,
    i have around 100 orders.
    i know that we can do through CO06.but i don't want to do one by one.
    Regards
    ajit

  • Standard report for BLOCKED SALES ORDERS

    Hey friends,
              Do any one of you know whether there is any standard report that shows the Blocked sales orders..??
    thanks in advance,
    Regards,
    Anvita.

    anvitha,
    You have the following transaction available in SAP for showing the sales documents blocked due to different reasons.
    V.14  Sales Orders Blocked for Delivery  
    V23   Sales Documents Blocked for Billing
    VA14L Sales Documents Blocked for Delivery
    VE31  Blocked SD Documents (Export related)               
    VKM1  Blocked SD Documents (Credit Blocked)               
    Check which one will satisfy your requirement.
    Thanks
    Giridhar

  • How to block an order if the price is too low?

    Hello,
    My problem is :
    How to block an order if the price is too low?
    I created a new type of condition ZMIN and an access by material.
    When the net price is below the minimum price the system must position the order on incomplete document for error of price.
    Thank you in advance.
    Frédéric Blaise
    e-Kenz S.A.

    Hello,
    you can enter a lower limit in the condition record:
    Lower limit of the condition rate/amount
    Indicates whether, during document processing, the system checks if manual changes fall short of the lower limit allowed for the corresponding condition record.
    Use
    When you maintain the scales in a condition record, the system checks whether the scale value falls below the lower limit.
    Or you can use the flag 'conditon update'.
    Condition update
    Controls whether limit values are relevant for pricing.
    E.g.: you can make the use of a particular condition record in the document dependent on a specified total value.
    This total value can be specified in the condition record.
    I hope that the information are helpful.
    With best regards
    Claudia Neudeck

  • How to block Sales order for any overdue balance.

    There is a need to change SAP setting for blocked Sales Order for due balance. Current SAP setting : block is valid only for "over due
    more than 30 days".
    The requirement is to block order based on any overdue amount say For example : if we have due balance for 1 day, than system should block the SO.
    In current credit management settings applied, there is Static check ( C ) and Oldest open item (C ) with Days oldest item =30 days. Kindly suggest as what changes should be made to reflect the desired changes. Also , help in confirming the thought that Static check itself considers the OPEN ITEMS, so if i am activating static check and REMOVES THE OLDEST OPEN ITEm, will it take any overdue amount automatically and block subsequently. To add to it kindly explain, what is the use of this additional check of Oldest Open Item ( with days = X days ) for creit mngt. can't we maintain it by Static check.
    Kindly guide as what to change in OVA8 to have this. All feeedbacks are highly appreciated.

    The user want to  block SO for 2 types below. System must block SO if the credit limit is exceeded and/or the payment is overdue
    Currently Two credit checks in OVA8
    1- Static check
    2- Payment Overdue check by Oldest Open Item ( 30 Days limit is set)
    But, now for SO block due to payment overdue need to be changed from 30 days overdue to any day overdue.
    How to acheive the above , Also kindly confirm that Static check contains OPEN ITEMS so Won't static check only carry the functionality to block SO for ANY DAY OVERDUE.
    Any feedback is highly appreciable.

  • In which Table we will see the Blocked sales order stock

    I tried in MARD Storage Location Data for Material here i can able to see the unrestriced stock but i am not able to see the
    blocked sales order stock.
    Field : SPEME Blocked here blocked stock is not updating  though we can see in MMBE
    Can any one help me to find out the sales order stock
    Note: sales order stock is different this i am getting in MSKA: Sales order stock
    Edited by: balashowry raju on Sep 3, 2010 10:12 AM

    Hi,
    Are you talking about qty reserved by system for sales order wich are blocked for some reason like credit check? In this case, system does not block any qty for blocked order.
    If you are looking for confirmed qty for sales order then you can see in CO09 transaction, confirmed qty against sales order.
    Regards,
    Mukul

  • Block material for Sales Area & Customer.

    Hi.
    I want to block material for particular Sales area.
    For that i used  "X-distr.chain status" &" DChain-spec. status" in Saleas Org1 Tab of material Master.
    Now in Sales Order Creation i am getiing Warning message as
    "Material 95343431321 has status:Discontd w/o Replace"
    Message No V1028
    How to Convert this warning to error so that it wont allow to Save Sales order?
    Also i want to Block material for Particular Customer How to achieve that???Any other better option than Material Exclusion???
    Reg.
    Amol

    Hi
    1.KIndly go to the below path
    SPRO-IMG-Logistics generalmaterial mastersettings for key fields Dat relevant for Sales and distribution-Define sales stauses-select the disct status ,details and maintin  as "B" in Block for order then system will give error message at the time of sales order
    2.Better option is through material  exclusion onle
    Regards
    Damu
    S

  • Want to block Material component in PO.

    Dear all,
    We set material status block for external procurement.And it working fine.It cannot allow to create Purchase Order with blocked material.
    But the problem is that system allow to create Subcontracting Purchase Order when we use this block material as a Component. 
    How we can stop it.
    Thanks & Regards
    Dipayan Bose

    I dont see any standard way of doing it as i dont see any setting which can block material for reservation creation ,
    Method suggested by Amrinda controls entry of component in BOM  so it might work if u r strictly going to use process via BOM.
    But as i have observed that is rarely the case.
    I would recommend you to ask ur technical consultant to identify  EXIT/BADI/Enhancement which cud check creation of such PO or creation of reservation via subcontracting order.
    regards
    Avinash Goswami

  • Block material at material type(HIBE) level for movement type "261" & "261"

    Hi,
    Block material at material type(HIBE) level for movement type "261" & "261".
    Requirement: This material type should not issued to the PM orders using above mvt types.
    regards,
    Venkatesan Anandan

    As per standard it is not possible. go for ABAP development

Maybe you are looking for

  • Automatic import transport request

    Hi Folks,                We are transporting requests from DEV to QA but they are not being imported(changes are not being reflected in QA).What i am doing is manually i am importing to QA. My query is is there any way by which automatically import i

  • Ibatis fails to return int value...

    I've been trying to get IBATIS to execute a complex query and null is returned every time. I've tried to locate the error by using simpler queries and so far this is what I have discovered. This query works: select 1 as value from dual And this one f

  • Passing column name dianamically in an insert query

    i have a procedure hwre i used an inser query.eg insert into table (a,b,c) values(...) i need to pass a,b,c ie column names as parameter.depending upon the condition the column name will change.

  • Check if date is in specified format or not

    Hi, I am reading date from spreadsheet. I want to validate this date, it should follow the format 'MM/dd/yyyy HH:mm'. I tried it using SimpleDateFormat class SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy HH:mm"); Date timeStamp;      

  • DWW: BI Content is empty

    Hi all, after login on BI System, I can open Object types but when I "Select Object" under any object types, nothing is display instead of a "input help for Metadata" sub window. does anyone know the reason why? Thanks, Chuong Hoang