Closing sales order containing cancelled item

Hello,
This is the scenario.  You create a sales order containing 3 items and add the order.  One of the items then gets cancelled (in item master data).  You then try and close or cancel the order.  A red line error message is displayed saying 'Item cancelled' with the item code after it.  Is there a way of closing a sales order which contains a cancelled item? I have tried removing the item from the order but am unable to update it afterwards - it shows the same error.
Many thanks,
Kate

Hello Kate,
A precaution is always needed when you cancel any items.  You need run a simple query such as:
SELECT * FROM RDR1 T0 WHERE T0.ItemCode = '[%0\]' to check any Sales Orders contain this code.
Thanks,
Gordon

Similar Messages

  • Closed Sales orders in Open Item list

    Hi all,
    I facing a problem,
    I have closed few sales orders through right click and close but those are still visible in open sales order list report,
    can anybody please help me in this regards,
    Regards,
    Atul Joshi

    Hi
    It looks to me was database inconsistency however you said it didn't show any result .
    Since sales order donot post journal entry ,you can do it
    1>> Go to particular sales order
    2>>  in menubar ,go to data >> close
    (considering the this sales order was supposed to be close ,but somehow it is open)
    it will ask you to do you want to close  and yes .
    And also ,if you are SAP 2007 A  patch 35, please upgrade as i have seen a lot of thread  regarding this particular patch (Not mandatory just suggestion)
    Before you do this , I would suggest you to back up the file and test it in your test environment .
    If all of this didn't resolve ,I would suggest you to log to sap for support .
    Thank you
    bishal

  • Creation of sales order from idoc; items referencing to different contracts

    Hi All,
    My requirement is to create sales order from an idoc.
    IF a sale order contains multiple items , then the order should be created with contract referenced
    -at the So item level, the valid contract found for each material is different
    hence am not able to use the following bapis
    BAPI_SALESORDER_CREATEFROMDAT2  is not triggering the copy controls.
    BAPI_SALESDOCUMENT_COPY  i can give only one reference document
    Please help
    Thanks
    Deepa

    Hi Deepa,
    Following link can help you for creating sales order with reference
    http://msdn.microsoft.com/en-us/library/cc185190.aspx
    http://www.sap-img.com/fu036.htm
    Award points if useful
    Thanks,
    Ravee..

  • Closing sales line with batch item

    Hi all,
    I´m going to closing a sales line by DIAPI. If the item isn´t managed with batch item, the line closed well. But in other case i have this error:
    "Document rows cannot be closed concurrently with the other document modifications you have made  RDR1.LineStatus[line: 0]"
    I try to quit all formatched search that i have in sales line level. I read all the posts about this (i think), and i can´t solve this problem. I think that´s a bug because if i try to close manually, all is correct.
    My code is this:
    if (oPedido.GetByKey(4617))
                    oPedido.Lines.SetCurrentLine(0);
                    //oPedido.Lines.Quantity = 11;
                    oPedido.Lines.LineStatus = BoStatus.bost_Close;
                    if (oPedido.Update() != 0)
                        SBO_Application.StatusBar.SetText(
                            "Error message",
                            BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error);
    I try to put this code in first lines of the addon , i don´t touch any other data, only close line,  i try with garbage collector.....
    Regards.

    Hello Kate,
    A precaution is always needed when you cancel any items.  You need run a simple query such as:
    SELECT * FROM RDR1 T0 WHERE T0.ItemCode = '[%0\]' to check any Sales Orders contain this code.
    Thanks,
    Gordon

  • Free Goods - Not showing in sales order as subsequent item

    Dear Gurus,
    I have created a Free Goods procedure determination and maintained it at Customer/ Material level in VBN01.
    The procedure is inclusive as follow:
    For every 100 units purchased, the customer gets 10 units free
    However at sales order level there is no indication at all that the Free Goods are being triggered.
    When I check the pricing procedure, the condition record NA00 that I have used doesn't show-up.
    There is no subsequent item in the sales order under the main item showing the Free-Goods discount.
    Could you please help me go through the customizing process to correct the error?
    Many thanks for your help
    Chris

    Hi,
    FYI
    Free goods can be configured in SAP by following two methods.
    (1) Manually
    (2) Automatically
    Manually: By specifying higher level item category for a line item we can determine free goods as a free of charge
    items during sales order processing.
    Automatically: System proposes free of goods automatically in the sales order. In automatic free goods
    configuration system follows two methods.
    (1) Exclusive
    (2) Inclusive
    Exclusive: System configures free goods in exclusive option like free goods quantity is going to be excluded in
    order quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 10 + 1.
    Inclusive: System configures free goods in inclusive option like free goods quantity is going to be included in order
    quantity. Ex: For 10 items 1 item is free. Then system configures free goods as 9 + 1.
    NOTE: In exclusive method other items also can be given as a free of charge items for order item.
    Configuration steps: INCLUSIVE
    SAP follows condition technique to configure free goods automatically.
    Maintain pricing procedure
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Condition technique for free goods
    Maintain pricing procedures
    Choose free goods procedure NA0001 and select it
    Click on copy icon on application tool bar and rename it Ex: SRI001
    Condition type is NA00 and Access sequence also NA00
    Save it and Exit
    Activate free goods determination
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Condition technique for free goods
    Activate free goods determination
    Go to new entries
    Specify our sales area, document pricing procedure, customer pricing procedure and specify our free goods
    procedure Ex: SRI001
    Save and Exit
    Control free goods pricing
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Control pricing for free goods item category
    Choose item category TAN from position button
    Specify the pricing as X = Pricing standard
    Choose item category TANN from position button
    Specify pricing as B = Pricing for free goods (100% discount)
    Save and Exit
    Maintain condition type for 100% discount
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain condition type for 100% discount
    Check whether condition type R100 is available or not (R100 = is 100% discount)
    Exit
    Maintain pricing procedure for pricing
    Path:
    IMG
    Sales and distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain pricing procedure for pricing
    Choose our pricing procedure form position button and select it
    Click on control data icon under dialog structure
    Include condition type R100 between the steps of discounts.
    Specify requirement = 55 and Routine No: 28 (100% discount) in Alt. CBV.
    Save and Exit
    Requirement 55: The Routine No. 55 is assigned to condition type R100. If the user wants to look both revenues
    and sales deductions for the free items since the product that we are going to give as a free of charge item can be
    sold separately in the same sales order. Then the item category of free goods TANN has the pricing value as B.
    Then the system calculates value of the free goods as 100% discount as we discussed above the same material [that
    is going to be given as a free of charge item]. Some times the same item is going to be given as a normal item.
    Then system calculates price for normal item and system should not calculate price for same item [free of charge
    item]. So as to perform this calculation we have to assign Requirement/Routine 55 is to assign condition type
    R100.
    Alt CBV = 28: [100% Discount] Condition type R100 should be taken as a ZERO value. The formula 28
    calculates condition type R100 value as a ZERO.
    Set Transfer of cost to Main item: [Copy control]: Transaction code: VTFL
    Copy control is a concept by which the system copies the data from source document to target document.
    Path:
    IMG
    Sales and Distribution
    Basic functions
    Pricing
    Free goods
    Control free goods pricing
    Set transfer of cost to main item [copy control]
    Choose Billing type F2 Delivery document type LF from position button
    Select it and click on itemicon under dialog structure
    Choose item category Ex: TAN
    Click on details icon
    Click on display or change icon
    Choose item category as TAN again
    Select it and click on details icon
    Check cumulative cost
    Save and Exit
    Cumulative cost controls whether the cost value (VPRS) is to be copied from relevant sub items into main items.
    Sub items cost are not relevant for billing.
    Maintain copying control: Transaction code: VTAA
    Path:
    IMG
    Sales and Distribution
    Basic functions
    Free goods
    Control free goods pricing
    Maintain copying control
    We maintain copy control at item level category for free goods. In this field we can control whether the
    free goods should also be transferred when we copy from one document to another document.
    Choose source document type as QT and target document type as OR from position button
    Select it and click on item control button under dialog structure
    Choose AGN item category from position button
    Click on display or change button
    Again click on AGN
    Click on details icon
    Check Re u2013 explode structure/Free goods
    Save and Exit
    This indicator controls whether the free goods are copied from source document to target document or redetermined
    again.
    Maintain condition records for Free goods [INCLUSIVE]: Transaction code: VBN1
    Path:
    Logistics
    Sales and Distribution
    Master data
    Conditions
    Free goods
    VBN1 u2013 Create
    Specify condition type NA00
    Click on key combination
    Specify all the data
    Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
    Specify the Material No., Minimum order quantity (Ex: 10), Specify [from] the free goods quantity (Ex:
    10), Unit of measure u201CEAu201D (Each), Free goods (are free goods) as u201C1u201D.
    Calculation procedure: We can specify the Routines for calculation procedure as 1 or 2 or 3
    1 = Pro u2013 Rata (Proportionate): Ex: If the customer places order for 100 cases of material u201CXu201D, then customer
    receives 20 cases of same material as free. That means, the business can say that buy 100 and get 20. If the
    customer orders for 162 cases, then system automatically grants 32 cases as a free of cost (162x20/100 = 32 Cases).
    2 = Unit of reference: When customer orders for 100 cases of material u201CXu201D, then the customer receives an
    additional 20 cases as a free of goods. That means business can say that buy 100 get 20 free by granting 200 free
    for every full of 100 cases. The customer places order for 162, then system automatically grants only 20 cases
    (100x20/100=20).
    3 = Whole unit: When a customer places order for 100 cases of material u201CXu201D, then the customer receives additional
    20 cases of material u201CXu201D as a free of goods item. The business can say that buy 100 and get 20 free of charge items.
    If the customer orders for increment of 100 that means 200 (100 + 100) items, then he gets 40. If he placed the
    order for 101 u2013 199 items he gets only ZERO.
    Save and Exit
    Condition record for EXCLUSIVE: Transaction code: VBN1
    Path:
    Logistics
    Sales and Distribution
    Master data
    Conditions free goods
    Specify the discount type u201CNA00u201D
    Click on key combination
    Click on Choose inclusive by clicking the INCLUSIVE/EXCLUSIVE push button
    Specify the sales organization, distribution channel
    Specify customer number and validity periods, material, minimum quantity, order quantity, unit of
    measure, calculation procedure, free goods (3)
    Specify additional material free goods (if other goods is going to be given as a free of charge item.
    Save and Exit
    Go to VA01 and raise the sales order for INCLUSIVE and EXCLUSIVE.
    See the Free Goods effect.
    Condition type NRAB = Free goods: Requirement = 59, Alt CBV = 29: [only for INCLUSIVE purpose]
    Requirement 59: We have to assign requirement 59 to the condition type NRAB. If the customer buys 100 cases
    of product u201CXu201D, then he receives 10 cases of the product free. If the user would not like the additional line item in
    the sales order for free goods rather than the discount of the 10 cases is represent in the same line item as other 90
    cases. If the free goods discount should not apply on credit for returns that do not make reference in the previous
    document.
    Alt CBV 29: The condition type NRAB is to be assigned with 29 formula to support inclusive free goods
    agreement where the user would have to apply the discount to the order item rather than having a sub item
    generated for the free quantity.
    Ex: The customer orders for 100 cases of product u201CXu201D, 10 cases are free instead of having a free sub item generated
    b the system to represent the free 10 cases, the user would like to have a discount applied to the 100 cases line item
    equal to the value of the 10 cases.
    NOTE: Free goods can only be configured on document category type u201CCu201D (OR). That means we cannot configure
    free goods on Inquiry and Quotation.
    Header Conditions
    SAP has delivered two kinds of condition types: (1) Header conditions
    (2) Item conditions
    Header conditions: The value of the header condition applies to the whole items in the sales document.
    Header conditions do not have any access sequence.
    So that, value of the header conditions should be maintained manually.
    Ex: HA00, HB00
    Configuration settings:
    Include condition types HA00, HB00 in V/08 in between the discount condition types.
    Go to VA01 and raise the sales order
    Select line item and go to Go to button
    Header Conditions
    Include condition type HA00 HB00 with values [HA00 is percentage discount and HB00 is absolute
    discount]
    If HA00 = 1%, then system applies 1% on base value on all items in the sales order.
    If HB00 = 100/- Rupees, then system applies 100/- Rupees proportionately to all items in the sales order. If sales
    order has two items, then system applies 50/- Rupees to each item.
    Click on activate button
    Go to item condition screen
    Check how system applied header conditions for line items
    NOTE: Make sure that sales order contains more than one item.
    Condition Scales
    We can maintain scales for each and every condition type. So that we can determine pricing conditions values
    depending upon the range of the order quantity.
    Ex: If you maintain condition record for PR00 for material one as a 100/- Rs. For 1 material, then we can maintain
    scales for this material like below:
    From Quantity Price
    1 u2013 10 1000
    11 u2013 20 999
    21 u2013 30 998
    31 u2013 40 997
    Configuration settings:
    Go to VK11
    Maintain condition record for PR00
    Select line item and click on scales icon on the application tool bar
    Maintain scales and scale rates accordingly
    Save and Exit
    Go to VA01 and raise the sales order
    Enter the order quantity according to the scale and see the scale effect
    Regards,
    Siva

  • How to Re-open a Closed sales order on which delivery is booked & returned

    Dear All,
    The scenerio is as such a Sales Order has been made and based on it a delivery note is made. After sometime the user reliazes that the delivery note has been wrongly made and he reverses the delivery by making a Return entry. Now as the delivery has been made the corresponding sales order has been closed and as Return has been booked, delivery note is also closed.
    Now the user wants that he makes a new delivery based on the same sales order but how can this be achieved as the sales order is already closed or how can the sales order be cancelled now.
    If we make a new sales order then in mothly sales order report it would be seen that two sales order are there and total monthly sales order value would be wrong.
    What is the best way to handle such situations.
    Regards,
    Kawish

    I agree that this is ridiculous.
    I wish SAP was there when I needed to tell any customers about this....

  • How Sales Order Created,Cancelled

    Hi Experts
    Can any one explain me on
    How a Sales Order is Created and Line Items are included to the Sales Order
    How the Created Sales Are Cancelled and How does
    What happens a Sales Order is cancelled at Header Level...technicall speaking all the line items in that sales order will also be cancelled
    When i checked the Change Logs are Header Level for a particular Sales Order it is displaying that sales order is cancelled
    But when i check the Change logs at litem level the cancelled info is not replicated
    How does this whole sales order is processed.......
    In which tables (I checked CDHDR,CDPOS)...THESE SALES ORDER ARE SAVE
    THANKS in advance

    hi,
    the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
    Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
    pls. reward if helpful
    regards
    Roberto

  • Cannot create reservation for a closed sales order

    Hi,
    IN the mtl_resrevation_interface errors iam getting the message as Cannot create reservation for a closed sales order for most of the items .
    when i check the details of the sales order line it is already closed.
    but why it is trying to insert the line in mtl_reservation though it is already closed.
    i want to know what would be the reason.
    Thanks,
    Vinod

    You may have a custom program that creates the records in the reservations interface table.
    That program may have a bug.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • BAPI:Create sales order from an existing open sales order for open items

    Dear All,
    Could any one suggest me any BAPI that can create sales order from an existing OPEN sales order for OPEN items. since we are closing all open orders and creating new orders with reference to existing open orders.   please suggest, its would be great help.
    Regards,
    Reddy

    hi suresh,
    we are changing tax procedure from formula to condition based, so this is the reason we have close all the open orders and recreate in TAXINN procedure, it is going to be large number of records( open orders), so....
    Regards,
    Reddy

  • Enhancement request for sales order closure/cancel

    Hi Guys,
    One of our customers  has requested that when a user goes to close/sales order, the standard system message is:
    "Cancelling or closing of this document is irreversible. Continue?"
    Can this be changed too:
    "Closing of this document is irreversible. Continue?" - when closing a sales order and "Cancelling of this document is irreversible. Continue?" when cancelling the sales order.
    Kind Regards
    Tanveer

    Hi
    Make use of this
    Order Confirmation BA00 /SMB40/RVADOR01 (ENTRY) SmartForm /SMB11/BL_SDORC_L
    Regards
    Kiran Sure

  • When sales order get cancelled

    Hi Gurus
    Please explain the  process when sales order is created for 10 QTY and production order released for 10 qty and all operations confirmed for 5 QTy & moved to FG remaining  5 no qty is in WIP, so then sales order get cancelled, and got another new sales order with different specifications with same qty.
    now i want convert the cancelled sales order qty to new sales order qty
    please explain me step by step
    with Regards
    Laxmipathi.G.V

    Hi
    Anyway you were doing the Activity confirmation for the 5 quantities at the operation stage.
    so the component only consumed for this production .when you check the material document for the particular confimation . you can see the component was consumbed. ( 261 movement)
    So you do the reverse the confirmation at the operation stage  CO13 . and you can reverse the components back to the production storage location back. (movement type 262)
    Edited by: raj on Jun 8, 2009 8:11 AM

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Sales order doc and item fields in customer line item report(FBL5N)

    Hi All,
    We have some billing documents and the accounting docs are created as well. However, in the FBL5N report, we are not able to display the sales order doc and item info even though the columns are avaliable in the layout.
    Anyone can help?
    Thanks,
    Teo

    Hiya,
    You said you had the Order/Sales Doc field on the layout already.
    Have you ever been able to view the Order? All I can view is the Billing Doc, and I would think that is logical, since the Order is not the immediately prceeding document for the Accounting Doc. The Accounting Doc is created off the Billing Doc and that is what is updated in BSEG. The Sales Order is not updated in BSEG (I haven't seen that happen).
    In the event of a GR into stock posting, the Product Cost Collector or PO is the immediately preceeding document and hence updated in BSEG.
    Cheers.

  • Sales order some line items are showing not relavant

    Hi SD Guys,
    In sales order some line items are showing not relavant.
    Why are they showing a status of not complete or "not relevant"?
    Thanks
    Sunny

    Hi sunny,
                     plz check the each line item in the sales order controls by the item category, so check the item category , depends on the item category, pricing,delivery and billing takes place.
    regards,
    ram.

  • Mass maintenance of Sales orders,or/and items

    Hi friends
    Need some help.
    Is there a transaction in SAP by which we can reject large numbers of sales orders, or/and items in sales orders in a mass maintenance way.
    We dont want to use MASS or VA05.

    HI
    Being an SD consultant if u know about how to record transactions in LSMW or BDC
    it will be very useful
    for exampl like if u want to create condition records for 12000 maaterials if u create lsmw and do recording u rwork will be easy
    if u dont know about LSMW or BDC
    just sit with u r abapper and ask him to do LSMW also u try to learn
    it is not mandatory but having an idea about LSMW and BDC or SCAT will be more useful
    regards

Maybe you are looking for