Cancel Open Sales Order

Hi Guru's ,
I had a query regarding open sales order . We want to cancel the open sales order daily .
The requirement is to cancel the order if it is open for 3 working days automatically through a report .
Can I directly update the entry in the table VBAP AND VBAK depending on the order status .
Is there any other alternative for this .
Please suggest .
Regards,
Archana W

Never ever update a SAP db table directly.
Find a relavant BAPI to do so, and write a report program which will be run in background. Schedule the job using SM36.
If you don't find a relavant BAPI (after thorough research) create a BDC using SHD0.
regards,
Aabhas
Edited by: Aabhas K Vishnoi on Sep 25, 2009 3:25 PM

Similar Messages

  • 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

  • How to Cancel a Sale Order without cancelling the subsequent document.

    Dear All,
                 I want to cancel sale order but the sale order have a subsequent document is there is any soulution that when i cancel the sale order all the subsequent document, outbound delivery and invoice cancelled in jn\ust one step, if not then what is the other way to solve that problem.

    Hi
    You can reject the sales order by going to VA02
    Go to-> Item -> Enter Reason for Rejection
    and save the order.
    This will reject the order even if the subsequent documents are created so that no further open quantities can be delivered.
    Reward points if useful.
    Regards,
    Nimit
    Edited by: Nimit Raiya on Jul 3, 2008 4:03 PM

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • Global  price update in existing open Sales Order

    Hi  Expert Team ,
    I have one scenario -
    My customer will enter a sales order .
    For example :
    Customer A buy X at 10 at 05/26/2009 and his delivery date is 05/30/2009
    Management decide to do cost down by 15% of product A  from 05/30/2009.
    Business rule here is :
    When customer sells at 05/30/2009 , price should reflect 15% inexisting order as well as new order .
    For new order , we can specify the special and period volume discount , it will apply to new order .
    In this scenario , how can we update the sales price of open sales order .
    What are my options beside updating manually or DTW
    Thank you
    Bishal

    If your Sales Orders are not locked by approval procedure, you could use DTW to update them.  Otherwise, you may have to cancel the old and create new orders.
    Thanks,
    Gordon

  • Open Sales Orders Backlog Report

    Hi All: I have been asked to create Backlog reports for Open Sales Orders and the revenue amounts for the next 15days, one month, 2 months, 3 months 6 months etc etc. Does anyone know of a standard report that covers that and the business content and cues that go with it?
    Thanks in advance
    Bobby

    I haven't seen any standard content for it, with my client, we actually developed the open order report from Item extractor and status extractor. And compare the created on date to the system data to see how long it has been opened for and put it in different buckets.
    Hopes that help.
    thanks.
    Wond.

  • Logic for Open Sales order qty

    What should be the logic given to determine "open sales order qty" during designing a report.
    Note the criterias are as under:
    1) Open sales order qty is the confirmed qty less the delivery qty.
    2) The delivery qty should be delivery order qty (The delivery should not necessarily be pick, packed & PGI)

    sorry it doesn't work for services, since they do not create requirements.
    in this case you can use VBFA table, subracting all the delivered quantities VBFA-RFMNG with VBFA-VBTYP_N = J and VBFA-VBELV/VBFA-POSNV = to your order/item from the ordered quantities
    hope  this help you.
    Roberto

  • Report for open sales order

    Dear all,
    I need to create a open sales order report. Could you please tell me from which table i can get open sales order. Its standard report is VA05 and also I checked in table VBBE. but all record which i get from VA05 are not visible in VBBE table. It means VBBE doesnt carry all pending open records.
    Please guide me from which table i can get it or what is the sriteria to get it?
    Thankyou very much in advance
    Punnet Sharma

    hi,
    my logic goes like this:
    Note: Open cursor is used since we are dealing with huge amnt of data:
    * Select orders based on their Delivery status
      SELECT  vbeln
      FROM vbuk INTO TABLE git_vbuk
          WHERE lfstk = 'A' OR lfstk = 'B' .
    * Filter selected orders
    * Selection using open cursor
      DATA: lwa_op_sal_ord1 TYPE gt_comtab.
      IF sy-subrc = 0.
        OPEN CURSOR c1 FOR
          SELECT vbap~matnr
          FROM vbap INNER JOIN vbak
          ON vbap~vbeln EQ vbak~vbeln
          FOR ALL entries IN git_vbuk
          WHERE vbap~vbeln = git_vbuk-vbeln AND
                vbak~vbtyp = 'C'.
        DO.
          CLEAR lwa_op_sal_ord1.
          FETCH NEXT CURSOR c1 INTO CORRESPONDING FIELDS OF lwa_op_sal_ord1.
          IF sy-subrc = 0.
            APPEND lwa_op_sal_ord1 TO li_op_sal_ord1.
          ELSE.
            CLOSE CURSOR c1.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
    here filter orders based on 'A' and 'B' from VBUK...
    then frm header table VBAK get order for vbtyp ='C'.
    now li_op_sal_ord1 will have open sales orders..
    Moreover as per ur query y do u need the item data frm VBAP as u are only concerned abt VBELN.
    If u need item u hv 2 run another select.
    regards,
    ags

  • Close Open sale order items

    Hi,
    We have a business scenario of one sales order --> one delivery document. Any items which have not been confirmed for delivery need to be closed out so that they do not show up as open requirements.
    One way is to reject the open line items. However, rejection reduces the original customer sales order value.
    Is there any other way that the open sales order line items can be changed in status so that the pricing is intact, but the item is closed out ?
    Would appreciate inputs from the forum
    Thanks

    Hi
    In standard itself this can be achieved
    In t code OVAG itself for your reason of rejection if you maintain BLANK in the statistical column
    Then those rejected values will not be reflected in sales order
    Suppose  a sales order contains three materials say
    Material A  qty 3 units
    Material B  qty 3 units
    Material C  qty 2 units
    Each and everything is priced as 10 US dollars
    then the nett value of this order will be 80 US dollars
    Suppose if you reject Material C  qty 2 units with a reason of rejection by maintaining the settings that i mentioned above the sales order value still Will  be  80 US dollars and will not become  60 US dollars
    This is what you are looking for (i hope so)
    Please try this
    Regards
    Raja

  • Reg : open sale order

    hai to all
    i my senario i should download the open sale order existing in the present production server into a flat fle
    can anyone tell me where this ship- to party is getting stored while creating the sale order. please let me know the table name.
    regards
    vijay

    Hi Vijay,
    To find out Open Sales Order. You shoud get them from VBUK-GBSTK <> 'C'. Store them in internal table.
    To get Ship-to-party, you can get it from VBPA (partner table).
    VBPA-VBELN = sales order number
    VBPA-POSNR = '000000'
    VBPA-PARVW = 'WE' or 'SH'
    You will get details for Ship to Party.
    regards,
    ram

  • Open sale order quantity in VA05

    hi all,
    can anyone please tell me the function module or bapi or Table to find out open sales order quantity coming in VA05.
    regards.

    First of all define what is open , is it created but notdelivered , or delivered but not invoiced.
    The table VBUP has flags for statuses eg
    A     Not yet processed
    B     Partially processed
    C     Completely processed
    A for open , B for partial C for complete , so by checking this table you will find which are actually delivered or invoiced completely.
    Tcode V.02 gives u this option.

  • Open Sale Order Value (FD33) not getting diminished even after closing SO?

    Hi,
    Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
    What could be the reason ?
    Pls help.
    Regrds,
    Binayak

    Hi Binayak,
    As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
    Some precautions
    1. Always run the program in background by scheduling a job.
    2. The idle time is around midnight when no user is working on SAP.
    3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
    4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
    Hope this clarifies..
    Regards,
    Madhu.

  • Open sale order

    In a report i am in need of obtaining open sale order for a material. open sale order means sale orders for which the PGI is not yet done.
    can anybody tell me how to achieve this..

    Dear,
    Go to VA05 and enter the date range/material or customer code as required.
    Check the option "open sales order"
    Enter the sales organisation and hit enter.
    Now system will display the open SO's.
    Regards,
    Joseph Charles Vaikathussery

  • Open Sales Order Deposits Report

    Experts,
    Is there a way to report on all deposits taken for open sales orders?
    So for every open sales order, I want a total of the payments taken on those orders.
    thank you,
    Bob

    Gordon,
    That did it. I just added one more WHERE criteria to only select orders that have deposits.
    Thank you!
    Bob
    SELECT Distinct t0.Cardcode as "Customer#", t0.Cardname as "Customer Name",  t0.Docnum as "SO #", t0.DocDate, t0.DocDueDate, t0.DocTotal as 'Sales Order Total', t3.DocTotal as 'Deposit Total'
    FROM dbo.ORDR t0
    inner join dbo.rdr1 t1 on t1.docentry = t0.docentry left join dbo.dpi1 t2 on t2.BaseEntry = t1.DocEntry and t2.BaseType = 17 left join dbo.odpi t3 on t3.DocEntry = t2.DocEntry WHERE  t0.DocStatus = 'O' and t3.docentry is not null
    Order by t0.Cardcode
    Edited by: Robert Welch on Mar 9, 2010 9:49 PM
    Edited by: Robert Welch on Mar 9, 2010 9:49 PM
    Edited by: Robert Welch on Mar 9, 2010 10:02 PM

  • Open sales orders

    Hi All,
    I need to sum up the open sales order quantities to obtain past due and future open orders.can any one help how to get it.
    -Ram

    Good
    try with VA05. more over Use VBAP VBAK tables with using status field.
    [Thank you so much for understanding us|Re: Help]
    Edited by: Amit Gujargoud on Aug 29, 2008 12:39 PM

Maybe you are looking for

  • Adapter module not working

    Hi to all, I have written a custom adapter module that I use in a sender channel. I have deployed the EJB with NWDS. However, the module seems to be ignored from the adapter. Why? Can anyone suggest me? Thanks!

  • Nokia E51 firmware problem.

    Hello. I have a problem with my E51. I`v used the Nokia Software Updater and update the firmware to 400.34.011. And now the problems: when i type the code *#0000# that little window doesn`t appear or when i type *#90720623# to see the life timer, aga

  • Excel Expression in Import Format

    Hi, Has anyone used Excel Expression in Import Format? Trying to figure out how it works, appreciate any help. Thanks.

  • Vendor master question

    I face a recurring problem in payment proposal. For some vendors there is no PO box or street address . We get error in payment proposal run. I go to XK02 and add the dummy Street address.Then we run again and it works.I know that some where there PO

  • Count Substring in String

    Is there any way you can count the number of substrings in a string using Coldfusion? E.g. haystack = 25fdjkkjlafjkl25alksdfjaafdjk25sl needle = 25 result = 3