Sales Of blocked material

Hi,
A material is blocked for sales in the company.Now company wants to bill that blocked material to a customer but in the specific sales area. We can not unblock that material because if we unblock that material then this material can be billed from other sales areas also which we do not want.
Is there any standard way around for this problem or we have to do some z development in the sales order program.
Please advice
Thanks
Varun Agarwal

Hi,
You can go as per Mr.Lakshmipathi said,here is the smiler link.
Or Go to T.code SE38 include FV45PF0M_MAEPV_SELECT
In that VBAP_MATNR_LOE = VBAP-MATNR.
            VBAP_WERKS_LOE = VBAP-WERKS.
            DA_SUBRC = SY-SUBRC. " Message-Befehl ändert sy-subrc auf 0
            MESSAGE I406 WITH US_MATNR.
            SY-SUBRC = DA_SUBRC.
here message I406 need to be change as E406 for throwing error instead of information,take the help of ABAPer.
Regards
Ram

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

  • 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

  • Blocking material for sale at plant level

    Hi,
    Can you please help me whether we can block the material for sale at plant level.
    We can block the material in sales organization view --> DChain-spec. status as BLOCKED FOR SALE , but it wil block sales of the material for all the plants in the sales organization.
    Please help whether we can go ahead at plant level.

    the posting block for goods issues can already be reached with a material status, so no phyiscal inventory document necessary.
    What you could try is to control the usage by a userexit.
    E.g.  you define a sales status AND a material status, just as table entry without any customizing in detail.
    and in the userexit you check for the combination of sales status and material status, and if your material has this combination then send a error message to the user.

  • 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.

  • 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

  • Sales orders collective material requirment report .

    Hi,
    Is there any STD report that will give me:
    Total requirement of Mat XXXXX for the specific period:
    Means collective total req on basis of Material of all sales order that had been entered over specific period
    Thanks In Advance.

    hi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/SDISREP/SDISREP.pdf
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC
    Customer Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Blocked orders - V.14
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Reward if USeful
    Thanx & Regards.
    Naren..

  • Solution needed for Blocked material problem

    Hi Guys,
    Scenario  :   There are two plants in a Location(Plant A & B) and a Customer.Now the Material is blocked  so that after the sales order the material will not be allowed to move from Plant A to B as well as the
    material will not be moved to the customer end.
    Solution needed :  I need to move the blocked material from Plant A to Plant B,But the material shouldn't be transferred  to  the customer end.
    How should I proceed for this problem?
    Regards
    Jino.

    hi,
    Theres a functionality in the material master...MRP view were u cld deifne theplant spcfc material status were u cld define the status and even u cld fnd it in Sales organisation data were u cld block for the particular functionality...
    PLS check that and define as per u r reqmnt.. and try
    Hope this helps u out
    Regards,
    sravanthi
    Edited by: Sravanthi683 on Jun 22, 2009 1:45 PM

  • Sales order block in customer master

    Hi  Gurus,
    There is one requiremnet from client.
    _Create one additional Sales Order Block which is maintained in the customer master and prevents order creation for these customers._
    Can any one tell me where is sales order block in customer master.
    Regards,
    Ajoy

    Hi,
    You can block the customer centrally or for the required sales areas using XD05. this is one option.
    As i understand additional block at sales order for this customer means you can set the customer credit limit as say 1 $ assuming any of the material that is sold is above that, the system does the credit check and blocks the order. How do you want to deal with this block you can think in terms of credit management settings. This is config.
    But if you want to set a block at the sales order dynamically for the required some customers, then you need to implement an user exit like, Userexit_save_document. the authorised users can go in VA02 and remove the block. But to identify in the user exit logic which customer you want to block you need to maintain some master at customer master level.
    Anyways let me know if this idea helps you so that i can guide furhter.
    regards
    sadhu kishore

  • Sales Orders Blocked For Delivery

    Hi,
    Do we have T-Code for Sales Orders Blocked For Delivery other than VA14L,Because Customer name is not there in VA14L list.
    Thanks,
    NAG

    Hi naga sudhir
    Go to T-code--VA14L
    In that  go to menu-SettingsLayout--Current/Choose
    In this layout u can choose fields what u want to appear in that row.
    Any quries revert back to me
    Regards
    Srinivas.

  • MIGO-Sales price for material (NL1S ROH1 ) could not be found

    Hi Experts
    When i doing MIGO , i am getting following Error Message .i.e.,
    *Sales price for material (NL1S ROH1 ) could not be found*Message no. M7158
    Diagnosis
    The sales price valuation is active in the valuation area.
    The system could not determine a sales price on the specified posting date for material NL1S ROH1 in unit of entry in plant .
    Sales price conditions may not be defined for the material in plant .
    Procedure
    u2022 If you have a goods receipt for a purchase order or an order, the sales price is taken from the purchase order or the order concerned.
    Check the sales price in the purchase order or the order.
    u2022 if you have goods movements without a reference, you can specify the sales value (sales price including sales tax) manually.
    If the screen does not have the field Sales price, then you have a Customizing error: the sales price valuation was activated in the valuation area, but the field selection of the movement type was not changed accordingly. In this case, contact your system administrator.
    u2022 Check the definition of the sales price.
    Note that for distribution centers, the sales price of the consumer distribution chain maintained in the distribution center's master data is used.
    Proceed
    If you post this movement without the sales value, the movement will be valuated with value zero. This can change the average sales price.
    Please Advice us ...
    Thanks in advance
    Regards
    Rajesh .P

    Hello,
    Please check the following:
    -check with SE16 at table T001K whether you have sales pricing active for your valuation area,does your material belong to a very special material type
    -Check SAP Note 84480 ,109881
    -No sales price exists, no goods movements can be posted for an article subject to value-based inventory management. You must maintain the sales price in all cases.
    Please refer the link below:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/12/085e95470311d1894a0000e8323352/frameset.htm
    hope the information is helpful
    regards

  • Re: Creation of sales order without material master

    Hi All,
                Is it possible to create sales Order, without material master. In case if so please provide the details.

    Hi,
    It is possible to save order without any material.
    But if you want to restrict it, go to VOV8 and select your Sales Document Type and see if any incompletion procedure is assigned.
    Now go to SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS - SALES ORDER ITEM -
    and for your incompletion procedure maintain VBAP under table and MATNR under field name. Also you can tick on warning message, if user now tries to save the order without any material.
    So now you can restrict saving order without having any material.
    I am sure this will help you, if it does, please dont forget to reward points for contribution.
    Regards
    Ravi

  • Free Goods determination -acess sequence sales org/ plant/material

    Hi
    I am trying to determine the free goods by choosing the key combination as Sales org/plant/material.
    The system is not determineing the free qty ,instead when i maintain the condition record with customer/Material key combination ,then the system is determineing the free qty.
    I also tried to put acess Sequence Sales org/plant/material above the Acess sequence customer/Material,but still the system not detrmineing the free qty in the order.
    can any one pl gide me how to solve this issue.
    regards
    shashi

    Hi
    Go to the access sequence where Sales org/Plant/Material are maintained as condition table.
    Now select the condition table and then click the node "Fields" on the left hand side of the screen.
    It may give a warning message that "Fields are not yet generated". Just ignore this and Enter once again.
    Do this until it takes you to a screen where you can see fields like KOMK-VKORG, KOMK-WERKS and KOMP-MATNR
    Now create the condition records and check in transaction by creating sales order. It shoudl work.
    Hope this helps.
    You can reward if it helps you

  • In which table we can see consuption of sales order stock material ?

    Hi All,
    Can anyone tell guide me as to where (table/Transaction code) to see the consumption value of sales order stock material  ?
    I know one table MVER but this shows only total consumption, it doesn't show the sales order stock which is consumed.
    Regards,
    Sushanta

    Hi,
    You can see the consumption of sales order stock trough: MB51  & Movement type :601
    Balabce Sales order stock : MBBS
    SAM

Maybe you are looking for

  • Bandwidth Question

    I wanted to ask a question which has been playing on my mind for a while now. Thought this is the best place to ask. I am currently on ADSL+2 and i get around 17mbps-19mbps live 650meters from the exchange line lenth 19db. Now my exchange is going to

  • How to get a a contact book pic into my camera roll?

    So, I take a picture with my iphone by going into the contact book and choosing take picture in edit mode, but the picture is only used in the contact book. How do I copy the picture into my camera roll?

  • Excel inplace, fill excel templates

    Hey everybody! Do anyone have documentation or links to it how to fill in templates and mayby abap code examples about exporting data and making kind of headers and footers in Excel inplace from ALV? I have sap_om.xls and sap_mm.xls, but they are emp

  • Adobe Forms third party problem at submit

    I start using the new adobe muse cc forms for third party hosting servers and i have this website for one of my customers i create a CONTACT FORM on the website and when try to submit it says "server encontered an error" i chat with adobe support the

  • PDF Maker not working

    I have Adobe Pro XI installed and Office2013 and I can't get PDF maker working. The add on is there, but pdf maker just doesn't show up. Tried checked and un-checking, reinstalling? Any help? -So I will answer my own question since I figured it out.