How can I undelete an internal order  - error KO444

We have an internal order that is marked for deletion. I need to undelete to modify some of the content as it is being referenced by another process and causing an error
However when I go to KO02 I get error message
Order R00765436 is flagged as "deleted" -> display only
Message no. KO444
So I can't modify the order because it is flagged as deleted but I can't undelete as it is flagged as deleted !
ANyone know how I can undelete?

Run this program: ZKLOEKZ
*$*$                                                                $*$*
*$ Correction Inst.         0120024545 0000135593                     $*
*$                                                                    $*
*$ Valid for       :                                                  $*
*$ Software Component   SAP_APPL   SAP Application                    $*
*$  Release 30F          All Support Package Levels                   $*
*$  Release 31G          To SAPKH31G13                                $*
*$  Release 31H          All Support Package Levels                   $*
*$  Release 31I          All Support Package Levels                   $*
*$  Release 40A          To SAPKH40A25                                $*
*$  Release 40B          All Support Package Levels                   $*
*$  Release 45A          All Support Package Levels                   $*
*$  Release 45B          All Support Package Levels                   $*
*$  Release 46A          To SAPKH46A34                                $*
*$  Release 46B          All Support Package Levels                   $*
*$  Release 46C          All Support Package Levels                   $*
*$  Release 310          All Support Package Levels                   $*
*$  Release 470          All Support Package Levels                   $*
*$  Release 500          All Support Package Levels                   $*
*$  Release 600          All Support Package Levels                   $*
*$                                                                    $*
*$ Changes/Objects Not Contained in Standard SAP System               $*
*$*$                                                                $*$*
*& Object          REPS ZKLOEKZ
*& Object Header   PROG ZKLOEKZ
*& PROGRAM ZKLOEKZ
*>>>> START OF INSERTION <<<<
PROGRAM ZKLOEKZ.
TABLES: vsaufk, aufk.
SELECTION-SCREEN: ULINE,
                    COMMENT /1(72) LINE1,
                    COMMENT /1(72) LINE2,
                    COMMENT /1(72) LINE3,
                    COMMENT /1(72) LINE4,
                    ULINE, SKIP 1.
PARAMETERS:
   TESTMODE   DEFAULT 'X' AS CHECKBOX.
SELECT-OPTIONS:
   order     FOR vsaufk-aufnr MATCHCODE OBJECT orde.
DATA: count LIKE sy-dbcnt.
DATA: BEGIN OF auf OCCURS 1.
         INCLUDE STRUCTURE vsaufk.
DATA: END OF auf.
DATA: BEGIN OF status OCCURS 1.
         INCLUDE STRUCTURE jstat.
DATA: END OF status.
INITIALIZATION.
   MOVE 'ATTENTION !!!' TO LINE1.
   MOVE 'SAP does not accept responsibility for problems that' TO LINE2.
   MOVE 'might arise from the use of this report !' TO LINE3.
   MOVE 'Please see note 196637.' TO LINE4.
START-OF-SELECTION.
   SELECT * FROM vsaufk INTO TABLE auf
              WHERE aufnr IN ORDER
              AND   stat  = 'I0013'
              AND   ( autyp = '01' OR autyp = '04' )
              AND   loekz = 'X'.
   status-stat = 'I0013'.
   status-inact = 'X'.
   APPEND status.
   IF sy-subrc <> 0.
     WRITE 'No internal/CO-production orders found !'.
     EXIT.
   ENDIF.
   LOOP AT auf.
     CALL FUNCTION 'STATUS_CHECK'
       EXPORTING
         objnr             = auf-objnr
         status            = 'I0013'
       EXCEPTIONS
         status_not_active = 2.
     IF sy-subrc = 2.
       WRITE: / 'Order ', auf-aufnr, ': Deletion indicator not active.'.
       CONTINUE.
     ENDIF.
     IF testmode IS INITIAL.
       CALL FUNCTION 'ENQUEUE_ESORDER'
         EXPORTING
           aufnr        = auf-aufnr
         EXCEPTIONS
           foreign_lock = 1.
       IF sy-subrc <> 0.
         WRITE: / 'Order ', AUF-AUFNR, ' is currently blocked.'.
         CONTINUE.
       ENDIF.
       CALL FUNCTION 'STATUS_CHANGE_INTERN'
         EXPORTING
           objnr  = auf-objnr
         TABLES
           status = status.
       CHECK sy-subrc = 0.
       UPDATE aufk SET  aenam = sy-uname
                        aedat = sy-datum
               WHERE    aufnr = auf-aufnr.
       IF sy-subrc <> 0.
         WRITE: / 'Order ', auf-aufnr, ': Error during AUFK-Update.'.
       ENDIF.
     ENDIF.
     WRITE: / 'Order ', auf-aufnr, ': Deletion indicator removed.'.
     IF NOT testmode IS INITIAL.
       WRITE: ' - Testmode'.
     ENDIF.
     ADD 1 TO count.
     IF count = 100.
       IF TESTMODE IS INITIAL.
         COMMIT WORK.
       ENDIF.
       CLEAR count.
     ENDIF.
   ENDLOOP.
   IF TESTMODE IS INITIAL.
     COMMIT WORK.
   ENDIF.
   SKIP 1.
   WRITE: 'Program finished.'.
*>>>> END OF INSERTION <<<<<<

Similar Messages

  • How can I book an internal order?

    Hi,
    I need to make a test for an internal order in the test environment.
    Can someone explain me briefly how to make an internal order (transactions, etc)?
    How can I see a link with a purchase order?
    Thank you.
    Kind regards,
    Linda

    Hi
    if you want to release Order automatically, they go to Order Type and bottom of the screen, activate 'Immediate Release'.  Then,  when ever you create internal order under that particular order type, system will release immediately.   If you want release manually, then go to order master record and in second screen there is a release button will be there. just click on it.  order will be released. 
    if you have any doubts let me know

  • When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    Simple way to make HDD free space is delete files you don't need anymore.
    Or get bigger drive and external HDD case, then:
    1) install bigger HDD in external drive case.
    2) connect external drive and format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is internal HDD, target drive is external one).
    4) install external bigger drive into your Macbook Pro.
    In the cace if your're using Mac Pro:
    1) get bigger HDD and install it in drive bay of Mac Pro.
    2) format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is old HDD, target drive is new one).
    4) Select boot drive to new bigger one.

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

  • How can I create an internal hyperlink in iWeb? Would like to put an interactive menu at the top of a page.

    How can I create an internal hyperlink in iWeb? Would like to put an interactive menu at the top of a page.

    Do you meant a link to one of your other pages or to a location on one of your pages?  If it's the latter those are called anchors and iWeb does not support them.  However, there are workarounds for that.  See this blog: How to use anchors in iWeb.  If you don't have a lot of widgets on the page it can work fairly well.
    OT

  • How can I create a single order from multiple quotations?

    How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
    Thanks in advance for the answers.

    hi
    Go to transaction: /nva01
    Enter order type : ZOR
    Sale org :xxxx
    Dist.channel:xx
    Division :xx
    Press enter
    Click on “Sale document” and select Create with reference
    Then enter 1st quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation1 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 2nd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation2 copy to order.
    Then,
    Click on “Sale document” and select Create with reference
    Then enter 3rd quotation number & click on “COPY” or “Selection list”. Then click on “Copy “.Then all line items which belong to quoation3 copy to order.
    Now save the sale document.
    Kindly give reward points
    Edited by: WISH on Mar 19, 2008 2:25 PM

  • How can I throw a hard 404 error to apache when a JSP is not found.

    How can I throw a hard 404 error to apache when a JSP is not found.
    I want to let apache handle the error.

    [email protected] (Jeremy Conner) wrote in
              <[email protected]>:
              >How can I throw a hard 404 error to apache when a JSP is not found.
              >I want to let apache handle the error.
              >
              >
              First thought that comes to mind is to return HTML that tells the browser
              redirect to a nonexistent file under Apache. You can't tell Apache to
              throw a 404 unless you're in a mod. Maybe something they could add to the
              proxy, but until then, I think a redirection in the response HTML is your
              only option.
              Jesse
              

  • How Can I Fix A QuickTime Codec Error?

    How Can I Fix A QuickTime Codec Error?
    I have several movies from 2008 that are labeled as .mov but I now get a QuickTime error saying "The document "XXXXXX" could not be opened. A required Codec isn't available."
    These movies ran in QuickTime just fine until about a month ago.
    All the folders in which these movies were stored in 4 folders in 2 folders in one folder. All folders at each level were encrypted with Stuffit Deluxe a version circa 2008 and decrypted with a newer Stuffit Deluxe 10.x. Other movies that are NOT .mov and in with the .mov movies still run.
    If I click on the Thumbnail Preview "It" runs.
    How can I fix this?
    TOP image is the Error message.
    BOTTOM image is the Thumbnail Preview info.
    I've checked out "Tell Me More" and have not found a solution.

    How Can I Fix A QuickTime Codec Error?
    The basic work flow is to determine which codecs were used to create the non-playing file and then check to see if these formats are supported by your current system codec component configuration.
    If the files will open in one of the QT player app, the open the inspector window to see which codecs were used to create the original file as seen here...
    or here in the "Format" entry...
    Or, if you have QT 7 keyed for "Pro" use, you can open the "Properties" window to gain even more information as demonstrated here...
    if you file will not open in either of the QT Player apps, then you can try opening the Finder "Get Info" window for the file,
    use a third-party media player that will open the file, or
    use a dedicated media information utility to learn this information....
    Once you know what codecs were used to create the file, post back with this information so we can deterine if the file should be natively supported by your Mac OS X install, requires an Apple Pro editing codec normally installed by the editor app, or requires a third-party codec which the user must supply.
    These movies ran in QuickTime just fine until about a month ago.
    All the folders in which these movies were stored in 4 folders in 2 folders in one folder. All folders at each level were encrypted with Stuffit Deluxe a version circa 2008 and decrypted with a newer Stuffit Deluxe 10.x. Other movies that are NOT .mov and in with the .mov movies still run.
    Your information does not indicate whether or not the files actually played on the current system or were transferred from a different system which was properly configured for playbac, whether or not you recently upgraded your operating system/modified your codec component configuration by adding or deleting any codecs, whether your compound "Stuffing" of the files created corruption, etc.
    As to MOV files the selves, this extension just implies the data was placed in the QT generic file container and the actually data could be of any compression format thathat was compatible with the codec component configuration for the system on which the files were created and could include natively supported system codecs, pro editing codecs, and/or third-party proprietary or hybrid codecs. (I.e., this is why we may need more information regarding the individual non-playing files.)
    If I click on the Thumbnail Preview "It" runs.
    f you are referring to QuickLook (QL) then the technology is different than QuickTime (QT). In the former case, the system is playing representative data but not actually opening the file as QT does. Thus, there is always the possibility that the problem is in the file structure (atom) information. For instance, suppose someone merely changed the MOV file extension in the Finder rather than actually copying data to a real MOV file container. Then it is possible that the QT player app may be searching for a codec that is not supposed or expected to be supported in the MOV file container and, not finding it, issues the erroneous codec error message—especially since you did not inticate the source of the file you are trying to play or, in some cases, which QT player is now not playing the file.
    In short, there are several possibilities here and not enough specific information.

  • How can i get an internal hard drive cable replacement?

    how can i get an internal hard drive cable replacement?

    I believe iFixit sells them:
    http://www.ifixit.com/
    You can also go to an Apple store, they won't sell you the part, but they will replace it for a fee.

  • *How can we use the internal table in module pool programming? Clarify plz*

    If we creating a screen using the table having four fields(for e.g.). The screen has the functions of display, modify, delete, save, exit etc for the fields. The front-end of the screen having I/O fields of the table using internal table. How can we declare the internal table in the screen?

    HI,
    Create one WA for your Internal table and then map it to your fields.
    For Example,
    Data : begin of wa,
              name(10),
              age type i,
               end of wa.
    data : it like table of wa with header line.
    Then in screen create input fields with the name, age and ***.
    Then the user entered values are stored in name age and ***.
    then you can manipulate with that values using wa.
    Thanks.

  • TS3694 How can I fix this type of error in iphone 4?"The iphone could not be restored. An unknown error occurred (3194) "please help me.

    Hi everybody !
    AT&T company is unlocked (factory)my iphone4 before 3 days ago so i want to restore to unlock iphone 4 with itunes but it is not restore.
    How can I fix this type of error in iphone 4?- "The iphone could not be restored. An unknown error occurred (3194) "
    please help me in nepali language(if posible) or english. thank you.

    http://support.apple.com/kb/TS3694#error3194
    This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue.

  • How can we process the CRM Order again for second time in debugging mode

    Hi,
    Can anybody please tell me how can we process the CRM ORDER for second time.  that I want to process in debugging mode.
    Thanks,
    bsv

    Hi bsv,
    Are you trying to reprocess a BDOC for debugging purpose?
    If the BDOC is not with a final status, you will be able to reprocess it using the reprocess button in the smw01 search result list.
    And you may put /h on the popup when you click on the 'reprocess' button.
    If it is allowed to make some changes in the CRM ORDER for testin purpose, it would be easier to perform debugging.
    A more 'careless' way is to deactivate the outbound or inbound queue in transaction smqs or smqr, then in smq1 or smq2 to locate the interested queue, and click on button 'debug LUW'.
    Hongyan

  • HOW CAN I GET THE PURCHASE ORDER RELEASE DATE

    Dear All,
    HOW CAN I GET THE PURCHASE ORDER RELEASE DATE - any reprot is there?
    Thank you
    Ahmad

    Hi,
    u goto that PO and select Environment on top line .under that select header changes if u click on that u will get entire details who reased when released, date , time etc
    regards,
    Srinivas Kona

  • How can I create a sales order with reference to a purchase order?

    How can I create a sales order with reference to a purchase order?
    Thanks in advance...

    Hello,
    you can't create a sales order with reference to a purchase order. You can input customer PO nuber in the sales order Purchase Order number filed.
    Prase.

  • How can I cancel a purchase order?

    How can I cancel a purchase order?

    Contact customer support by phone or web chat.
    You are not addressing Adobe here.  The following link will give you some insight into the nature of this user to user forum:
    http://forums.adobe.com/thread/419981?tstart=0
    No one here can help you.

Maybe you are looking for

  • How can I sync only the company name with a sony cellphone

    I've a problem to sync my adressbook with a sony cellphone. In the adressbook there is sometimes only the company name and the phonenumber. when I'm syncing with the sony cellphone the name looks like that " -, apple" that's not what I want. Is there

  • Restore programs and files after a restore to facory settings

    When I suspected my hard drive was failing I tried recovery to factory settings, and when asked if I wanted a backup I agreed and after many hours, a backup was made and a restore to factory settings was done. I recovered the backup to my desktop, bu

  • Withholding tax on vendor invoice

    Hi Experts, Good day.  I have some queries on the creation of vendor invoice in F-43.  I have created invoices in F-43 but no withholding tax base and wtax amount was reflected in fields QSSHB and QBSHB. The vendor code used is liable to withholding

  • Macbook Pro model 4,1: can it connect to hi res monitor?

    I have a macbook pro, model 4,1. no mini display port. I am looking at a high resolution monitor dell 2713. Will I be wasting my money to buy resolution higher than 1080 if I don't have a port on the Macbook to deliver it?

  • Calendar upgrade failure, how can I reset the new calendar

    Upgrading to the new v4 calendar on MobileMe has been a complete failure. Currently have a ticket open with Apple support, the upgrade failed with a "catastrophic failure message", my data was not fully transferred, etc. I need to reset the new calen