Delivery Created for material with ref to a sales Order, even if the stock

Hi Guru,
Deliveriey is getting created of material having TANN as Item category in the sales Order. We want the system to stop creating a delivery, when there is no stock of the same.
How can we configure the scenario.
Please help.
Regards
Amit Shrivastava

Hi amit
If you feel this answer solve your query please reward with points.
With out stock also you can create a delivery and picking  you will get delviery doucment number But the thing is when you cannot do the post goods issue
Deficit of SL Unrestricted-use  you will get this type of messege when you do the p..g.i.  Post goods issue is the thing it will update the inventory.  There is no stock it will not update any stock temparay it will create all those things.
Thanks & Regards
rack29

Similar Messages

  • ORDERS05 - Create a Return with reference to a Sales Order

    Hi all,
    I'm trying to create a return with reference to a sales order via IDOC ORDERS05. I'm indicating referenced Sales Order number into segment E1EDK02; indicating qualifier (QUALFR = 002) and Sales order number (BELNR). By this way, I create a Customer Return but without reference.
    Which fields or segment have to be filled in order to create it correctly?
    Thanks
    Marí

    Correct...
    You need something like:
    *Get the pricing cond number.
    select single knumv from vbak into cond
      where vbeln = '0000080347'.
    if sy-subrc = 0.
    Get the pricing record which are by line item.
      select * from konv into table konv_tbl where knumv = cond.
    Loop thru them one line at a time.
      loop at konv_tbl.
       bapi_cond-itm_number = '000010'.
        bapi_cond-cond_st_no = konv_tbl-stunr.
        bapi_cond-cond_count = konv_tbl-zaehk.
    CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
      EXPORTING
        RETURN_HEADER_IN               = bapi_hdr
       BUSINESS_OBJECT               = 'BUS2102'
        CONVERT                        = 'X'
      IMPORTING
        SALESDOCUMENT                 = bapi_salesdoc
       RETURN                        = BAPI_RET
      TABLES
        RETURN                        = bapi_ret_tbl
        RETURN_ITEMS_IN                = bapi_itm
        RETURN_ITEMS_INX               = bapi_itm_out
        RETURN_PARTNERS                = bapi_prtnr
        RETURN_SCHEDULES_IN            = bapi_schd_lin
        RETURN_CONDITIONS_IN           = bapi_cond.  "pricing
      ORDER_TEXT                    = bapi_text.

  • Report for Material Numbers configured in KMAT Sales Order

    Hi,
    Scenario:
    We are operating with KMAT material type. (e.g. ABC)
    Material "ABC" has Characterstic Char 1 , Char2, Char3, Char 4
    Each Char has Char values.
    Sales Persons create the Sales orders by selecting approprite Char & Char Values. Via MRP, this lead to requirement generation for materials associated to the respective Char & Char Values.
    Requirement:
        For a given list of sales order numbers for the KMAT material (ABC),
            I want to get the list of Material numbers associated to the Char & Char   Values configured in these S.Os.
    Thanks
    Nitin

    For the Function Modules, you would need to go to Transaction SE37.  For  CS_BOM_EXPLOSION I use the following Paramater Values, aukmng = 1, auskz = X, capid = PP01, CUOBJ = from the VBAP Table and line Item of the Sales Document VBAP-cuobj, datuv = current date, emeng = 1, mktls = X, mtnrv = VBAP-matnr, stpst = 0, svwvo = X, werks = VBAP-werks, vbeln = VBAP-vbeln, vbpos = VBAK-posnr, vrsvo = X.
    For the Function Module VC_I_GET_CONFIGURATION use the following Parameter Value, instance = VBAP-cuobj.

  • How to create a Contract with reference to a Sales-Order(VA01) with a BAPI

    Hi,
    my name is Wadim and i need help.
    My problem:
    I am creating a sales-order(VA01) with the BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'.
    After that i have to create a contract(VA41) with reference to this order. I found the BAPI "BAPI_CONTRACT_CREATEFROMDATA" and it has the same interfaceparameters like the salesorder-bapi. but there are no parameters to get a connection to the sales-order.
    Is it even possible to get a connection to a sales-order with a bapi???
    thanks for help
    regards mark
    Edited by: Krapp Wadim on May 20, 2010 9:19 PM

    Hi Wadim,
    I have a similar requirement to create order lines in an existing contract with reference using  BAPI_CUSTOMERCONTRACT_CHANGE.  The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
    Did you come across any such issue ? If yes , could you suggest the solution ?
    Regards,
    Venkat.

  • Credit memo with reference to a sales order with reference to a contract?

    Hello All
    Now I created a quantity contract and the customer paid the Amount that means the billing is done then I started creating sales orders with reference to the contract, can I create credit memos with reference to these sales orders?
    Regards
    Jacopo Francois

    Hi,
    You can create a contract for a longer duartion say 1 year, andyou can create sales order in reference to your contract. This would be an ideal scenario in case of service materials.
    You can now surely create credit memo's in reference to this sales order.
    You will invoice the sales order first and create a credit memo request in reference to your sales invoice and then invoice the credit memo request to raise your credit memo for the customer.
    Reward if helpful.
    Regards
    Ravi

  • Error while creating sales order for material with another DIVISION

    Hello Friends,
    I have a problem with my sales order creation.
    I have defined a new sales area 0010 / 10 / 01. I have the sales order type assigned to this sales area. (in VOV8 for the sales order type, in the 'General Control' the 'item division' is flagged.
    Now, I have created the sold to party XYZ with all the partner functions defaulted same as the sold to party for the sales area 0010 / 10 / 01.
    NOW, I have the material ABC with the DIVISION 10 in the basic data. I have extended the material to my sales org & dist. channel & plant.
    Now, while creating the sales order for my sales area 0010 / 10 / 01 , I enter the sold to party XYZ - it is OK. But when I enter the material ABC, I get the error - "SHIP TO PARTY IS NOT DEFINED FOR SALES AREA 0010 / 10 / 10"
    Please help to resolve the issue.
    Edited by: Vivek on Aug 13, 2009 9:04 AM

    Hi
    Common division for Material Master data will not work
    Because in the material master Division is a field not an organizational unit
    Means when you create MMR you will give sales org, DC, Plant  as organizational units and then enter but not division
    Division is a field maintained in basic data and sales org data 1
    This is the reason in t code you will find in t code VOR2 Common division only customer and conditions but not materials
    But in t code VOR1 Common DC ,customer  conditions and materials all there are available (you can check these t codes)
    Coming to your issue Item div is clecked in your order type
    This means the division in MMR has the priority or control for that order type
    Your header division is 01 ( taken from customers sales area) and item division is 10 (taken from MMR as per your post)
    So it differs
    To process this order with Item div is clecked in your order type you need to extend your Sold to party ABC to the sales area 0010/10/10 (the sales area where the division of the material falls)
    or alternatively
    There should be a  customer say DEF created in sales area 0010/10/10 who will be a ship to party ( your error is also the same)
    for your ABC  that is sold to party in sales area 0010/10/01 where the order is registered
    Hope yopu are getting it
    ABC in sales area 0010/10/01 will have  or should have ship to paty DEF  in sales area 0010/10/10 
    or
    ABC should operate in in sales area 0010/10/10  too
    If item division is not ticked then these are not necessary as the header division 01 will be valid for all items and syatem will not look MMR at all for division
    Regards
    Raja

  • Delivery/PGI for Material

    Hi PS gurus,
    I  have one PO for Material a created against WBS. As PO was created manually how to do delivery/PGI for Material a.
    We can see the Stock in MMBE for that WBS & Material
    Note: - In CNS0 material a will not appear as PO was created manually.
    Help me how we can do delivery/PGI for Material
    Please throw light on this.
    Thanks
    MM

    Hello
    Can someone please explain me why we are discussing about the CNS0 with the consumption of material. we use CNS0 to deliver for the customer. how can we relate the CNS0 with the PO. In CNS0 the delievery projects it requires ship to party information and all. How come the consumption is comming into picture here?
    I am also trying to understand the process of delivery from projects.
    Regards
    Gokul

  • Creating a material with its classification using BAPI's

    Hi there,
               I am creating a function module to create a material master using BAPI's. I am using the BAPI 'BAPI_MATERIAL_SAVEDATA'. However I did not find a way to pass the classification details to this BAPI. As I need to create a classification data along with material basic data, can you please tell me how I can do it. Are there any BAPI's which I can use to create classification data?
             Please help, I have stuck here from a longer time.
    Thanks,
    Ganesh.

    hi
    good
    Use FM 'BAPI_OBJCL_GETDETAIL' to retrieve the classification data.
    Import params:
    1. Object key : give the material number
    2. Object table : give material master table i.e. MARA
    3. Class Num: Give the class name from which u have to fetch the characteristic data
    4. Class type: give '001' for material
    You will get the classification data in the following tables:
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    ALLOCVALUESCURR
    This should be helpful, do get back in case of any queries.
    thanks
    mrutyun^

  • Schedule line getting created for material whose stocks are maintained

    Hi Friends,
    I am having an unusual problem of schedule line getting created for material whose stocks are there in the system. I have created an SO for some material, and all the material is having sufficient qty in the system but still the system is generating schedule line.
    Can someone please advice what could be the problem and the solution to it.
    Regards,
    Wasim.

    Hello Wasim,
    - In TCode MM02, Check Scheduling in MRP2 Tab of Material master (if MRP is active.)
    - In Tcode OVZ9 - AvC control, for your Availability check maintain (eg. 02) in material & Checking Rule:A-SD order.
    Whether Check availability without replenishment lead time is unchecked, as this Indicates whether, during the availability check, the system checks the replenishment lead time. So, Items for which the delivery date falls within the replenishment lead time, but for which there is no inventory, are confirmed for delivery after the replenishment lead time. In the case of items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be confirmed.
    Thanks & Regards
    JP

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

  • Report for material with sloc,qty available, and production order

    hi friends, i need advice on getting this report for material with qty and specific sloc with the corresponding Prodn order numbers. in mb51 i could get all these details except the prodn order no. could you advice me please?

    to make sure you know how to do this.
    In the material document list, hit "Ctrl+F8" on your keyboard.
    A window will pop up. Click on the button position and look for "order" in the list of available fields. That should do it.
    Rgds.

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • CK40N - Update for material with price control 'V'

    i Experts,
    When im running standard cost estimate in CK40N, say for material types semi finished. The components that is raw materials of the SFG is also updated with the price, meaning for a raw material with price control 'V' has a price of 10, after
    releasing the cost estimate for the SFG, when i look into the material master of raw material, the price of 10 is also updated
    in the standard price.
    I am not sure why this is happening, i believe it should not happen. Because in the valuation variant, if i give the strategy as standard price, this price is easily picked up. And more over with price control 'V', i can change the standard price. Can anybody throw some light on this.
    Best regards
    gj

    Hi Rakesh,
    Thanks for the information. But i do agree even during release there is no impact on the inventory. But in my cost variant, say in PPC1, if i give the strategy say 1. standard price 2. moving average price, during cost estimate run, its going to take the standard price for the material irrespective of the price derived automatically for moving average price. For eg in our case for raw material with price control 'V' after sce run if the standard price is 10 and moving average price is 14, as per strategy of PPC1 above its going to take 10 and not 14.
    Is there any other way to avoid this. Please correct me if i had went wrong somewhere.
    Best regards
    gj

  • Searching for material with material group

    Hi Friends,
    How to get the old material no. material no., description after searching for material with material group.please reply....

    SE16
    table MARA
    field BISMT is the old number
    MATKL is material group
    table MAKT
    MAKTX description
    you can make a query join with MATNR
    Best Regards

  • How to create Deliveries with lesser quantity than sales order quantity

    HI all,
    I have one Scheduling Agreement SCHDMNT1 with ITEM A and Qty 100. Now i want to create 2 deliveries against this Agreement i.e DEL1 - ITEM A QTY 40 and DEL2 - ITEM A QTY 60. How to aceive this while manually entering the deliveries. What are the settings required. I also want to create such multiple deliveries against one Sales Order. What are the Configurations required to aceive this functionality.Replies will be highly appriciated.
    Thanks and Regards,
    Manish Khare.

    Hi,
    In the customer master, you have to select more than one delivery allowed.
    While creating delivery with reference to your sales order, the total quantity will be copied to delivery, just the change the delivery quantity and picking quantity that u want to deliver and do the PGI.
    Against reference the same SO, now the remaining qty will default in the delivery. In this way u can have multiple deliveries for the same SO.
    Hope this helps.
    Thanks,
    Viswanath

Maybe you are looking for