Deletion of open sales orders

Dear all,
we want to delete open sales orders .I searched forum unable to do .Please guide me.
Regards,
Suresh

hi
You can  delete the sales order using transaction VA02, but there should not be any subsequent document is created against it. Please let me know the error message you are still getting unable to delete so.
Deletion /cancellation can only happen even if the subsequent documents are NOT created. After cancelling the invoice and deleting the delivery document, we can set the reason for rejection at the Sales Order Header Level.
Steps:
1. Cancel the invoice through T code VF11
2. Reverse the Goods Issue using VL09, turn the pick quantity u2018zerou2019 in the delivery document
3. Delete the delivery document using VL02n.
4. Finally set the reason for rejection at the Sales Order Header Level. (So Bala, just check the SO you want to delete ever had any subsequent document? )
Note: An Invoice cannot be deleted but canceled. It can only be canceled with (VF11) only if the relevant accounting document is not generated. Generation of accounting document means the value is posted into accounts and G/L accounts are hit.
SAP FI department needs to reverse the accounting doc on a real-time scenario. Only after the accounting doc is reversed invoice can be canceled. Tax documents generated through the Invoice (Tax is maintained on a separate account) also need to be reversed but this is a part of FI so an SD consultant just needs to request the FICO guy to do the reversal
transaction MASS or VA05 you should be able to set the reason for rejection

Similar Messages

  • Mass Deletion of Open Sale Orders

    Hi,
       I want to implement Dynamic Credit Check in my Organisation, for that I want to delete all open sale orders. Is transaction code MASS suitable for deleting only <b>OPEN SALE ORDERS</b> or it deletes all sale orders. Can anyone help me out please.
    Regrds,
    Binayak

    Hi Binayak,
    The sales order deletion process would be updating many tables and hence I wouldnt recommend [MASS]. I feel it's better to use CATT. Check out the following link and let me know if you need any clarification on how to go about it.
    <a href="http://www.sap-img.com/sap-catt.htm">CATT - Intro</a>
    Also have a look at a CATT procedure explained, step by step, on 31/03/2007 for another mass updation requirement in the same forum with subject as 'Regarding Customer Master'.
    Regards
    Pratheb Nadarajah

  • Massive Deletion of Open Sales Orders/Deliveries

    Hi, I was wondering if anyone knows a massive transaction to delete open sales orders and deliveries.
    I try using de MASS transaccion but here I can only reject the items (in sales orders) but the thing is that the customer wants the open orders and deliveries to be deleted.
    Could anyone help me please?
    Thanks and regards!
    Lore

    Hi,
    You can only delete a complete sales document or delivery if there are no subsequent documents. For example, you could not delete a complete sales document if items had already been delivered and therefore, delivery documents had been created.
    If you want to delete a sales document, you effectively remove it from the database which means that it is no longer possible to analyze it. Therefore, its recommend that you work with reasons for rejection. Being the case it can be considered to reject the items rather.
    Hope it helps.
    Thanks & Regards
    Sadhu Kishore

  • Deleting a Contact on Customer Master with that Contact on Open Sale Orders

    Our current SAP system ECC 6.0 allows a user to delete a Contact from the Customer Master where that Contact is also on Open Sales Orders. 
    Then when our create delivery job runs, it abends saying Contact record not found.
    How is this normally handled ?  Are users not suppose to delete Contacts from the Customer Master if they are attached to an Sales Order ?  Is there some config to turn on in SAP that checks for Open Sales Orders before deleting a Contact in the Customer Master ?  Do I code this check in User Exit on the Save in the Customer Master and not let user delete the Contact if it's attached to Open Sales orders ?
    Would appreciate any help on this.
    Thanks,
    David

    Hi David,
    Try this user exit.
    RFDRRANZ  User exits: Accounts Receivable Information System
    Regards,
    Vijay

  • Deleting Partners from the Customer Master that are on Open Sales Orders.

    Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Customer Master.  For us, this is not happening, this there some config that must be turned on for this to happen ? 
    Or do we have place in code in a User Exit in the Customer Master to check for Open Sales Orders and if so, block the Deleting of the Partner ?  If so, what User Exit should be used ?
    Looking to see how others have handled this.
    Thanks,
    David

    Hi David,
    Try this user exit.
    RFDRRANZ  User exits: Accounts Receivable Information System
    Regards,
    Vijay

  • Deleting Open sales order - in mass

    When i checked VA05 , I found many open sales order over a period of time.I want to know whether any method is there to select some sales orders from that list and delete them in mass ie at one stretch.

    Hello,
    Please use the search option at SDN forum and do not post the repeated question !! Please refer the following link for detail information !!
    [DELETING OPEN SALES ORDER|Re: Mass sales order reject/delete]
    [LINK|http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/mass-deletion-of-sales-order-1201141]
    Regards,
    Sarthak

  • Changing Sold-to party on an open sales order deletes item text

    Hi,
    When changing the sold-to party on an open sales order document, all of the item text is deleted.  Is there a way to prevent this from happening, or is this standard?
    Thanks,
    Craig

    If u r wishing to change the sold to party for a particular item it means u r not selling that item to him. U cant have 2 different sold to parties  in a single sales order.. U can change other partner functions at sales order level but not sold to party partner function....
    U can assign reason for rejection to close this particular order and raise a fresh order in favor of the sold to party u wish to for that particular item...
    Message was edited by:
            srinivas rao

  • Open sales orders key figure in APO

    HI Gurus,
    Can anyone please throw some light as to where i need to be looking in this scenario. Our BW resource extracts open sales order quantity from ECC and loads into APO DP. The issue that i'm seeing is the open sales order quantity key figure is not getting updated properly in APO. For example to begin with we have a quantity of 800 EA in the period of 12/2014 (we go by fiscal period and in this case 12 would represent September 2014), 01/2015(October 2014), 02/2015(November 2014). The customer service group has deleted the quantity completely from period 12/2014 (September 2014) in ECC. But when i look in the planning book in APO, i can still see the quantities in the periods of 12/2014, 01/2015 and 02/2015. I was expecting the quantity from the period of 12/2014 to not showup in APO as it has been deleted in ECC. Our BW resource also confirms that he has loaded it properly in APO. Where can i start looking to resolve this issue.
    Thanks
    Ravi

    Dear Subhash, Thanks for your reply and i apologize as APO DP is new to me and i'm picking up things, can you please guide me to which tcode should i be going and checking this. Also reloading the planning area can you xplain a little more please
    Okay i have checked in the tcode /SAPAPO/TSCUBE and this is setup in the process chain for us which runs once a month on the opening day of the period. I hope this is what you were referring to?
    Under the key figure assignment in TSCUBE tcode, i see that the 'Add data" check box is not checked under Target area.

  • MRP not considering open purchase orders when planning for open sales order

    Dear Experts,
        1.I have open sales orders as well as planned Independent requirements for finished goods for the current month. Also I have open puchase orders for raw materials which is part of the Bill of material of the finished goods for the current month.
    Please what do i need to do to make MRP consider my open purchase orders when the system is planning for the open sales orders.
    2 what tcode can I use to delete all purchase reuisitions in the sytem

    There was no response to these questions so i had to close it to make space for another

  • Open Sales Order  table with multiple schedule line....

    YUSUF BHORI wrote:
    Hi Experts,
    In Sales Order there are multiple schedule line for single item.
    Where and in which table i can find open qty for order ,material, item and schedule line items.
    I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
    Urgent,
    Yusuf.

    Hai,
    Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
    Get Open Sales order items from VBUP into GT_VBUP  where VBUP-GBSTA  NE  'C'.
    LOOP at GT_VBAP.
    Read table GT_VBUP with key vbeln & posnr.
    If sy-subrc <> 0.
      delete GT_VBAP.
    endif.
    ****Fill your Final Report Internal table with required field values **Append into that internal table
    ENDLOOP.
    Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
    LOOP AT  GT_VBEP.
    *******Again Modify your Final Report internal table with these values
    ***VBEP-WMENG is Ordered Qty
    ***VBEP-BMENG is Confirmed Qty
    ************Open Qty     = Ordered Qty      = Confirmed Qty***
    ************Open Qty     = VBEP-WMENG = VBEP-BMENG.***
    ENDLOOP.
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM

  • Open sales order value for credit check need to be changed (S066)

    Hi all,
    I need to change open sales order value which is already there in S066 table.
    Previously we had used open order value for credit check. Open order values are already updated in the S066 table.
    Now we dont want to consider open order value for credit check (which is already included in the credit exposure field in FD32).
    When we create sales order system is taking old open order value for credit. Now i have changed not to update open order value for credit check. Now its not updating open order value. But my issue is how to change existing or (previous) open order value for credit?
    Can i change S066 table data directly to '0'. Is it advisable to chage open order value directly from this table?
    Please advise me.
    Regards,
    Babu
    Edited by: babs on May 19, 2010 4:26 PM

    Hi Babs,
    If you doesn't want to reflect the open order value in the structure for this order value ,If the order is not processed kindly delete the line items and the order. Then save the document. Then try to see the structure S066.. This will be modified.
    If you want to modify the value then follow the below process.
    Otherwise delete the line item in the order and change the pricing date and the document date. Re enter the line item again so that it will take it up the new changes.
    I hope it will help.
    Regards,
    SK

  • Excluding open sales order & Deliveries in Credit management

    Hi All,
           I dont want to update all the open sales orders and deliveries in sales value in FD32. For this I have done the configuration and it is working fine. But after the configuration, system will delete the existing records in S066 & S067 and will not create records further even we create new sale order, del & inv.
    Now I want to know wether there will be any problem if the records in S066 & S067 were deleted and will not be created further. And I also want to know wether the data in these infostructures (S066 & S067) were used anywhere in the system or not?
    Kindly help me out in this.
    Ratna

    Hi,
        My requirement is while doing credit check system should consider only open invoices, not sales order or deliveries. For this I did the following.
        After running the program all my records in S066 & S067 will be deleted as I have deleted the update group under credit control area. Giving blank in update group under credit control area, will not update any open sales values or deliveries in FD32 for freshly created documents. But already there will be some existing open orders & del in the system which will show as sales value in FD32. This value will not be cleared for ever as there was no update group. So I want to clear these sales value in FD32. So I will run the program after deleting the update group and so the system will delete all the records in S066 & S067 and sales value will be zero in FD32 which is as per requirement.
    Now I want to know will there be any problem by deleting this records. Wethere these records are anywhere used in the system other than FD32???
    Kindly update
    Ratna

  • LSMW BAPI Open Sales Order Load - How to update conditions?

    Hello gurus,
    I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
    Would greatly appreciate an answer ASAP.
    Thanks a lot in advance,
    Wayfarer

    Thanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
    Thanks,
    Wayfarer

  • How to convert open sales order status to close

    Hi Guru,
    There are lot of sales order in Open status and Overall status is Being processed, i have given the reasoning on Header and Line items and checked the Complete status. I also blocked the billing & delivery by using t-code VA02. when I see the open sales order in VA05 then these sales order exists in VA05 with staus A - Open.
    Please guide / help me that what i have to do to close these order or convert open sales order status in complete or short close.
    Best Regards,

    Thanx Experts,
    It is working, But it is not working in those sales order which order qty, delivery qty, confirm qty = 0, kindly let me know what is the way out to remove such sales order from the open sales order list. I try to delete but SAP says "This document cannot be deleted" Pl. help...
    Thanx for solutions.
    Regards,
    Edited by: VijayAngrish on May 18, 2010 7:48 AM

  • Change of open sales order : using BAPI

    Hi
       this  is ravi
                      can any one help me on this  topic
            1)change of open sales order  using BAPI .With appropriate reason( like header level reason)
                       thanks & regards

    hI,
        chk this FM BAPI_SALESORDER_PROXY_UPLOAD how the FM BAPI_SALESORDER_CHANGE was used
    Check this code,
    REPORT Z_SALES_ORDER_CHANGE
    NO STANDARD PAGE HEADING
    LINE-SIZE 132
    LINE-COUNT 65(0)
    MESSAGE-ID ZZ.
    TABLES: VBAP.
    DATA:
    V_FILEIN(90) TYPE C,
    V_RECIN TYPE I,
    V_RECVBAP TYPE I,
    V_RECORDER TYPE I,
    V_VBELN LIKE VBAP-VBELN,
    ORDERHEADERINX LIKE BAPISDH1X.
    DATA: BEGIN OF I_ORDERS OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    BRGEW(18) TYPE C,
    VOLUM(18) TYPE C,
    END OF I_ORDERS.
    DATA: BEGIN OF I_OUTPUT OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    GEWEI LIKE VBAP-GEWEI,
    BRGEW LIKE VBAP-BRGEW,
    VOLUM LIKE VBAP-VOLUM,
    CKWGT TYPE C,
    CKVOL TYPE C,
    END OF I_OUTPUT.
    DATA: BEGIN OF ORDERITEMIN OCCURS 0.
    INCLUDE STRUCTURE BAPISDITM.
    DATA: END OF ORDERITEMIN.
    DATA: BEGIN OF ORDERITEMINX OCCURS 0.
    INCLUDE STRUCTURE BAPISDITMX.
    DATA: END OF ORDERITEMINX.
    DATA: BEGIN OF RETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF RETURN.
    DATA: BEGIN OF BAPIRETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF BAPIRETURN.
    PARAMETERS:
    P_PATH(45) TYPE C DEFAULT '/usr/users/ftpsapom/' LOWER CASE,
    P_FNAME(32) TYPE C DEFAULT '/sweetjo.txt' LOWER CASE.
    START-OF-SELECTION.
    CONCATENATE PATH AND FILE NAME INTO ONE VARIABLE
    CONCATENATE P_PATH P_FNAME INTO V_FILEIN.
    OPEN DATASET
    IF V_FILEIN IS INITIAL.
    MESSAGE E002 WITH 'FILE' V_FILEIN 'DOES NOT CONTAIN ANY DATA!'.
    ELSE.
    OPEN DATASET V_FILEIN
    FOR INPUT
    IN TEXT MODE.
    IF SY-SUBRC = 0.
    READ DATASET
    DO.
    READ DATASET V_FILEIN INTO I_ORDERS.
    IF SY-SUBRC = 0.
    APPEND I_ORDERS.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CLOSE DATASET
    CLOSE DATASET V_FILEIN.
    IF SY-SUBRC <> 0.
    MESSAGE E002 WITH 'ERROR - CLOSING' V_FILEIN.
    ENDIF.
    ELSE.
    MESSAGE E002 WITH 'ERROR - COULD NOT OPEN' V_FILEIN.
    ENDIF.
    ENDIF.
    SORT AND REMOVE DUPLICATES FROM I_ORDERS
    SORT I_ORDERS BY VBELN POSNR.
    DELETE ADJACENT DUPLICATES FROM I_ORDERS.
    POPULATE I_OUTPUT
    LOOP AT I_ORDERS.
    SHIFT I_ORDERS-POSNR LEFT DELETING LEADING SPACE.
    CONCATENATE '0' I_ORDERS-POSNR INTO I_ORDERS-POSNR.
    SELECT SINGLE BRGEW VOLUM
    FROM VBAP
    INTO (VBAP-BRGEW, VBAP-VOLUM)
    WHERE VBELN = I_ORDERS-VBELN
    AND POSNR = I_ORDERS-POSNR.
    IF SY-SUBRC = 0.
    IF VBAP-BRGEW = 0.
    I_OUTPUT-CKWGT = 'X'.
    ENDIF.
    IF VBAP-VOLUM = 0.
    I_OUTPUT-CKVOL = 'X'.
    ENDIF.
    I_OUTPUT-VBELN = I_ORDERS-VBELN.
    I_OUTPUT-POSNR = I_ORDERS-POSNR.
    I_OUTPUT-GEWEI = 'ST'.
    I_OUTPUT-BRGEW = I_ORDERS-BRGEW.
    I_OUTPUT-VOLUM = I_ORDERS-VOLUM.
    APPEND I_OUTPUT.
    CLEAR: I_OUTPUT.
    ENDIF.
    V_RECIN = V_RECIN + 1.
    ENDLOOP.
    POPULATE BAPI DATA AND RUN BAPI
    CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
    RETURN, BAPIRETURN.
    REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
    ORDERHEADERINX-UPDATEFLAG = 'U'.
    LOOP AT I_OUTPUT WHERE CKWGT = 'X' OR CKVOL = 'X'.
    V_RECVBAP = V_RECVBAP + 1.
    IF I_OUTPUT-VBELN <> V_VBELN AND SY-TABIX <> 1.
    V_RECORDER = V_RECORDER + 1.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = V_VBELN
    ORDER_HEADER_INX = ORDERHEADERINX
    TABLES
    RETURN = RETURN
    ORDER_ITEM_IN = ORDERITEMIN
    ORDER_ITEM_INX = ORDERITEMINX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPIRETURN.
    WRITE OUT RETURN
    LOOP AT RETURN.
    WRITE: / RETURN.
    ENDLOOP.
    WRITE: / BAPIRETURN.
    SKIP.
    CLEAR: ORDERITEMIN, ORDERITEMINX,
    RETURN, BAPIRETURN.
    REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
    ENDIF.
    ORDERITEMIN-ITM_NUMBER = I_OUTPUT-POSNR.
    ORDERITEMIN-UNTOF_WGHT = I_OUTPUT-GEWEI.
    IF NOT I_OUTPUT-CKWGT IS INITIAL.
    ORDERITEMIN-GROSS_WGHT = I_OUTPUT-BRGEW.
    ORDERITEMINX-GROSS_WGHT = 'X'.
    ENDIF.
    IF NOT I_OUTPUT-CKVOL IS INITIAL.
    ORDERITEMIN-VOLUME = I_OUTPUT-VOLUM.
    ORDERITEMINX-VOLUME = 'X'.
    ENDIF.
    APPEND ORDERITEMIN.
    ORDERITEMINX-ITM_NUMBER = I_OUTPUT-POSNR.
    ORDERITEMINX-UNTOF_WGHT = 'X'.
    ORDERITEMINX-UPDATEFLAG = 'U'.
    APPEND ORDERITEMINX.
    V_VBELN = I_OUTPUT-VBELN.
    ENDLOOP.
    RUN BAPI ON LAST ORDER
    IF NOT ORDERITEMIN IS INITIAL.
    V_RECORDER = V_RECORDER + 1.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = V_VBELN
    ORDER_HEADER_INX = ORDERHEADERINX
    TABLES
    RETURN = RETURN
    ORDER_ITEM_IN = ORDERITEMIN
    ORDER_ITEM_INX = ORDERITEMINX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPIRETURN.
    WRITE OUT RETURN
    LOOP AT RETURN.
    WRITE: / RETURN.
    ENDLOOP.
    WRITE: / BAPIRETURN.
    SKIP.
    ENDIF.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT FROM FILE ', V_RECIN.
    SKIP.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT OF LINES TO CHANGE ', V_RECVBAP.
    SKIP.
    WRITE OUT RECORD COUNT FROM FILE
    WRITE: / 'RECORD COUNT OF ORDERS TO CHANGE ', V_RECORDER.
    SKIP.
    TOP OF PAGE
    TOP-OF-PAGE.
    WRITE:/1(5) TEXT-H01, 6(8) SY-DATUM MM/DD/YY,
    100(8) TEXT-H02, 126(8) SY-PAGNO.
    WRITE:/1(5) TEXT-H03, 6(8) SY-UZEIT USING EDIT MASK '__:__:__',
    20(77) TEXT-H04,
    100(8) TEXT-H05, 108(25) SY-REPID.
    WRITE:/1(6) TEXT-H06, 8(12) SY-UNAME,
    20(4) TEXT-H07, 25(32) SY-HOST,
    100(13) TEXT-H08, 121(8) SY-SYSID,
    129 '/', 130(3) SY-MANDT.
    ULINE.
    SKIP
    <b>Reward points</b>
    Regards

Maybe you are looking for

  • My printer's IP address isn't showing up on my config report!

    I have quite an annoying problem: I've been trying to connect my printer wirelessly for a while now, but the same problem keeps coming up: I can't seem to find my printer's IP address! I've printed out many config reports through my printer, and I've

  • Windows 7 and LaserJet 1022nw via ad-hoc

    I am trying to establish a connection between my laptop and the 1022nw via ad-hoc and I am not having much luck. The install cd that came with the printer is no help. I was able to set up the printer using an existing wireless network in infrastructu

  • Putting videos in ipod?(used videora)

    I downloaded a bunch of videos from limewire and then put them on itunes. i used videora ipod converter to change the format of the videos to mpeg4 but when i tried to put them in the ipod it didn't work.

  • X-fi softwear does't recongnize my sound c

    Today I took my network card out and put it back in. I also put my new xfi xtreme music in too. When I tried to install the driver/software for my network card and my xfi card, it wouldnt work. I've formatted 4 times already. I disable onboard sound

  • Cannot Save Website

    Hello all, When I try to save my website, an error comes up saying, "Couldn't save image." Description: genericpicture.png. I have searched everywhere for this file, but it just isn't on my site, i really need to save this! Any suggestions? Ah yes, a