"Delete on Database" in /SAPAPO/SDORDER_DEL

Dear All,
Can somebody help explain what happens when we execute "Delete on Database" in /SAPAPO/SDORDER_DEL? and how would the program acts for each selection parameters, if;
- we have not put anything in the selective deletion portion of the screen for "Location", "Product", and "Last Changed Before" fields, don't tick the check box for "Without check" option; but tick the check boxes for "Adjust ATP tables with /SAPAPO/POSMAPN table" and "Delete Obsolete Records in the /SAPAPO/POSMAPN table" in the additional function, what will happen? Will it delete anything? Or will it only do as what the additional function says?
- how about in the product allocation data portion, considering that we have specified a location, what is being deleted when the check box for "Delete Product Allocations" is ticked? and what is being done if the check box for "Check Product Allocation Assignment" is ticked?
Thanks in advance for any response.
Regards,
Philip

Dear Philip,
         Find below few points about this transaction.
1. check is normally carried out before an order is deleted to see if this order still exists in liveCache. If this is the case, the order is not deleted.
2. You can also print out a list of the orders that cannot be deleted if you have set the relevant indicator.
3. In exceptional cases, you can deactivate this check and nevertheless still delete the selected orders.
4. If you have set the Delete all orders indicator, the order data from the database is completely deleted without any check. You should take great care when using this function.
5. A location product or a location can only be deleted if SD sales documents for this location product no longer exist in the database (that is, if, for example, no more entries exist in the tables /SAPAPO/ORDADM_I or /SAPAPO/ORDPART).
Regards,
Siva.

Similar Messages

  • Delete entries in /SAPAPO/POSMAPN with /SAPAPO/SDORDER_DEL

    Hi Guys,
    we´re having many orders in table //POSMAPN that are not existing in liveCache.
    We assume that these are obsolete orders that can be deleted with report //SDORDER_DEL.
    My question:
    What is the prerequisite for orders being deleted from //POSMAPN with //SDORDER_DEL?
    Or in other words: Which entries in //POSMAPN are considered as "obsolete" by //SDORDER_DEL?
    Thanks a lot for your help.
    Andreas

    Hello Andreas,
    When you run the /SAPAPO/SDORDER_DEL program, you should run the program to delete the orders from both Live Cache and Database ( see the 2nd tab on the selection screen of this program). This way you can ensure that it is deleted properly. Otherwise, when you run //CCR or //SDRQCR21 it only checks the livecache. Since, it has already been deleted in your case, you can give it a try to see if you can delete the orders from DB using option "Delete from DB" ( see the 1st tab).
    Also, usually the order gets disappeared from LC once the order is PGIed, however a bit of information is still available on APO side and thats where this program would delete it to counter that. The reason why the order line info is still stored in APO is due to the fact that the order lines can always be reverse PGIed and the delivery can also be deleted. So, it is a wise option to run this program by providing the Period in the selection screen which is usually the MBDAT and as a regular practice you can provide a date range that is less than 90 days or so.
    Hope this helps
    Babu Kilari

  • Inputs for running /SAPAPO/SDORDER_DEL report

    Hello,
    We want to run /SAPAPO/SDORDER_DEL report to delete unnecessary Sales orders in the APO system. Before while executing this report I would like to be clear on 2 points:
    1. Three tabs with various fields came up after executing this report:
        1.Delete on Database
        2.Delete in SAP livecache and Database
        3. Delete All DB Sales Order data
    Can someone please let me know the major differences of these tabs or any advantages or disadvantages of using one over the other.
    2. Second point I want to understand is that, once I delete Sales Order data is using this report there any way, I could retrieve that data back.
    Your thoughts and suggestions are very much appreciated.
    Thanks,
    Venkat.

    Hi Venkat,
    In APO you have information in two instances a database and a livecache.
    With the first tap you can delete obsolete entries that exist in database, but they are not in livecache. Here you have additional options to delete allocation objects from ATP and delete and adjust ATP tables.
    Second tab is to delete orders from livecache using different selection parameters.
    Third tab is to delete all order from the database.
    So first is to adjust ATP orders on database, second on livecache and third to delete all.
    As i know, you can not retrieve information of this tables after running this report.
    I hope this can help you.
    Regards.
    Marín.

  • Question while using report /SAPAPO/SDORDER_DEL

    Hello all,
    While using Report /SAPAPO/SDORDER_DEL and going through system documentation, I found that:
    "Normally, the order data remains in the database (it is not deleted as in live Cache)."
    From the above statement I am assuming that data gets deleted in live cache on a timely basis, Can someone please let me know how frequently the data gets deleted in live cache?
    Thanks for your time,
    Venkat.

    Hi Venkat,
    There is no specific frequency for data getting deleted from the live cache.
    It depend on the transactions which are taking place in R3 and APO.
    For eg. Sales orders create a requirement in the R3 which is transferred to APO.
    Now when this sales order is delivered, the requirements gets deleted from R3 and similarly from APO livecache. But this information does not get deleted from the APO database tables.
    So this report is used to delete R3 document data that is no longer required in APO.
    Cleaning of the database tables in APO leads to better performance.
    So as a best practice, this report should be scheduled to run weekly.
    Regards,
    Asheesh Gupta
    Message was edited by:
            asheesh gupta

  • /SAPAPO/SDORDER_DEL and /SAPAPO/SDRQCR21

    Hello Experts,
    Can some one give me the quick view on what these programmes do in APO from the business prospective...
    Thanks
    Venu

    Dear Venu,
    /SAPAPO/SDORDER_DEL: Delete (SD) Orders from APO database SD sales document data from the APO database are not deleted automatically as in liveCache. In order to delete these, it is necessary to run a deletion report. In order to limit the data volume, you should schedule the report to delete the orders, if necessary, and it should be dependent on the lifetime of your orders.
    Please check following notes:
    546459: /sapapo/sdorder_del: Performance and recommendations
    504620: Deletion of R/3 data that are no longer required in APO (/SAPAPO/SDORDER_DEL)
    894294: /sapapo/sdorder_del: Performance and advice (as of SCM 4.0)
    705901: /SAPAPO/SDORDER_DEL: New selection screen (as of SCM 4.0)
    /SAPAPO/SDRQCR21: This report corrects incorrect sales order and delivery (requirements) in SAP R/3 / ECC and SAP. APO/SCM and checks precisely the SD order tables but doesn't check inactive integration models.
    Please check the note 444641 for /sapapo/sdrqcr21
    I hope I could help you.
    Regards,
    Tibor

  • Issue while running Report /SAPAPO/SDORDER_DEL

    Hello All,
    We are using the first tab "Delete on database" in the Report /SAPAPO/SDORDER_DEL. We have created a variant with a combination of selections like "Locations" and "Last before change date" and also we checked the addtional functions "Compare ATP tables with /SAPAPO/POSMAPN" and "Delete Obsolete records in /SAPAPO/POSMAPN".
    The issue we faced is that, elements like sales orders, deliveries and Purchase orders are deleted without considering the "locations" and "last changed before date". Elements of very recent date (09/08/2007) are deleted even though the "last changed before date" is somtime in the past (eg. 05/31/2007).
    Can please someone let me know your ideas on this?
    Thanks,
    Venkat.

    Hi Venkat,
         You can check OSS note : 657214 /sapapo/sdorder_del: Documentation and usability.Note 553476 - Composite note: Report /sapapo/sdorder_del.
    Best Regards,
    Siva.

  • /SAPAPO/SDORDER_DEL recommendations

    Hello all,
    I'm performing the report /SAPAPO/SDORDER_DEL once a month with period of retention of 3 months due to degree performance problems with tables /SAPAPO/POSMAPN and /SAPAPO/SD_DOC. I didn't find any recommendation about SLS lifetime at APO side.
    Anyone has any recommendation about the retention of the Sales Orders in APO?
    Iu2019m Kind afraid about this because I donu2019t if it can cause any problems at APO.
    Regards,
    Alberto.

    Hi Alberto,
    It is Ok to delete the Sales Orders with the retention period of 3 months. I dont think you would really need to have the Sales order liine item information in APO if the Order cycle is closed. Once the PGI is done in the Sales Order, I dont think you actually need to have the info available in APO. It is Ok to go with what you have decided.
    Thanks,
    Babu Kilari

  • /SAPAPO/SDORDER_DEL recommendation for date

    Is there any state-of-the-art / best-practice solution how to run report /SAPAPO/SDORDER_DEL in batch processing? Especially concerning the selection variable Last Changed Before.
    What are your experiences, how old documents should be to be deleted with this report?
    Thans in advance, S.

    please check the notes 657214 and 553476 on /SAPAPO/SDORDER_DEL  report

  • /SAPAPO/SDORDER_DEL  not removing ATP orders

    Hi All
    I am doing product deletion where I am getting message that ATP order exist for the same. I have checked table /SAPAPO/ORDADM_I & found that entries are present in this table. To remove these entries I use report /SAPAPO/SDORDER_DEL but it is not able to delete the orders.
    Could any one pls let me know how can I proceed.
    Hitesh.

    Hi Hitesh,
    I had a similar problem this week.
    I could not find those ATP orders in the report /SAPAPO/OM_DELETE_INCON_ORDERS
    Then i deleted the entries directly from the Table /SAPAPO/ORDADM_I and it worked.
    Let me know if you find some other way out.
    Regards,
    Asheesh

  • Message in /SAPAPO/SDORDER_DEL

    Dear all,
    When running the /SAPAPO/SDORDER_DEL program we get the message: prod. xxx, vers: 000 orders exist (use report: /sapapo/rlcdelete)
    In /sapapo/rlcdelete for this product I see 2 orders.
    The difference with orders I can delete is that the Cat, Product,Location, lst.Ch.on and Chk.SDord is not showing any values.
    Any clues to solve this in APO 4.0?
    Cheers

    Hi ,
    Please run the consistency check report :
    1. /SAPAPO/OM17 consistency check
    2. Planning area consistency check through program /SAPAPO/TS_LCM_CONS_CHECK.
    3. CCR
    check weather order is availabe in RRP2, RRP3.
    than try to delete it again by RLCDEL.
    Manish

  • Delete a database in Essbase application

    I am getting the error as" Object locked by a user' when I try to delete a database in essbase application. Please advice how to delete it.

    Hello,
    You're in the wrong forum. This is the BDB JE forum. The Essbase forum is here:
    Essbase
    Please post your question there.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to delete a database record by using EJB entity beans

    Hi, All,
    Does anyone know how to use entity bean to delete a database record? I have all the EJB entity beans created, including access beans to each. I can successfully create records, find and update records, however, I haven't find a way to delete records yet.
    Your response is appreciated.
    Cathy

    Please see EJB Forums for continue discussion on this subject.
    Reference titile: "how to delete database record by using CMP entity beans "

  • ADF delete from database.

    Hi,
    I am trying to design a page which will delete a particular row from one or more database tables. The jdeveloper version is 11.5 and the database is oracle 10.2 version.
    How can I do it?
    Thanks

    Hi all, Thanks for the reply..
    Actually I am trying to delete one record at a time, from the same table, from which m populating it on the jspx..
    That means the list source and the base source are same..which is not possible..
    What can be the solution for it ??
    I tried to create a separate view object for population on jspx and kept it in list source.. And I am using different view object in base source.. Both view objects refer to the same table..
    But it is not working out..the problems are..
    The record is getting deleted only for the first time when i run it.. Even after getting deleted from database, the record shows up in the list..
    And when i do the same operation one more time in the same session, 1st record in the table is getting updated with the value which i tried to delete..
    And I am not using managed bean..
    regards

  • DELETE FROM DATABASE + restored again?

    there is a statement
    DELETE FROM DATABASE <dbtab> (<ar>) [CLIENT <cli>]
    ID <key> .
    Suppose I have mistakenly deleted from the database
    can it be

    Hi,
    there is a syntax like DELETE FROM DATABASE as you mentioned.
    But never ever use that to delete a record in DATABASE TABLE as you cannot recover that data.
    hope this helps.

  • Delete a database from a server in Business Process Architect

    Hi Friends,
    Does anybody know how to delete a database from a server in Business Process Architect? I don't see any option to perform delete. I am using version 10.1.3.4.
    Thanks
    Tridib

    Thanks for reply
    Actually i want to delete the jobs from the Url below
    http://xyz:7778/reports/rwservlet/showjobs?server=testreport which gives all the jobs when u click on anyone job it open the pdf file which is stored in cache i want this job to be deleted including the file.
    I think there is a target.xml file which show the job in IAS OEM for a report server if the report server is added in target.xml from oem we can delete the jobid and file.
    where should i go to see the report server in oem?
    Regards

Maybe you are looking for

  • Where are the Bootcamp drivers on the Leopard install disc?

    I have an older generation MacBook Pro (about April 2007), and it was running fine with Leopard/Bootcamp 2.0 and Win XP Pro until recently. In the process of trying to fix it, I installed the Bootcamp 2.1 upgrade, which killed my bluetooth capability

  • Ipod nano 6th gen ??? on transferring music

    I currently have an Ipod shuffle and received a 6th gen ipod nano for Christmas, how do I transfer my library of music to my new nana?

  • JSpinner editable, how to validate input??

    Hi everybody, i've a spinner made like this: spinner_ora_inizio = new JSpinner(); spinner_ora_inizio.setModel(new SpinnerDateModel()); spinner_ora_inizio.setEditor(new JSpinner.DateEditor(spinner_ora_inizio, "dd/MM/yyyy HH.mm")); i'm having trouble t

  • SAP PP-Planning at Assembly level(70)u201D & u201C Planning at Assembly level witho

    Hello SAP-Guruu2019s Pls explain the Strategy u201C Planning at Assembly level(70)u201D & u201C Planning at Assembly level without final Assembly (74)u201D and pls give any examples if possible. Thanks in advance

  • Is there any alternative statement for OPEN CURSOR?

      OPEN CURSOR WITH HOLD l_cursor FOR           SELECT paledger vrgar versi perio paobjnr pasubnr belnr posnr                          hzdat usnam gjahr perde wadat fadat budat altperio papaobjnr                         papasubnr kndnr artnr fkart frw