Which field gives whether production order is released or not ?

Hi ,
             i want to know how can we get whether a production order is released or not for co01 .
In which table and what field needs tobe checked for aufnr  ?

Hi Ujjwal,
Go to CAUFV Table pass this AUFNR and get the OBJNR value.
now call the FM STATUS_TEXT_EDIT
call function 'STATUS_TEXT_EDIT'
        exporting
          flg_user_stat    = 'I'
          objnr            = caufv-objnr " Pass OBJNR here
          only_active      = 'X'
          spras            = 'E'
        importing
          line             = s_status " if this contains REL then it is released,
"it can contain LCKD(Locked) TECO(Technically Completed
DEL (Deleted ) etc
or PCNF(Partially Confirmed for other list contact your PP Consultant )
        exceptions
          object_not_found = 1
          others           = 2.
Cheerz
Ram

Similar Messages

  • Set Production Order to Release status

    Hi,
    I’m trying to add a new production order through the DI API.  I’m using SAP 2005A SP01 PL 07.  I’m creating it from a sales order.  But if I try to set the status of the Production Order to Release I get a -5002 error.  If I set the status as Planned it works fine.  I’ve also tried creating it, and setting to released after the Production order has been added, which doesn’t work either.  Is there a rule for changing a Production order to Release that I’m missing?  Here is my code:
    ProdOrder.ItemNo = ItemCode
    ProdOrder.CustomerCode = oSaleOrder.CardCode
    ProdOrder.DueDate = oSaleOrder.DocDueDate
    ProdOrder.PlannedQuantity = ItemQuantity
    ProdOrder.ProductionOrderOriginEntry = oSaleOrder.DocEntry
    ProdOrder.ProductionOrderOrigin = BoProductionOrderOriginEnum.bopooSalesOrder
    ProdOrder.ProductionOrderStatus = BoProductionOrderStatusEnum.boposReleased
    ProdOrder.ProductionOrderType = BoProductionOrderTypeEnum.bopotStandard
    ProdOrder.PostingDate = Date.Now

    Tested and working code:
    ProdOrder.ItemNo = "A00009";
                ProdOrder.CustomerCode = "C0001";
                ProdOrder.DueDate = DateTime.Now.AddDays(1);
                ProdOrder.PlannedQuantity = 1;
                ProdOrder.ProductionOrderOrigin = BoProductionOrderOriginEnum.bopooSalesOrder;
                ProdOrder.ProductionOrderStatus = BoProductionOrderStatusEnum.boposPlanned;
                ProdOrder.ProductionOrderType = BoProductionOrderTypeEnum.bopotStandard;
                ProdOrder.PostingDate = DateTime.Now;
                int result = ProdOrder.Add();
                if (result != 0)
                    //Error
                    string error = SBO.DI.Connection.SboCompany.GetLastErrorDescription();
                else {
                    string lastKey = SBO.DI.Connection.SboCompany.GetNewObjectKey();
                    ProdOrder.GetByKey(Convert.ToInt32(lastKey));
                    ProdOrder.ProductionOrderStatus = BoProductionOrderStatusEnum.boposReleased;
                    int result2 = ProdOrder.Update();
                    if (result2 != 0)
                        //Error
                        string error = SBO.DI.Connection.SboCompany.GetLastErrorDescription();
                    else {
                        //OK
    The reason you attempt did not work could be if you did not do the GetByKey. This is needed since an Add just add the data to the database, but does not ready the just added object for continued work (does not provide the docEntry and other autofilled data)
    Message was edited by: Rasmus Jensen

  • Unloading Point field in a production order

    HI Experts,
    I need to add "unloading point" field from a production order on to COHV report output. This is currently not avaible in COHV, Is there is any way i can add the field. Let me know please. THanks in advance.

    In my system there is no field called "profile". There is the "List" dropdown, and below it "Layout" field.
    Anyway, are you able to generate a report of "Documented goods movements"? The column "Unloading point" is not available in the default report. You have to add this column in the report by clicking on "change layout" button. In the report click on "Std ALV functions on" button - a black arrow pointing to the right among the small icons at the top(if needed). Then select the icon "Change Layout". This icon is right besides the "Export" icon which is used to export data to Spreadsheet.

  • Every time system create new production order after releasing sales order c

    Hi Guru,
    FG material strategy: 82 (sales order creates production order).
    After creating the sales order it goes in to credit block. Whenever we release sales order from credit block through VKM1, system has created production order. We confirmed this production order and delivered.
    But after this sales person change the sales order value, because of which again sales order goes into the credit block and after releasing sales order from credit block system create new production order even if one production order already confirmed and delivered against the same sales order.
    *Every time system create new production order after releasing sales order credit block.
    Thanx & regards
    pnu

    PNU,
    So, to restate:
    In MD04, you have Unrestricted Sales order Stock ('E' Stock) on hand.
    In the same MRP segment, and against the same Storage Location as the stock, you have a Sales Order requirement that was recently blocked and unblocked.
    During the unblocking event, the system produced a new production order.
    This is not normal.  If the above accurately depicts your situation, I would look for an altered Strategy 82, or a userexit.  SAP ATP (the beginning event of the Strat 82 process) will normally first check for the availability of stock.  Only if the stock is not available, then it will create the new production order.
    Best Regards,
    DB49

  • Production order creation , release and confirmation cycle

    Hi All SAP Gurus,
    I am trying to set Production order creation , release and confirmation cycle integrated  to  xMII.
    I am sure there must be many among you who worked on this before.
    So can you please share your experience.
    Thanks in advance
    Regards
    Ritesh

    Hi Ritesh,
    I'll give you what I have been using:
    - Transferring orders to MII
      You can trigger the orders by tcode POIT or an equivalent BAPI (BAPI CLOI_DOWNLOAD_TRIGGER_TRANS) or have the iDOC being sent automatically whenever someone creates a new production order in R/3 (using change pointers). In both cases you will receive an iDOC in XML format from SAP with the production order information on it. After receiving this file a BLS transaction will be required to read the XML file and store it in your local DB.
    - Releasing orders from MII
      You can release the orders from MII using the BAPI BAPI_PRODORD_RELEASE (it will update the order status in R/3 to REL). After that you might want to update the production order status in MII local DB as well. Usually I have the bapi BAPI_PRODORD_GET_DETAIL in place in order to read the production order details whenver I need.
    - Doing confirmations from MII
      After the PO was released, you can do confirmations against each operation using the BAPI BAPI_PRODORDCONF_CREATE_TT. You can send up to SAP good quantity, scrap quantity, labor/machine time, etc. It's a pretty intuitive BAPI.
    If your system is not ready to do goods movement automatically you will need to use BAPI_GOODSMVT_CREATE.
    This is basically what I use in this kind of project. If you have any questions please let me know.
    Regards
    Ricardo

  • Automatic Locking of Production Order on release

    Dear Experts,
    When the production order is released, the order should be "Locked" automatically. When changes are required, the production order is unlocked manually and changes are done. This is our requirement.
    Is it possible to lock the order on release.
    If yes what are the settings?
    Regards,
    Jejesh

    Hi,
    Go to T.code BS02.
    - Create new Status Profile , if required do it by copy any standard one.
    - Then go to Detail screen.
    - Assign order status.For your reference I have used 2 order status.
    - CRTD - Created.Set this one as Initial one.
    - LOCK - Release and Locked.
    - Now assign Object type to this status Profile.You have to select PP/PM Order Header.
    - Now double click on Status CRTD and press New Entry tab to find and set allowed Transection.Here you have to select and restrict transaction types this status.
    - Now go to Status LOCK and double click.Then press New Entry tab.You will find the list of transactions.
    First select Transaction Release and make it as allowed and also activate radio button for Set.It will activate the status LOCK automatically after release of order.
    - Now make forbidden of all other transactions like change of order,Confirmations etc. as per your suitability.
    - You can assign any other user status also for further transaction control.
    - Then save your status profile.
    - Now assign this Status Profile to Order type using T.code OPJH.
    Regards,
    Dhaval

  • Priority field in the production order

    Hi folks,
    i want to use the priority field in the production order header screen.
    when i read the help text. i saw that  the information can be passed from the sales order for an assembly order.
    so
    where shoul i enter a value for this priority field in the sales order,
    my order type is PP04 so its an assembly order,
    so my question is where should i enter a particular value for the priority field in the sales order
    so that it gets passed down to production order,

    Hi Deepu
    The delivery priority is coppied to production order.
    you can define delivery priorites according to the need.
    During sales order processing, the system proposes the delivery priority from either
    1 - The customer master record, or
    2 - The customer-material info record.
    If both records exist, the system proposes the delivery priority from the customer-material info record. You can change the proposed value for each item.
    hope this is clear.
    Regards
    Mahesh

  • In LIKP, which field indicated that this order is an inbound delivery or ob

    Hi,
    In LIKP, which field indicated that this order is an inbound delivery or obound delivery...
    Thanks!

    well LFART
    del type wld do it mate.
    thanks

  • Import Production orders with released status

    We are using DTW to import production orders. It allows to import as "planned" status only and not as as "released status". We have hundreds of production orders per day and its a pain to update each production order to "released" status so that it can be available for reciepts from production and thereafter after recieving the items, changing each and every production order to "closed". Please advice

    Hi Mohamed,
    please use the following for the production order status in the template.                                                                               
    (1)Planned   :-> boposPlanned                                              
    (2)Released  :-> boposReleased                                             
    (3)Closed    :-> boposClosed                                               
    (4)Cancelled :-> boposCancelled                                                                               
    Please refer to the SDK DI help file for the details information.          
    hope it helps,
    Regards,
    Ladislav
    SAP Business One Forum Team

  • Restricting a production order from releasing

    Hi,
    How can i restrict a production order from releasing if material is not available?
    Regards,
    samir
    Edited by: wadajkar on Jun 2, 2010 2:51 PM
    Edited by: wadajkar on Jun 2, 2010 2:51 PM

    Hi,
    In t code OPJK at material avialibility check section maintain '3' i.e. do not release if components are not avialable.
    Regards,
    Vishal

  • We need to check whether the order is locked or not?

    I need to check whether the order is locked or not?
    I tried to use this RFC KAUF_ORDER_READ and passed Order no.
    I manually locked the order( using Tcode -IW32) but still Function module is not returning 'X' in FIELDS flg_locked and FLG_ENQUE of the structure E_KAUF.
    the FM should return 'X' in these fields.
    Please help.
    Coudl anybody suggest me how I can check using RFC/ Table fields etc that whether the order is locked or not?

    Hi Rohit,
    Try this code. Check the flag.
    Note : Order number should have left padding of Zero
    DATA : order_tab TYPE TABLE OF ord_pre,
           wa        TYPE ord_pre,
           flag      TYPE rc27x-flg_sel.
    wa-aufnr = '000004006789'. "Order number should have left padding of Zero
    APPEND wa TO order_tab.
    CALL FUNCTION 'CO_ZF_ORDER_READ'
    EXPORTING
       flg_dialog               = ' '
    *   FLG_ENQUEUE              = 'X'
    *   OBJECTS_IMP              = ' '
    *   EXPLODE_IMP              = ' '
    *   FLG_PROT_IMP             = ' '
    *   FLG_NO_EXTERNAL          = ' '
    *   FLG_NO_BANF              =
    *   FLG_CHECK_SIM            =
    *   IMPORT_MESSAGE_ID        =
    *   CHECK_STATUS_READ        = ' '
    *   FLG_NO_GOS               = ' '
    *   FLG_CALLED_TO_COPY       = ' '
    IMPORTING
       flg_enqueue_ok           = flag
    *   FLG_ESCAPE               =
      TABLES
    *   AUFNR_DEL_EXP            =
        aufnr_tab_imp            = order_tab
    EXCEPTIONS
       ORDER_NOT_FOUND          = 1
       RELEASE_NO_CHANGE        = 2
       OTHERS                   = 3
    IF sy-subrc = 0.
      WRITE flag. "If Flag is X order is not locked
    ENDIF.
    Regards
    Rajvansh
    Edited by: Rajvansh Ravi on Nov 27, 2008 12:33 PM

  • Production scheduling profile for production order type 10 does not exist – SAP Message No.10085

    When i tried to make confirmation for Production Order through CO15 transaction , i receive the following error message “ Production scheduling profile for production order type 10 does not exist – SAP Message No.10085 “
    In Work Scheduling view, Production Scheduling Profile is maintained as per OPKP only.
    How to check whether production scheduling profile is maintained for relevant order type 10.
    To do this , i went to OPKP & KOT2_OPA transactions but i don’t know how to check. I guide me through with a screen shot.
    Also, pls explain about  “Order Type 10” and how it is linked with material and order execution.
    Looking for a detailed explanation with screen shots , since i am new to SAP.
    Thanks With Regards,
    Dinesh Kumar V.

    Hello Dinesh,
    Please check the order type dependent parameter in OPL8 here you will get the Substitute Scheduler
    Then go to OPCH and check valid production scheduling profile assign here as per OPKP to your production scheduler for your plant.
    Production order have Order category as 10  Process Order  40 in standard SAP you can check this in OPJH.
    Best Regards,
    R.Brahmankar

  • Production Order Usage Probability should not be allowed to change after GI

    Dear Gurus,
                  pls tell me how to do this ,Production Order Usage Probability should not be allowed to change after Goods Issue (GI) done against Prod Order . pls tell me procedure or any UserEXit for this.
    Thanks in Advance,
    Regards,
    Dev

    Hi,
    Can you elaborate little bit more?
    Regards,
    Sankaran

  • Production scheduling profile for production order type 10 does not exist

    Kindly suggest me how to resolve this error
    Production scheduling profile for production order type 10 does not exist

    Hi Archana,
    Go to material master-work scheduling view and check what is the production scheduling profile maintained for the same materisl -plant combination.
    then go to OPKP and check if production scheduliong profile is maintained for relevent order type 10 in custmizing. If not maintain one and it should resolve the error.

  • Add a new field to Co02 ( production order change )

    Hello, I need to add a new field to the transaction Co02. I've found the following customer exit, but don't know which is the proper one. Maybe none of them can meet my requirement. Does anybody has any idea or experience?
    Exit name     Short text
    PPAPO002     Publication of APO Data in Transfer from APO to R/3
    PPAPO003     Production Order R/3->APO: Check if Operation is APO-Relev.
    PPAPO004     Planned Order Conversion from APO: New BOM Explosion?
    PPAPO005     Enh. of Relationships in Proc. Order during Transfer to APO
    PPAPO006     Influencing Initial Supply of Manufacturing Orders
    PPAPO007     Overriding Checkbox Fields for Production Order APO -> R/3
    PPAPO008     Override Order Type for Planned Order Conversion
    PPAPO009     Customer Exit for Addition of Components and Items
    PPAPO010     Filtering Components out of Quantity Propagation
    PPAPO011     Performance-Related Adjustment of Remaining Duration
    PPCO0001     Application development: PP orders
    PPCO0002     Check exit for setting delete mark / deletion indicator
    PPCO0003     Check exit for order changes from sales order
    PPCO0004     Sort and processing exit: Mass processing orders
    PPCO0005     Storage location/backflushing when order is created
    PPCO0006     Enhancement to specify defaults for fields in order header
    PPCO0007     Exit when saving production order
    PPCO0008     Enhancement in the adding and changing of components
    PPCO0009     Enhancement in goods movements for prod. process order
    PPCO0010     Enhancement in make-to-order production - Unit of measure
    PPCO0012     Production Order: Display/Change Order Header Data
    PPCO0013     Change priorities of selection crit. for batch determination
    PPCO0014     Select process orders for external relationships
    PPCO0015     Additional check for document links from BOMs
    PPCO0016     Additional check for document links from master data
    PPCO0017     Additional check for online processing of document links
    PPCO0018     Check for changes to production order header
    PPCO0019     Checks for changes to order operations
    PPCO0020     Process order: Display/change order header data
    PPCO0021     Release Control for Automatic Batch Determination
    PPCO0022     Determination of Production Memo
    PPCO0023     Checks changes to order components
    PPCP0001     P.Cost Planning: Additional Cost Elements for Person
    PPEACT01     Customer Fields at Mode D
    PPECMP01     Customer Fields: CMP Nodes
    PPECMP02     Customer Fields: CMP Variants
    PPEGEN01     General Engineering Node: Customer Fields
    PPERES01     Customer Fields at RES Node
    BTW, if this is impossible, can I rename a field (field name on the screen) of Co02 that I don't need, and add my own values to it?
    Thanks.
    Nuno

    Hi Nuno,
    how did you solve this problem?
    tks

Maybe you are looking for

  • My keyboard does not change language in facebook log in

    I just bought MacBook Pro 15'4 I am in general new user with mac !!! My primary keyboard language is English and my secondary is Greek. When i try to log in to my facebook account i wrote my e-mail (in english of course) and my password is in greek a

  • Space issue in smartform(very urgent)

    Hi , Im printing vendor address in a RFQ. In that i have to print different fields like, company name address city, region postal code responsible sales person tel no. if the "responsible sales person" field is blank then im getting a blank space the

  • Use WebDynpro JCO Destination in Abstract Portal Component

    Hello, I was wondering if it is possible to use a WebDynpro JCo Destination in an Abstract Portal Component? I have a portal component that make as JCO call to run an rfc. I get the MYSAPSSO2 ticket from the cookie and pass this in to the JCO client.

  • Pages, keynotes and numbers won't update

    Hi All, I'm hoping somebody can help.  I purchased a macbook air in september 2012 with pages, numbers and keynotes preinstalled.  I received a notification of an update to them all but i cannot install the update.  When I click on the update it asks

  • Problem with CS2 Not Having Enough RAM

    Every time I start Illustrator CS2 I get the message "The operation cannot complete because there isn't enough memory (RAM)available." System requirements for CS2 is 256MB of RAM (512MB recommended) and I'm running 4GB of RAM. Does anyone know what c