BAPI for operation change in production order?

Hi there,
I want to change operation data in a production order and I can only find this BAPI:
BAPI_ALM_ORDER_MAINTAIN
Can this BAPI also be used for changing an production order? Because in the documentation of the BAPI this function isn't really mentioned...
Can you give me some hints or the name of another BAPI doing this task?
Kind regards
Max

yep it can be used for that, the documentation for this bapi is ( very unusual for bapis I know ) available
call the bapi in se37. goto -> documentation
I don't have an example for changing orders and operations but I use it to copy serviceorders (only difference between serviceorder and production order is that you can enter a customer at serviceorders)
which are quite extensive with lot of operations and components and functional locations
here my example for creation. for change I believe you also have to fill the UP structures accordingly to what you want to update
kind regards
arthur
gs_meth-refnumber  = 1.
  gs_meth-objecttype = 'HEADER'.
  gs_meth-method     = 'CREATE'.
  gs_meth-objectkey  = c_init_ordid .
  append gs_meth to gt_meth.
  move-corresponding gs_meth to gs_ext.
  gs_meth-refnumber  = 1 .
  gs_meth-objecttype = 'PARTNER'.
  gs_meth-method     = 'CREATE'.
  gs_meth-objectkey  = c_init_ordid.
  append gs_meth to gt_meth.
  h_refnumber = 1.
  loop at gt_operations_i into gs_operations_i.
    concatenate c_init_ordid gs_operations_i-activity into gv_so_operation.
    gs_meth-refnumber  = h_refnumber.
    gs_meth-objecttype = 'OPERATION'.
    gs_meth-method     = 'CREATE'.
    gs_meth-objectkey  = gv_so_operation.
    append gs_meth to gt_meth.
    add 1 to h_refnumber.
  endloop.
  clear h_refnumber.
  loop at gt_components_i into gs_components_i.
    add 1 to h_refnumber.
    gs_meth-refnumber  = h_refnumber.
    gs_meth-objecttype = 'COMPONENT'.
    gs_meth-method     = 'CREATE'.
    concatenate c_init_ordid
                gs_components_i-activity
                gs_components_i-item_number
    into gs_meth-objectkey.
    append gs_meth to gt_meth.
  endloop.
  clear h_refnumber.
  loop at gt_texts into gs_texts.
    add 1 to h_refnumber.
    concatenate c_init_ordid gs_texts-activity into gv_so_operation.
    gs_meth-refnumber  = h_refnumber.
    gs_meth-objecttype = 'TEXT'.
    gs_meth-method     = 'CREATE'.
    gs_meth-objectkey  = gv_so_operation.
    append gs_meth to gt_meth.
  endloop.
* gebruikte objecten cq functieplaatsen
  clear h_refnumber.
  loop at gt_objectlist_i into gs_objectlist_i.
    add 1 to h_refnumber.
    gs_meth-refnumber  = h_refnumber.
    gs_meth-objecttype = 'OBJECTLIST'.
    gs_meth-method     = 'CREATE'.
    gs_meth-objectkey  = c_init_ordid.
    append gs_meth to gt_meth.
  endloop.
  clear h_refnumber.
if p_objrel = 'X' and gt_relation_i is not initial.
* koppeling functieplaats met operatie
* kunnen geen meervoudige koppelingen gemaakt worden in BAPI
* dus hier 1 koppeling maken en na BAPI de rest aanleggen
  read table gt_relation_i into gs_relation_i index 1.
  add 1 to h_refnumber.
  gs_meth-refnumber  = h_refnumber.
  gs_meth-objecttype = 'OLISTRELATION'.
  gs_meth-method     = 'CREATE'.
  gs_meth-objectkey  = c_init_ordid.
  append gs_meth to gt_meth.
endif.
  gs_meth-refnumber  = c_init_ordid.
  gs_meth-objecttype = space.
  gs_meth-method     = 'SAVE'.
  gs_meth-objectkey  = c_init_ordid.
  append gs_meth to gt_meth.
* BAPI-call
  refresh: gt_ret, gt_numbers.
  clear:   gt_ret, gt_numbers.
  call function 'BAPI_ALM_ORDER_MAINTAIN'
    destination 'NONE'                       " --> Zie note 770626 !
    tables
      it_methods             = gt_meth
      it_header              = gt_header_i
*       IT_HEADER_UP           =
*       IT_HEADER_SRV          =
*       IT_HEADER_SRV_UP       =
*       IT_USERSTATUS          =
      it_partner             = gt_partner_i
*       IT_PARTNER_UP          =
      it_operation           = gt_operations_i
*       IT_OPERATION_UP        =
*       IT_RELATION            =
*       IT_RELATION_UP         =
      it_component           = gt_components_i
*       IT_COMPONENT_UP        =
      it_objectlist           = gt_objectlist_i
      it_olist_relation       = gt_relation_i
      it_text                = gt_texts
      it_text_lines          = gt_text_lines
      extension_in           = gt_ext
      return                 = gt_ret
      et_numbers             = gt_numbers.
  call function 'BAPI_TRANSACTION_COMMIT'
    destination 'NONE'
    exporting
      wait          = 'X'
*         IMPORTING
*           RETURN        =
*   Zie note 770626 ...
  call function 'RFC_CONNECTION_CLOSE'
    exporting
      destination                = 'NONE'
*       TASKNAME                   =
    exceptions
      destination_not_open       = 1
      others                     = 2
Edited by: A. de Smidt on Feb 26, 2009 5:20 PM

Similar Messages

  • BAPI for material documents by production order

    I'm looking for a BAPI that will provide the list of material documents for a given production order. This is similiar to the functionality provided by the COOIS transaction using: "Documented Goods Movements" as the list type. I've looked at BAPI_GOODSMVT_GETITEMS. However this BAPI does not contain a method to select by production order.
    Message was edited by:
            Glenn Doherty

    HI
        Check this link it wuld be helpful to you
    'BAPI_ALM_ORDER_MAINTAIN' for change in service order.

  • Reg:Bapi for mass creation of production order/confirmation

    Dear Experts,
    I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
    I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
    BAPI_PRODORD_CREATE to create the orders.
    BAPI_PRODORD_RELEASE to release the orders.
    BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
    BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
    Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
    Need your suggestions to take it further.
    Regards,
    Daya.

    Dear SAP Daya
    If the issue has been solved, please close this thread.
    You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
    Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
    Please read carefully the The SCN Rules of Engagement, especially point 8:
    Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
    Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
    BR
    Caetano

  • No entry in CDHDR & CDPOS for change in Production Order

    Hi,
    I am unable to get entries in Tables CDHDR & CDPOS for any change in Production Order. Actually I need the Number of times a Production Order has been changed. Please help on this.
    Cheers
    Abhishek

    You can trace the below navigation so that you will get good idea :
    goto CO03 -> enter production order # -> enter ->goto -> change management
    Thanks
    Seshu

  • Standard Report for missing parts at production order operation level?

    Hi PP Gurus,
                We have standard report for missing parts at production orders level.
    For our client, they need a report for missing parts analysis at production order operation level. Do we have any such standard report in the SAP?
    Please help.
    Thanks,
    Reddy.

    Hi Arvind,
          Thanks for for your response.
    1. List: Components,  Layout: Standard layout          set the Missing part
           It shows the component requirement/withdrawn  quantity for each operation of production order. It is not showing the commit quantity.
    2. List: Components,  Layout: Pick list          set the Missing part
           It shows the component requirement/withdrawn  quantity for each production order.
    3. List: Components,  Layout: Missing Parts List-Material View          set the Missing part
           It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
    4. List: Components,  Layout: Missing Parts List-Order View          set the Missing part
           It shows the component requirement/commit quantity for each production order. It is not showing the commit quantity at opertion level.
          We are unable to get the solution from all these 1 to 4 reports from COOIS.
    Do we have any option to change the existing layout (ex: 3 ) to get the commit quantity for operation with missing parts indicator?
    If avilable, what is the procedure to be followed?
    Thanks,
    Reddy.

  • How to change operation dates in Production Order /Capacity Leveling

    Dear Experts ,
    We are using ECC 5.0 .In production order , scheduling happing as Backward  based on the Sales Order Delivery Date .I am doing the following :
    1.Demand as Sales Order with Delievery date : 20.03.2010
    2.Running MRP with Lead Time Scheduling -2  in md02 and converting the Planned Order to Production Order .
    4.Production Order have following dates :
             Basic Finsish Date : 21.03.2010
             Basic Start : the day Pl.Or--Pr.Ord
             Schedule Start : 15.03.2010
             Schedule Finsish : 17.03.2010
            Schedule Release : 13.03.2010
    5.In schedueling margin key :  Float Before Production : 3    , FAP : 3 , Release Period : 2
    6.In material master : Work Scheduling View : Setup : 3 days , Processing : 4 ,Interoperation : 2 for one Base Qty 1
    7.In operation : Op1  : Start Date  : 15.03.2010    Finish Date: 15.03.2010
                             Op2 : Start Date : 16.03.2010      Finish Date : 17.03.2010
                             Op2 : Start Date : 17.03.2010      FD : 17.03.2010
    Question :
    1.How to change the Operation dates  in Production Order Operation over view screen ? Today,  operation over view screen , Start date and Finsih Date  of individual operation are not changable with in Production Basic Start /BF date  or beyond .It is only changing based on the Standard Value : Labor
    2.How to change/re-schedule operation dates d in CM21 (Graphical view -Work Center Capacity load as per   Production Order and Operation combination ) based on capacity availale in advance dates? I am using  Time Profile : SAPSFCZ002 -SFC Graph midterm-3 motnhs and Planning  ,
    How to solve this above issue in scheduling operation and capacity distribution .
    Regards
    JH

    Closing the thread

  • Block Operation Number Change in Production order

    hello,
    How can i block the operation number change in production order if the operation status is CNF...?
    ie either disable the operation number cell or disable the entire row in the production order.
    rgrds
    Krishna.

    hi prashob
    i can't disable the column, as user need to insert operations in between
    AP, 
    I will check for this...
    regards
    Krishna

  • IDoc creation on save and change of production order

    I am looking for a way to create, and send if possible (if not I'll send with a batch job), on the save (creation and change) of production orders.  This will be a modified LOIPRO iDoc.  Currently we have a customer exit on the save of the production order but because it is before the save we must predict the number of the prod order.  This has worked but now we are creating one production order per line item in a sales order (automatically) so this is causing us to predict the same production order number twice.  We need a way to automatically create and send an iDoc for all production orders for given plants.  Right now the solution we are looking at is creating an output type and running through those output types a few times a day, sending them down to the Shop Floor system (proprietary system). 
    Is there anything setup in SAP that we can utilize?
    Regards,
    Davis

    Hi Rick,
    Follow the below sample steps for changing component quantity:
    DATA:
        l_methods TYPE bapi_alm_order_method,
        it_boperations TYPE STANDARD TABLE OF  bapi_alm_order_operation_e WITH HEADER LINE,
        it_components TYPE STANDARD TABLE OF bapi_alm_order_component_e WITH HEADER LINE,
        it_components1 TYPE STANDARD TABLE OF bapi_alm_order_component WITH HEADER LINE.
    1. Call BAPI :BAPI_ALM_ORDER_GET_DETAIL , it will give existing order component details.
    CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number        = <production order number>
        TABLES
          et_operations = it_boperations
          et_components = it_components
          return        = it_bapiret2.
    2. Move it_components to components table compatibel to BAPI "BAPI_ALM_ORDER_MAINTAIN".
    LOOP AT it_components.
    MOVE-CORRESPONDING it_components TO it_components1.
    _*"Note here while moving change the component quantity"*_
    APPEND it_components1.
    CLEAR it_components1.
    ENDLOOP.
    3. Build the methods table for change production order :
    it_methods-refnumber = v_refnumber.
                it_methods-objecttype = 'COMPONENT'.
                it_methods-method = 'CHANGE'.
                it_methods-objectkey = v_objectkey.
                APPEND it_methods.
    "Note v_refnumber has 1 to 1 relation ship with the components table, if you want to change First component in it_components1 then you have to enter value '1' here for v_refnumber.
    it_methods-method = 'SAVE'.
            APPEND it_methods.
    4 . Call
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
              TABLES
                it_methods   = it_methods
                it_component = it_components1
                return       = it_bapiret2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Changes in Production Orders

    Hi gurus,
    I want to track changes made by end users in the production orders in a report format. Which will tell what was old value and what is new value.
    What needs to be done for this?

    Dear
    Changes in Production Order can be  traced through following ways :
    1.Order Change Management :
    Frist a Overall profile should be configured in SPRO > PRoduction>Shop Floor Control > Operations>Change Management for Production Orders-->Define Overall Change Profile.
    Create a Change Number CC01 with Release Key
    In Object Types select/tick "Actv", "object", "MgtRec",
    You get the Change Number by Saving .
    Use this Change Number to Change BOM or Routings
    Then Release the Change Number useing Release Key till then you don't find the Change of BOM in Production Order.
    Then go to Oder Change Process T Code :- COCM
    Tick Change Number and Select the Change Number & Execute
    Select the Production Order, click on Procurement element icon you get another screen select and execute again.
    You get an Pop-Up screen. "Determine changes, Check changes, Change Original Order.
    you see the changes in BOM for Production Order i.e. after COCM.
    Then Confirm the Changes in Production Order then New changes will be Active in production Order.
    Use COCM1 to find out the details or CO03--Extra --change
    Please check link  : http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PPSFC/PPSFC.pdf
    2.To  get the changes in Production Order apply SAP Note 390635.
    3 .You can use T.code AUT10 to check the changes made to production orders in specified period.
    Regards
    JH
    Edited by: Jiaul Haque on Nov 28, 2010 2:11 PM

  • Component number change in production order

    hi experts,
              i want to know tat any standard bapi is available for change in production order
    regards ,
    vinodh.M

    hi gaurav,
              thanks for ur response,i want to know how to use this bapi,any sample coding is there

  • User-Exits/Badis for T.Code Co01 Production Order

    Hi Friends,
    Please can any one give the User-Exits/ Badis For Co01 , I need to link the Material with Documents....
    Thanks,
    Ravi...........

    These are the available user exits..
    CCOWB001            Customer exit for modifying menu entries
    COIB0001            Customer Exit for As-Built Assignment Tool
    COZF0001            Change purchase req. for externally processed operation
    COZF0002            Change purchase req. for externally procured component
    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
    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
    PPCO0021            Release Control for Automatic Batch Determination
    PPCO0022            Determination of Production Memo
    PPCO0023            Checks Changes to Order Components
    STATTEXT            Modification exit for formatting status text lines

  • Bapi for Equipment change

    HI
       I would like to know , is there  any  BAPI for Equipment change(T.code-IE02) to update all the feilds of equipment & automatically creates an asset number as normal tranaction code performes.
      As of now i am useing BAPI_EQUI_Change, please let me know any other than this BAPI
    Thanks&Regards
    lakshmi

    Hi,
       Check the FM <b>I_CHANGE_STATUS.</b>
    See the documentaion below
    FU I_CHANGE_STATUS
    Short Text
    Change a status for an object
    Description
    This function module is called to update the user status for a specified object (notification, notification task, order, or operation).
    Regards

  • Assembly to order: change in sales order with change in Production order

    I want to activate change in the sales order data when a production order(which is created w.r.t the sales order) data is changed (Strategy 82 used); I have de-activated "No Update" for the corresponding requirement class 201; also the material for which SO created ,is not a part of any Delivery group.
    But when I am changing the production order (date/qty.), SO isn't getting updated accoringly.
    Please tell me the reason why it isn't happening!!

    Hi
    The sales order requirement can be made as the production order receipt once you save the order in the system.
    so it is possible to change the receipt according to the sales order reqmt if any changes made in the sales order,
    in every entry or changes in the sales order ( if you use the stategy 82) . in back end system explode the BOM and the create the production order as per the order reqmt,
    even while you do the changes mad in the sales and save that time sytem re explode the BOM once again and change the production order qty.
    but if you change the production order , system not re run or explode the BOM , Routing . such setting is not made in the system . so obviously updation will not happen for the sales order .
    Edited by: raj on Jun 9, 2009 11:22 AM

  • How track changes in production order which is already Read PP master data

    Hi Gurus,
    Due to some unavoidable reason my client has to do Read PP master data time and again, now my client having a requirement that want to see what has been changes in Production Order.
    We already created 1 report for that which tracks whatever has been changed in Production Order but having a constraint in it.  That It could not be able to distinguish to which order READ PP MASTER DATA done.
    So my query is how to map that in report. As sytem Status directly changed to CRTD phase.
    Any table which can track the changes once the order been through with READ PP MASTER DATA?
    As there are huge number of Production Order so we can go and open each order to see the Status changes in each and every order.
    Hope to get a reply soon.
    Regards,
    Sap User

    Hi,
    A suggestion:
    Change the specification as, log changes at each save instead of Read PP Master Data, as the changes would become effective only upon save. So if this is acceptable then 2 options, 1. Go with OCM feature or 2. Refer note - 390635
    Revert if you face any issues.
    Regards,
    Vivek

  • Mass change on production order (assembly type) to put deletion flag status

    Dear all,
    I've make a mass change on production orders to settle the status DLFL through the Tcode CO78.
    Some of the production orders  are "assembly order" type. Those could not be up-dated with the DLFL because there are linked to customer order. The customers orders are closed.
    What can I do to change the status for this kind of production orders. It is necessary for me to be able to put the DLFL status in order to improve the process of production closure done each month.

    Hi kiran 
    Thanks for the response. As I cannot put deletion indicator on the Assembly order directly, Do we have to put deletion indicator on the sales order item?. If so, Can we put a deletion indicator after the sales order was delivered and invoiced. What exactly have you guys done to put deletion flag on the production order.

Maybe you are looking for