How can I get status of a production order from database?

Hi,
   I need to write a report to show user details about the production order. Because there are some customized linkages between our sales order and production order, we can't use COOIS directly.
  But I met a problem when writing this report. I found that after TECO, all lines on reservation of the production order will be set deletetion flag. So, I need to tell which orders had been TECO-ed. But I don't know from which fileds and which tables I can get the data to tell this. Please help.

Hi Robbie,
You can use function module STATUS_READ
You need to pass it the object number - for a PP order header it will be something like OR000001000000
You can also set an indicator to only retrieve active status values.
The FM returns a table of status codes which are in the internal format and look like I0002
Then use table TJ02T for system statuses to determine what these internal codes mean. If you have user statuses you should be able to work out where they are stored by looking at the technical information behind the configuration transactions.
Regards,
Monika

Similar Messages

  • How can we improve performance while selection production orders from resb

    Dear all,
    there is a performance issue in a report which compares sales order and production order.
    Below is the code, in this while reading production order data from resb with the below select statement.
    can any body tell me how can we improve the performance? should we use indexing, if yes how to use indexing.
    *read sales order data
      SELECT vbeln posnr arktx zz_cl zz_qty
      INTO (itab-vbeln, itab-sposnr, itab-arktx, itab-zz_cl, itab-zz_qty)
      FROM vbap
      WHERE vbeln  = p_vbeln
      AND   uepos  = p_posnr.
        itab-so_qty = itab-zz_cl * itab-zz_qty / 1000.
        CONCATENATE itab-vbeln itab-sposnr
           INTO itab-document SEPARATED BY '/'.
        CLEAR total_pro.
    **read production order data*
        SELECT aufnr posnr roms1 roanz
        INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
        FROM resb
        WHERE kdauf  = p_vbeln
        AND   ablad  = itab-sposnr+2.

    Himanshu,
    Put a break point before these two select statements and execute in the production.This way you will come to know which select statement is taking much time to get executed.
    In both the select statements the where clause is not having the primary keys.
    Coming to the point of selecting the data from vbap do check the SAP note no:-185530 accordigly modify the select statement.
    As far as the table RESB is concerened here also the where clause doesn't have the primary keys.Do check the SAP Note No:-187906.
    I guess not using primary keys is maring the performance.
    K.Kiran.

  • How can I get a list of products

    Hi!
    How can I get a list of products via java interface? I know how to get items of product (via    SBOCOMUtil.getProductTrees(company, "PcCw0001")), but which source of code list for second param?

    Should be sth like this (I have no chance to test Java code ):
    IRecordset Src_Rec;
    int i, ii;
    String str2="";
    try
      Src_Rec= SBOCOMUtil.newRecordset(aCompany);
      Src_Rec.doQuery("SELECT Code FROM OITT");
      ii = Src_Rec.getRecordCount().intValue();
      // could be a while-loop as well
      for(i =0; i< ii;i++)
        try
          str2 = Src_Rec.getFields().item(new Integer(0)).getValue().toString();
          Src_Rec.moveNext();
        catch(Exception e)
    catch(Exception e2)
    HTH,
    Frank

  • How can I get iTunes to display the tracks from a CD in their original (album) order?

    To be absolutely honest, I don't really understand what this box is for, so I shall just use it to repeat and expand on my question. (I have already sent a "Feedback" comment on the same topic).
    How can I get iTunes to display the tracks from a CD in their original (album) order?
    It seems to me that there is something very basic wrong with the way iTunes handles CD Tracks.
    Professionally produced CD tracks are seldom if ever in a randomised order. Why then does iTunes seem unable to display the tracks in the order they appear on the original CD source - whether from a personally owned CD or from a download from the iTunes Store?
    Some music demands a specific, non-alphabetic sequence in order to make sense. Why does it seem that iTunes only offers Alphabetic, or reverse alphabetic order - both of which make a nonsense of the original, often intended order of tracks?
    Why not replace the so-called "cover-art" in the bottom left hand corner if the iTunes window - which, while it may look attractive to some, gives the barest of information concerning the original disc, with a list of the original CD tracks in their original order, so that the user can easily reestablish the order in which they should be played.
    As I would expect legibility might be a problem with doing this, why could not the original contents, (in their original order), at least, be displayed when the "cover art" is double clicked-on - the result of which at present gives me an enlarged version of the "Cover Art". While on the subject of the contents of the source disc, what about all the album notes which someone takes trouble to write in order to increase the appreciation of the music on the CD and the listener's general background knowledge of the artists involved. Such notes, it seems to me, have considerable intrinsic value in their own account. I would, I think, normally be prepared to buy such "Sleeve notes" - so long as a "taster" was supplied (as it is for the music) - for something like the cost of a single 'Tune" on iTunes.
    These two aspects let Apple iTunes down enormously, in my opinion. I think that by chopping even quite protracted sequences of music up into bits does no one any favours - except perhaps Apple's already quite substantial bank balance. People have to be aware that two and a half, to three and a half minutes is a very short time to develop a piece of worthwhile music, and that there are many, many composers, not all of whom are alive today who have written music that huge masses of mankind value for the enrichment of their lives and the human condition in general.
    Please make the viewing of iTunes tracks in their correct order by default possible. By all means have the alphabetical variations available as offering a different approach to the music, but not the sole approach to it - PLEASE.
    Frustratedly yours
    Alan Whitaker
    PS I work at my old 24" iMac Intel Core 2 machine which runs OS "Tiger" - because it is more beautiful to look at, the screen is more pleasant to work on, and because, in some ways it is more capable (it will run FreeHand MX without needing a "patch"), than my more recent 21.5" which runs "Snow Leopard". (I don't find it that much slower, either).

    Dear Mike
    Thanks for the support. I am utterly amazed that after all the hype about how good iTunes is that it cannot play a downloaded CD in the correct order, and that what that order should be is not available directly from within one's own iTunes installation. (I know that one can go back to the iTunes Store to check what the order should be, but having downloaded the tracks surely iTunes is clever enough to retrieve this important information.
    My iTunes to differ from yours in that I have also noticed that it seems unable to download copies of my "talking books" in the correct order either. But in my case it downloads them - from a CD - in order, but with the first track downloaded first - so that it appears at the bottom of the column of tracks so that it would get played last! (At least this is, while being inexplicable, a relatively "logical" bit of blundering and because of this is relatively easy to put right!).
    I like many genres of music, some of which are not really programmed except perhaps by the artist performing them. I know that Frank Sinatra was very careful to programme his album songs to obtain a particular effect and in relation to the keys of the music. iTunes presumes to know better.
    Film scores may be totally randomly put together, in some cases, but in others the order is vital to one's appreciation of the music as a whole and how it relates to the plot of the film.
    In symphonic music most works are divided into sections and are conceived by the composer that way. Some individual sections may gain a life of their own if played separately, but they are never complete in the sense that the composer envisaged them without being placed in their proper context.
    Opera and probably most choral music too, is similar except that the words may well become meaningless if the order is changed at the whim of a piece of ill-written computer code, while ballet music has to be heard totally within its sequential context or it becomes meaningless.
    Finally, I would venture that iTunes, by jumbling up the order of the tracks as recorded on a CD, does an immense disservice, not only to the music on a particular CD, but to music in general, by expressing everything in terms of "Songs" - which it seems to interpret as stand-alone items of between 2 and 4 minutes whatever the genre. Even the way the iTunes publicity speaks of how many "songs" it can store instead of how many minutes or hours of recorded sound. This has to be another brick in the wall of "dumming-down" of people's expectations, and the shortening of their attention spans.
    I don't know about anyone else, but I feel betrayed by Apple over this. Perhaps the look, feel and general presentation of an item are not the most desirable features of a consumer product. Maybe it should be judged more on it fitness for the purpose for which it was sold. There is one other possibility - that Apple are trying to redefine "Music" - and that everything that lasts longer than about 3.5 minutes or is in the form of what could for want of a better term be called symphonic in the broadest sense is something else - not "Music" within Apple's new definition, at all!
    Well that's off my chest! now I can get down to creating some sort of order in my iTunes Libraries, knowing that I have to reconsult all the sources in order to confirm the source playing order.
    Anyway thanks again. At least I know that it is not just me
    alanfromthatcham

  • Can we restrict the partially confirmed production order from getting delet

    Dear all,
    Can we restrict the partially confirmed production order from getting deleted?
    I.e. if the production order is having status PCNF then the deletion flag indicator (status DLFL) should not be allowed to set
    SmanS
    Edited by: SAP PP Consultant on Feb 4, 2009 6:12 AM

    Hi,
    Then must be there is change in BS22.Check allowed transaction setting for Status PCNF/CNF .For reference purpose compare it with other client IDES or sand box.
    For your reference I have pasted Error log on the same.
    Balance of ORD 1000000702 is not zero
    Message no. KO115
    Diagnosis
    The balance on object ORD 1000000702 is not zero. That is, there are still costs on the object.
    System Response
    The object cannot be closed and the deletion flag must not be set.
    regards,
    Dhaval

  • Iphone4 would not restore Error -50. I have tried to restore and it restored it to the point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out.

    Iphone would not restore---- Error -50. I have tried to restore, and it restored it to the new point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out. I can see earlier backups in my C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup folder. There are four subfolders in this address. I need my contacts, photos, and messages back. I know this is a common error but I can not figure it out. I have ran the other troublshoot items in the error steps for 13 and 14 like apple says. Is there a way to call apple and get a step by step of how to restore from another restore point? Does anybody have a solution????

    It tells you to go to Error 13 and 14 if you receive error (-50).
    Here is what I have tried...
    Error 13 and 14: These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting. I have moved it around to different ports.
    Put a USB 2.0 hub between the device and the computer. Didn't change anything.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts. Removed all virus protection and firewall.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.Used the Microsoft fix it.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online. Doesn't matter.
    Try to restore from another known-good computer and network. I do not know how to do this or how to find the correct/full/complete restore point. There should be more information for this.

  • How can I get itunes to play one album from start to finish, especially when there are different artists on it?

    How can I get itunes just to play albums from beginning to end? Often if an artist has a guest artist, or there are 'various artists' on the album, it stores them all separately, so listening from beginning to end becomes not one click away, but a multitude of clicks away just to make a play list which returns the album to its original state. Why can't Apple do this as a default?

    If your music is sorted by "Albums", even a compilation is a single click.
    'various artists' on the album, it stores them all separately,
    That happens when you sort your music by "Artist".

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • How to change the status of a production order

    Dear All,
    May i know how to change the status of a production order.I want to de-active the status like OPGN (Operation generated).This status is updated as there was no routing assigned to that particular production order during its creation
    Thanks and Regards,
    Varun Siddharth

    Dear,
    When you create a production order, an operation created by the system is generated automatically if no routing is used for the creation. As a result the order header receives the status HOGAN; the operation created automatically also has this status.
    If you delete the operation created automatically and then do not have the status HOGAN.
    To avoid this maintain the Routing for the material or delete the setting of default operation from OPJG.
    Regards,
    R.Brahmankar

  • How can I get my mail app to sync from my mac to iPhone, I don't have the 'info' option in iTunes?

    How can i get my mail app to sync from my mac to iphone? i dont have the 'info' option in itunes!
    I have created files within the mail app and want them to be the same on my mac and iphone.

    You need a mail server that supports this then. Hotmail premium I believe does, but the free version does not. Gmail supports it, and any ISP that offers IMAP supports this capability. iCloud definitely supports it, so if you create a free iCloud email account and switch your primary email to it you would have this capability.

  • How can i get serial number on my photoshop from creative cloud

    how can I get serial number on my photoshop from creative cloud

    Creative Cloud applications aren’t licensed with a serial number, they are licensed by logging into CC.

  • HT201364 I am using the os x 10.7.5  how can i get the mountain lion in order to upgrade to Mavericks

    I am using the os x 10.7.5  how can i get the mountain lion in order to upgrade to Mavericks

    What, specifically, is your Mac model?
    MacBook Pro, but need the year it was released, processor speed, etc. This will determine if it *can* be upgraded further.
    Best,
    - Neil.

  • How can I get my Premiere 11 product Key?

    In october 2012 I´ve bought a bundle pack with Photoshop Elements 11 and Premiere 11. After a hard disk crash i was about to reinstall them both but my wife has trown the envelope in the garbage... = No product key available.
    I´ve registered the key for Photoshop Element 11 on Adobe, but not the key for Premiere.
    How can I get the Product key for Premiere 11?

    Premiere Pro only - http://blogs.adobe.com/premiereprotraining/2011/02/cuda-mercury-playback-engine-and-adobe- premiere-pro.html

  • I am residing in India and have purchased Ipad 3 from US, I have lost my invoice and also the small pin which helps in inserting sim card, Can anyone help me how can I get a copy of duplicate invoice from India and a PIN for my Ipad 3

    Dear Friends,
    I have purchased Ipad 3 from the US but unfortunately while returning back to India I have lost in transit the copy of Invoice and a tiny PIN which helps in inserting 3G card.
    Can anyone help me how can I get the duplicate copy of my invoice and an extra PIN from India and whether any Apple Store in India can issue me the duplicate copy of Invoice for the product purchased from US and also are the require to issue me an extra PIN on request.
    Thanking you all in anticipation....
    Regards,
    Bankim Mehta

    You can use a paper clip instead of the PIn that came with the iPad.
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=54813
     Cheers, Tom

  • How can i get to know the widget type from the sample.

    If am trying to copy a widget sample from a reference site, how can I get to know if its a standard out of box or some custom widget.
    For example what type of widget could be the given, it seems its a google map for any location.

    Hello,
    Open the site for edit, in the side panel open the 'Content Catalog' and filter by 'Delivered with product' to see the list of the out of the box widgets.
    The Google maps widget is not an out of the box widget.
    Regards,
    Eliel.
    Cloud Portal Dev.

Maybe you are looking for

  • Cash Flow in BW based on cost based COPA

    Hi, We have at presently in ECC6, Cost based copa. Now we have to create Profit and loss, cash flow based on that..So I have few question belonging to same as below 1. Can we create Cash flow and Profit and loss based on Cost based COPA. 2. Can we cr

  • For selection parameter the default date should be of the previous month.

    Hi all, In my selection-screen what i want is  for the selection parameter "Selection period month" the default value to be the previous month. For example today is 24.09.2008 so the default value of this field has to be 200808 instead of 200809 toda

  • Connect to message server host failed Connect_PM TYPE=B MSHOST=hmsnsw00

    When i deploy "TutWD_FlightBooking" Sample WebDynpro application  I get following error. I have following setup. NetWeaver developer Studio (NWDS) Version: 2.0.9 J2EE server running on the same machine where i have NWDS Version: SAP J2EE Engine/7.00

  • Dr Watson errors while using telnet vi's

    I seem to randomly get Dr Watson errors while an application is using the standard telnet vi's. I get "c0000005 (access violation)", it works fine after I reboot the machine. It appears randomly about once a week if the program is in constant use. He

  • Computer won't recognize my Mini

    Our computer recognized our Ipod until we tried to update it. Once updated, the adapater picture came on and now the computer won't recognize it. In stead we get the adapter picture. Tried to reset after leaving the adapter on it all night and it won