Re: Availability check fpr production order after released.

Prodsuction order is released. Materials pertainig got reserved for the order, goods issue not posted getting error saying availability check when checked the log. Kindly help me to solve my issue. Thanks in advance.

Hi,
  you might not have defined the proper settings for availability check.
  following is the logic in defining the settings.
Availability check for a material is carried out only if the material is
1. A stock item
2. Not a phantom item
3. Not a bulk material.
This can be carried out
1. during order creation
2. during order release
3. when a created order is saved.
Availability check can be triggered either manually or automatically.
For this we need to define in checking control(opjk)
First define a checking group(ovz2) and checking rule and this
must be assigned to checking scope.(opjj)
In the checking scope(opjj) we should define
1. which Mrp elements are to be considered during check
2. which inventory categories are to be taken into account
3. whether Replinishment lead time is to be taken into account or not
4. whether check is also to be carried at storage location level.
This checking rule must be linked to checking control(opjk)in which you can say
1.No availability check for the material
2.Availability check when saving the order
3.What type of check is to be carried
whether ATP CHECK or Check against PIR quantities
4. Whether order should be released or not if there is
any missing parts.
The checking group is assigned to material master MRP3 view
Regards,
nandha

Similar Messages

  • 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

  • Material availability  check for production order

    Hello,
    Is there any functional module to check the material availability of production order. So that it can be used in developments.
    Regards,
    Ganesh

    Hi,
    Following are the available Function Modules for avaibility checks in Production orders,
    BAPI_PRODORD_CHECK_MAT_AVAIL -  BAPI: Execute Material Availability Check for Production Orders
    And for Process Orders,
    BAPI_PROCORD_CHECK_MAT_AVAIL - BAPI: Execute Material Availability Check for Process Orders
    Regards,
    Dhaval

  • Reg: Error in availability check in production order

    Dear all,
    I am facing a problem during availability check. After creation of production order, when i am clicking 'Materials' it is showing a error message as 'Incorrect check'. When i click log, the error msg is "Order type xxxx, plant xxxx: Checking rule missing (see long text)".
    But in OPJK i checked it. Availabilty check is '2', checking rule is 01, Release material is '1'
    Please help me in this case.

    Hi krishnachandra,
    I think that you still don't assign any checking rule for your Order type.
    FIrst, please check what production order type is. (On production order header: CO03)
    Second, go to OPJK to create new entry and assign appropriate checking rule to that Order type.
    Then go to your production order and check Material to see the result.
    In case you just maintain one entry only with availability check 2 (check availability during order release). You have to release you production order to check material availability check.
    Hope it helpful for you.
    Edited by: dennydang on Jan 11, 2012 4:43 PM

  • Availability check during production order creation - Missing parts details

    Hai Gurus,
    I have one problem during Availability check when converting Planned order to production order.
    1) A- is the finished material, which has A1 to A7 components.
    2) A2 is the procured item with safety stock and it has safety stock also.
    3) When sale order is created , the material A2 is reserved against the planned order for finished material - A.
    4) so when availability is checked during planned order stage , system says no missing parts, when planned order
         is converted to production order system says missing parts for component A2, which is stock and reserved against
         planned order
    5) Checking rule for Production order is maintained as follows,
         a) Include safety stock.
         b) Include reservation.
         c) Include sales requirement
         d) Include deliveries.
         e) Include dependent reservations.(x)
         f) Include production orders.(X)
         g) Check release for stock transport orders only.( A)
    So now i don't know where I went wrong , so that the system could consider the safety stock of Component A2 which is in stock and already reserved against planned order and it does not show missing parts when planned order is checked.
    Waiting for your positive feed back.
    Regards,
    Sekar chand

    Dear,
    What checking rule you have maintained for planned order.???
    As what i can understand by your question that you have maintained to check reservation only in production order not in planned order. Or one important thing mostly people configure to reserve material only after release or creation of production order. Are you reserving material at planned order stage.?
    Check these things. you will automatically find the answer. Hope it will help you. Revert back for more clarification.
    Regards,
    Alok Tiwari

  • Availability Check  in production order

    hi everyone!
    there is a finished product A, whose compoent is B, and A:B=1:1. now, B's stock is 100PC. we created a production order which product A 80PC, and availability check is "all material is availability".
    then we created a new production order, which product A 70PC, and availability check is "all material is availability" too.
    but in fact, B is shortage.
    Therefore, please tell me how I do material availability check?
    thanks!
    DanDan

    Hi Dandan,
    Check RLT mark in OPJJ, (replenishment lead time)
    That use during availability check,during the availability check, the system checks the replenishment lead time.In your case B items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be available.
    Regards,
    R.Brahmankar

  • Availability check in Production order at WM Level

    Hi Gurus,
    Some body explain how the availability check can be carried out at WM level for the components for the Production order.
    Components are WM Managed. supply areas are maintained for the back flushing.
    is there any possibility with Standard function or only way to implement this Enhancements?
    Regards,
    Manick.
    Edited by: Manickavasaham S on Aug 14, 2010 1:13 PM

    Hi,
    More specifically for ex.
    Header Mat   A
    Component 1 : B  supplyarea 123
    Component 2  C  Supply area 246
    if the components should be back flushed from supply area '
    component B i have 200 pcs in stock in supply area 123, there are 4 production orders each of 40 pcs.
    when creating the production order system should check the stock of Supply area for creating the TR automatically. If new order is created for 20pcs. Then for B' i have a stock of 40 pcs in the supply area additional. system should not create the TR in this case for the component 'B'.
    Manick.

  • Availability Check during Production Order (controlling side) change

    Dear Gurus,
    we run our COMAC run over all production order, but due the fact some controlling user is performing at the same time some settlement activity the job scheduled goes in DUMP and block all the chain of ATP scheduled for all Work Center, instead of provide an easy message log that advice the order processed bt the user has not taken into account?
    there is something that is wrongly set up?
    Regards.
    Gianluca

    Dear,
    It depends on when your background job started..if the background job is started before CO settlement, then system will give error in settlement. If the ATP checking background job has started after CO people started settlement, then you will have this problem.
    Hence to resolve the problem two possible solutions.
    1. You send a message through basis that Production order job will be starting from this time to this time and hence dodnot run settlement...hence system will give the message to all users.
    2. Schedule the activity in the night when no one uses the system.
    Pl come back if required.

  • Material Availability check during work order creation and Release

    Hello All,
    We are checking material availability at creation as well as release
    Say we have Material XYZ=100 in stock MMBE
    Now XYZ =100 is say at normal storage location =75
    and scrap storage location=05 and serviceable =20
    Currently when availability check is performed it checks for 95 (It excludes scrap storage location 05 )
    but we want  Availability check to be only for normal stock =75 and not for Serviceable and Scrap location
    how to do this in configuration or via exits
    Since if the material is under Scrap location it is not counting in Availability check at work order creation this logic is working fine but I do know from where this control is put that when the material is in the stock of scrap it is not counting in Availability check for work orders.Same thing I want to extend it to Serviceable stock .
    Why not it is consider it for Scrap storage location , what is config or any MM enhancement
    So that when Availability check run it will not consider Materials at SCRAP as well as SERVISABLE storage location also.
    Please have your views on this
    Regards
    pratap

    Hello
    There are two option for your requiement
    1. Changing the status of the servisable storage location stock to restricted use stock . You can include or exclude this stock status material in OPJJ. This solution is not storage location dependent. It is stock status dependent.
    2. Please refer the enhancement for the storage location determination. I am not sure about this funtionality:
    For production orders the following enhancement is available:
    PPCO0005 enhancement for storage loc. determination/backflushing
    You can use this enhancement to change the storage location and the indicator 'backflushing' in the reservation.
    The enhancement PPCO0005 contains the following enhancement components:
    Function exit
    EXIT_SAPLCOSD_001 storage location determination/backflushing
    You can find the description in modification text of the function exit.
    You can find an example of the user exit in the function group XC01 in the include LXCO1F05.
    warm regards
    Ramakrishna

  • Availability Check in planned Order & Production Order

    Dear All,
    How can I achieve the same Availability Check (missing Parts ) output in Planned Order & Production Order.
    Currently in Availability check in Planned Order is bit different in the sense, I have the Component in Stock without any reservation. But in Planned Order it shows in Missing part.
    But if I convert this Planned Order to Production Order, it is not visible in Missing parts which is correct.
    I want to have the same missing part report for both Planned Order & Production Order.
    Thanks
    Regards'
    Raghu

    Dear Brahmankar,
    Thanks for replay.
    Now i did, the said possibility, in OPJK is different from my Regular material master rule.
    When i see, availability in MD12 it shows the material available, and same as in Production Order check as well.
    But when, I use MDVP, for check. the same planned order shows the same component as missing.
    am i on the right track?
    Please suggest.
    Thanks
    Regards
    Raghu

  • 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

  • PRT availaibility check in production order.

    Hi
    I have created PRT of type M and attached to operation and when i try do availaibility check in production order then iam getting message "PRT availability could not be checked"
    What are pre-requisite for getting PRT availability check?
    Is it possible to check PRT availability  for all types of PRTs?

    Dear ,
    You are facing this error due to PRT avialability check not activated in order type level while creation of production order .
    To avoid this issue you need to goto -OPJK-Order Cotol -Select the order type , availability chek (1,2)  .Here you need to keep
    PRT Availablty Check tab -Checking Rule -01 and PRT Release -01 or 02 based on your requirement .
    As prequisit : You need to create the PRT material master with availabilty check 01 and keep this in BOM.In CO02 -Operation Overview -Select the Operation -Hit on PRT button-It will apear with a screen Production Order Changes -PRT -Select the PRT material  with Qty , Control Key .
    Hope this will give u an idea .
    Regards
    JH

  • 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

  • How to check the Production order exits

    Hi Experts
    Modification to processing of Command Orders & Tickets
    We require a modification to the processing being performed on sales data originating from the Command Concrete system and potentially from other systems yet to come online (e.g. Pinkenba Cement plant).
    The Sap process involved is ZINT_INBOUND_POLLING and within that, ZINT_CSTPORD_ROUTINES.
    The problem
    Currently there is an assumption that every sales order (and its deliveries) will include a product which is made to order, i.e. for which a production order will be required.
    In ZINT_CSTPORD_ROUTINES, a check is made to identify the production order linked to the sales order. If there is no such production order (usually because of the customeru2019s credit status) then processing of the ticket is terminated.
    This assumption would fall down if an order was to be raised (in Command) on which there is no concrete material. For example, if we sold a bag of pigment or a screed to a customer. In this case the item would be sold from stock and there would be no need for a production order.
    The solution
    In the routine which checks for the existence of a production order, modify the code as follows:
    Inspect each item on the sales order
    If (and only if) there is at least one item with a category of u201CZTACu201D then check for a production order, otherwise process the order in the usual manner.
    ----  ZINT_CSTPORD_ROUTINES -
    *&      Form  process_inbound_data
          Create prod. orders from ticket data extracted from the COMMAND
          system. Note that large portions of the code in this routine
          have been copied from the retired ZPPU_COMMAND_PRODUCTION
          interface program. This was done (1) because the old code works
          and (2) to save development time.
         -->T_ZINT_IDATA  Internal table of interface data
         -->T_ZINT_PARAM  Internal table of interface parameters
         -->T_ZINT_MSLOG  Internal table of messages
         -->P_ZINT_ID     Interface ID
         -->P_ZINT_TY     Inteface type
         -->P_ZINT_IS     IDOC group for interface
         -->P_ZINT_DL     Flag: delete IDOC group when complete
         -->P_ZINT_AL     Flag: run in standalone mode
         -->P_ZINT_NW     Flag: do not log warning messages
         -->P_ZINT_SQ     Interface sequence number
         <--P_ZINT_RC     Return code (<>0=>error)
    form process_inbound_data  tables   t_zint_idata structure zint_idata
                                        t_zint_param structure zint_param
                                        t_zint_mslog structure zint_mslog
                               using    p_zint_id    type      zint_id
                                        p_zint_ty    type      zint_ty
                                        p_zint_is    type      zint_is
                                        p_zint_dl    type      zint_dl
                                        p_zint_al    type      zint_al
                                        p_zint_nw    type      zint_nw
                                        p_zint_sq    type      zint_sq
                               changing p_zint_rc    type      zint_rc.
    program is continuing .............
    I WANT TO WRITE A CODING HERE **********************
    CHECK IF PRODUCTION ORDER REQUIRED
              IF NOT THEN GO TO PERFORM UPDATE DATA
      if production order required then check
                    for each item on sales order item list
                          with item category = 'ZTAC' then
                                     return true
                                next
                                  end function
        if there is no production code
               these has to be check from VBAP TABLE field VBELN and PSTYV (ZTAC,ZTAN Etc)
      select * from Vbap WHERE VBELN = '00000269951' and VBAP.PSTYV = 'ZTAC','ZTAN' Etc
    No production order?
        elseif lva_prodord is initial.
          clear v_messg.
          call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
            exporting
              input  = lva_filemat
            importing
              output = lva_filemat.
        No production order found - log a warning message.
          concatenate 'Production Order not be found for'
                      'Command order' lva_cmdord
                      'Material'      lva_filemat
                      'Customer'      lwa_02-customer
            into v_messg separated by space.
          perform write_log_entry
            tables t_zint_mslog
            using  'E' 'ZINT_CSTPORD_ROUTINES'
                       'FIND_SAP_PRODORD'
                         v_messg
                         p_zint_nw
                         lwa_01-ticketnumber.                " RJS
          continue.
        endif.
    Production Order WAS found... Continue creating IDOCS
        lwa_hdrlevel-postg_date = lwa_01-ticketdate.
    Obtain the storage location parameter value.
        read table t_zint_param with key zint_fn = 'LGORT'.
        if sy-subrc ne c_noerr.
          perform write_log_entry
            tables t_zint_mslog
            using  'E' 'ZINT_CSTPORD_ROUTINES'
                       'PROCESS_INBOUND_DATA'
                       'Parameter LGORT is missing from ZINT_PARAM'
                       p_zint_nw
                       lwa_01-ticketnumber.                " RJS
          exit.
        endif.
        loop at l_it_05 into lwa_05
          where ticketnumber = lwa_01-ticketnumber.
          clear lwa_gm_item_create.
          lva_filemat = lwa_05-material.
          if lva_filemat eq lva_prodmat.
            concatenate 'Command ticket-' lwa_05-ticketnumber
              into lwa_hdrlevel-conf_text.
            lwa_hdrlevel-conf_quan_unit = lwa_05-unitofmeasure.
            lwa_hdrlevel-yield          = lwa_05-quantity.
    check whether the confirmed value + current delivery value is equal *
    the production order qty. If the production order value is less
    than the total delivered value, set final conf indicator  and clear
    reservations
            lva_wemng = lva_wemng + lwa_05-quantity.
            if lva_wemng < lva_psmng.
              lwa_hdrlevel-clear_res      = c_false.
              lwa_hdrlevel-fin_conf       = ' '.
            else.
              lwa_hdrlevel-clear_res      = c_true.
              lwa_hdrlevel-fin_conf       = 'X'.
            endif.
            move: 'Z1BP_PP_HDRLEVEL' to t_idoc_data-segnam,
                  lwa_hdrlevel       to t_idoc_data-sdata.
            append t_idoc_data.
            clear lva_formmat.
            lva_formmat                   = lwa_05-material.
            lwa_gm_item_create-material   = lva_formmat.
            lwa_gm_item_create-plant      = lwa_03-plant.
            lwa_gm_item_create-ref_date   = lwa_01-ticketdate.
            lwa_gm_item_create-prod_date  = lwa_01-ticketdate.
            lwa_gm_item_create-move_type  = '101'.
            lwa_gm_item_create-spec_stock = 'E'.
            lwa_gm_item_create-sales_ord  = lva_saleord.
            lwa_gm_item_create-entry_qnt  = lwa_05-quantity.
            lwa_gm_item_create-entry_uom  = lwa_05-unitofmeasure.
            lwa_gm_item_create-orderid    = lva_prodord.
            lwa_gm_item_create-move_mat   = lva_formmat.
            lwa_gm_item_create-move_plant = lwa_03-plant.
            lwa_gm_item_create-mvt_ind    = 'F'.
            clear t_idoc_data.
            move: 'E1BP2017_GM_ITEM_CREATE' to t_idoc_data-segnam,
                  lwa_gm_item_create        to t_idoc_data-sdata.
            append t_idoc_data.
          else.
            clear: lva_loggr,
                   lva_formmat.
            lva_formmat = lwa_05-material.
            select single loggr into lva_loggr from marc
              where matnr = lva_formmat
              and   werks = lwa_03-plant.
            if sy-subrc ne 0.
              clear v_messg.
              No logistics handling group - log a warning message.
              concatenate 'No logistics handling group for material'
                           lva_formmat
                          'in plant'
                           lwa_03-plant
                into v_messg separated by space.
              perform write_log_entry
                tables t_ldata
                using 'W' 'ZINT_CSTPORD_ROUTINES'
                          'PROCESS_INBOUND_DATA'
                          v_messg
                          p_zint_nw
                          lwa_01-ticketnumber.                " RJS
              clear lva_loggr.
            endif.
            if lwa_03-satsur eq 'T'.
              lwa_e1edl21-lprio = 30.
            else.
              lwa_e1edl21-lprio = 20.
            endif.
          else.
            if lwa_03-satsur eq 'T'.
              lwa_e1edl21-lprio = 10.
            else.
              lwa_e1edl21-lprio = '  '.
            endif.
          endif.
          lwa_e1edl21-berot = lwa_04-driver.
          move: 'E1EDL21'   to t_idoc_data-segnam,
                lwa_e1edl21 to t_idoc_data-sdata.
          append t_idoc_data.
          lwa_e1edl55-qualf = '001'.
          lwa_e1edl55-refnr = lva_saleord.
          move: 'E1EDL55'   to t_idoc_data-segnam,
                lwa_e1edl55 to t_idoc_data-sdata.
          append t_idoc_data.
    Loop at materials - create delivery entry for each
          loop at l_it_05 into lwa_05
            where ticketnumber = lwa_01-ticketnumber.
            clear t_idoc_data.
            lwa_e1edl24-matnr = lwa_05-material.
            lwa_e1edl24-werks = lwa_03-plant.
            lwa_e1edl24-vfdat = lwa_01-ticketdate.
            lwa_e1edl24-lfimg = lwa_05-quantity.
            lwa_e1edl24-vrkme = lwa_05-unitofmeasure.
            lwa_e1edl24-lgort = t_zint_param-zint_fv.
            clear lva_loggr.
            lva_formmat = lwa_05-material.
            clear lva_loggr.
            select single loggr into lva_loggr from marc
              where matnr = lva_formmat
              and   werks = lwa_03-plant.
            if sy-subrc ne 0.
            No logistics handling group - log a warning message.
              concatenate 'No logistics handling group for material'
                           lva_formmat
                          'in plant'
                           lwa_03-plant
                into v_messg separated by space.
              perform write_log_entry
                tables t_ldata
                using 'W' 'ZINT_CSTPORD_ROUTINES'
                          'PROCESS_INBOUND_DATA'
                          v_messg
                          p_zint_nw
                          lwa_01-ticketnumber.                " RJS
              lva_loggr = 'BBIN'.
            endif.
            if lva_loggr is initial.
              move: 'E1EDL24'   to t_idoc_data-segnam,
                    lwa_e1edl24 to t_idoc_data-sdata.
              append t_idoc_data.
            endif.
          endloop.
          clear: lva_xabln,
                 lva_vbeln,
                 l_vbfa.
    Matching ticket against a Delivery?
          select single xabln vbeln into (lva_xabln,lva_vbeln) from likp
              where xabln = lwa_01-ticketnumber.
          if sy-subrc = 0.
    If found, does this delivery match the sales order?
            select * from vbfa into l_vbfa
              where vbelv = lva_saleord
              and   vbeln = lva_vbeln.
              exit.
            endselect.
          endif.
    No matching delivery found, or Matching delivery, but for other Sls Ord
          if lva_xabln is initial
          or ( lva_vbeln <> space and l_vbfa is initial ).
            if not lva_saleord is initial.
              perform create_delivery_idocs tables t_zint_mslog
                                            using  s_idcgp
                                                   lwa_01-ticketnumber
                                                   p_zint_nw.
            else.
              concatenate 'Error finding a Sales Order for ticket "'
                          lwa_01-ticketnumber
                          '" reprocess the file AFTER'
                          ' the sales order issues have been fixed'
              into        lva_outtext.
              perform write_log_entry tables t_zint_mslog
                                      using  'E'
                                             'ZINT_CSTPORD_ROUTINES'
                                             'PROCESS_INBOUND_DATA'
                                             lva_outtext
                                             p_zint_nw
                                             lwa_01-ticketnumber. " RJS
            endif.
          else.
            concatenate 'Command Ticket "'
                        lwa_01-ticketnumber
                        '" has already been processed into delivery "'
                        lva_vbeln
            into        lva_outtext.
            perform write_log_entry tables t_zint_mslog
                                    using  'I'
                                           'ZINT_CSTPORD_ROUTINES'
                                           'PROCESS_INBOUND_DATA'
                                           lva_outtext
                                           p_zint_nw
                                           lwa_01-ticketnumber. " RJS
            refresh t_idoc_data.
          endif.
        endif.
        refresh t_idoc_data.
    Write out all messages collected so far
        perform update_data tables t_zint_mslog
                            using p_zint_id p_zint_ty.
      endloop.
    Write out all messages collected so far
      perform update_data tables t_zint_mslog
                          using p_zint_id p_zint_ty.
    endform.                    " process_inbound_data
    Thnaks
    Regards

    Thanks
    Thread closed

  • 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

Maybe you are looking for

  • Fixed Asset Sale through SD & AA Module

    Dear All, While selling the fixed asset, carried out the following procedure. Is it correct? In India, we need to pay excise. Due to this, the asset which is required to be sold, needs to be created as a material. Following steps are carried out - a)

  • Disabled built-in mic

    Hi. I have a mac mini MC815BZ/A which has a built-in mic, but when I enter on garage band the program says that there are none "integrated MIDI in". Also, all the system doesn`t detect the presence of a integrated mic. But it's not all the problem: w

  • Windows - Blinking Cursor on First Boot

    I had Vista running fine before, except for a weird issue that caused me to want to format and reinstall, this time with Windows 7. My optical drive is broken so I installed via USB DVD drive. When I boot into the Windows drive, it just appears as a

  • Re: Exporting Gradient Overlays w/ Transparency

    I am currently using photoshop CS5, I have a layer that is a vector mask over a solid color. The fill of the layer is black, so when i set it to screen it's transparent. I then have a gradient overlay effect applied to the layer that fades from a sol

  • App available in Windows 8.1 store missing in Windows 10 Store

    I have couple apps in Windows 8.1 store. One of them is available in Windows 10 Store, the other one could not be found. Any ideas why that could be the case?