Production order confirmation via BAPI

Hi, I'm using the function module "BAPI_PRODORDCONF_CREATE_HDR" called from an external system.
I fill the parameters "ORDERID", "YIELD", "SCRAP", "FIN_CONF" and "EX_CREATED_DATE" in the "ATHDRLEVELS" table for each production order i'd like to confirm. (That should be the only parameters I have to fill)
I get the "DETAILRETURN" table back with the message type "I" (Information) and the message "Confirmation of order xxxxxxxxx saved".
The production order is confirmed, so why didn't I get a "S" (Success) message type? Why can I confirm as many times as I want (only the confirmation counter is increasing).
I would like to get an information that make me sure that this confirmation is done (or not)... so that the external system can retry the "bapi call"  for instance.
Can someone tell me if there is a configuration, a solution or explain me  what happens?
Thanks in advance.

Hi Caetano,
Thanks for your reply.
I tested BAPI_PRODORDCONF_GET_HDR_PROP and it proposes goods movements according with open quantity of the production order. In this case, would I have to adjust all movements with actual quantity?
Is possible to propose goods movements according with confirmed quantity?
Regards,
Marcos

Similar Messages

  • Production order confirmation with BAPI

    Dear PP friends,
    I want to create a program to confirm production orders in mass at header level like CO15. To do it I am trying to use BAPI_PRODORDCONF_CREATE_HDR and it works fine for planned backflush.
    However, I am not able to change data of goods movement (quantity, warehouse and batch). Is it possible?
    What is the function of GOODSMOVEMENTS table?
    I studied the following thread but I could not solve it.
    Production Order Confirmation BAPI
    Does anyone have suggestions?
    Thanks in advance.
    Marcos

    Hi Caetano,
    Thanks for your reply.
    I tested BAPI_PRODORDCONF_GET_HDR_PROP and it proposes goods movements according with open quantity of the production order. In this case, would I have to adjust all movements with actual quantity?
    Is possible to propose goods movements according with confirmed quantity?
    Regards,
    Marcos

  • Production order confirmation through BAPI

    hi all,
    i have an issue regarding the order confirmation 'BAPI_PRODORDCONF_CREATE_TT'. the order is getting confirmed but the confirmed yield is not geeting updated . ihave passed the order number , operation , Activity Currently to be Confirmed, and unit of measure. can anyone please suggest on this . urgent. do i need to pass the quantity if yes where and which parameter and which quantity to pass to the function module.

    Hi , I have the same problem. When I am running BAPI_PRODORDCONF_CREATE_TT , after successful execution it gives msg that ORDER Confirmation saved. But when i check that in CO14, its not showing the update.

  • Extensionin parameter in the Production Order Confirmation BAPI

    Hi All,
    I am looking for a Production Order Confirmation BAPI which has the Extensionin parameter to append values for custom fields in table AFRU.
    But i could not find one with the Extensionin parameter.
    Please let me know if there is any option or any other Production Order Confirmation BAPI which can meet this requirement.
    Thanks in Advance.
    Jaffer Ali.S

    First off, thanks for these posts.  Worked for me, too.
    Let me just add a little more clarification:
    1) First you call BAPI_PRODORDCONF_GET_HDR_PROP
    2) Then you must update the field ENTRY_QNT from the internal table you pass in to "goodsmovements" because function BAPI_PRODORDCONF_GET_HDR_PROP wipes that field out and you will miss the posting without this filled
    3) Then you call BAPI_PRODORDCONF_CREATE_HDR with the same internal table you got back from the first function inclusive of you putting back ENTRY_QNT.
    4) Commit work and wait.
    So, in summary, the first fm is needed and the first fm changes some fields in the "goodsmovements" internal table that you really need to get the posting to work in the second fm.
    And one more thing, the exact function that an earlier posted referenced to find out that both of the functions in this note were called together is:  PP_CATT_CONFBAPI_HDR.
    Message was edited by:
            Kenneth Goldstein

  • Changr HU quantity generated via PRoduction order confirmation

    Hi gurus,
    I have created GRN of 112 quantity via production order confirmation.
    My plant andstorage location is Handeling unit managed so with GRN handeling unit gets generated.
    but packing had done for 1 quantity only.
    now how to change this quantity?  I tried HUCANC t code and gave the HU number but system is giving error that HU can not be cancelled.  first cancelled material document
    but GRN has made 112 quantity which is correct then how HU got packed with 1 only?
    I stuck up pls help

    when I am trying to change Hu in humo i am getting following error
    Storage type 111 does not allow repacking - HUs cannot be changed
    also getting following error if I am changing the quantity or emptying the Hu
    Handling unit 10016000800120555 has status "cannot be changed" - Process cancelled
    Edited by: vrunda on Jul 9, 2010 10:57 AM
    If I tried to delete
    Handling unit 10016000800120555 contains items that cannot be deleted
    Edited by: vrunda on Jul 9, 2010 10:58 AM

  • Checks in userexits of production order confirmations from PDC in CO16N

    Hi,
    we are using PDC interface for production order confirmations. This is done by Idoc type PPCC2PRETTICKET01 (time ticket) based on BAPI BAPI_PRODORDCONF_PDC_UPLOAD_TT. Standard confirmations are working well. In case of SAP detected errors the confirmations are registered for error handling in CO16N.
    So far so good but we have some own check logic implemented in confirmation user exit CONFPP04 and BADI WORKORDER_CONFIRM. These checks are working fine whith online confirmations in CO11N but not in background PDC Idoc processing. I checked the function module EXIT_SAPLCORF_104 for exit CONFPP04 but it has got no exception. The call in SAP processing is like this:
          CALL CUSTOMER-FUNCTION '104'
               EXPORTING
                    CAUFVD_IMP    = I_CAUFVD
                    AFVGD_IMP     = I_AFVGD
                    AFRUD_IMP     = E_AFRUD
               IMPORTING
                    AFRUD_EXP     = LS_AFRUD
               EXCEPTIONS
                    ERROR_MESSAGE = 01
                    OTHERS        = 02.
      CASE SY-SUBRC.
        WHEN 0.
        WHEN 1.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH
                  SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
                  RAISING CONF_DATA_FALSE.
        WHEN 2.
          MESSAGE E174 RAISING CONF_DATA_FALSE.
    How can I throw the exception when there is no exception defined in the function module interface without modification?
    As 2. option I wonder if it is better to implement the check logic in the BADI WORKORDER_CONFIRM Method AT_SAVE. This has got an exception ERROR_WITH_MESSAGE. But I don't know if this will lead to CO16N registration of the confirmation.
    Any hint how I can solve the problem to apply the online checks in CO11N also to PDC interface confirmations with CO16N in error case?

    Hi Michael,
    First, I think that the BAPI that you are looking for is: BAPI_PRODORDCONF_CREATE_HDR
    Second,
    I don't think that in the framework of such a forum it can be explained in detail how to use BAPIs; nevertheless, here are some highlights:
    A BAPI is an executable piece of code that can be called from either an external program within SAP (Z program), or called from an external system either via RFC, or as a web service (depends on your NetWeaver  release).
    As such, it has input (import) data that you transfer when you call it, and output (export) data that you recieve when it ended processing.
    More detailed information, documentation, and a description of the import/export parameters, as well as error handling, one can find in SAP by calling transaction BAPI.
    Regards,
    Mario

  • Production order create with BAPI in R/3

    hi,
    we want to create a production order with a simple programm: the user put's in the material number the
    quantity and the finish date - and then a production order
    should be created, saved and printed in one step.
    does anybody know the right BAPI (BAPI'S) for this action?
    thanks

    There isn't one according to the BAP explorer (txn BAPI). I'm on version 4.7 and can't see one.
    There only seem to be some for Production Order confirmations.
    Cheers
    Colin.

  • Production order confirmations to BW

    Hi,
    Does anybody know if it is possible to take production order CONFIRMATIONS (Fertigungsauftrags Daten auf Ebene Rückmeldungen) to BW via standard routines? In LBWE (with 2LIS_04_P_ARBPL, ...) it does not work.
    Would appreciate any idea ...
    Thank's Markus

    i don't think we are getting that from standard DS. I will tell you our set up. Workcenter will assigned from the Planed Order.
    Comming to your cases... check the DS once again. I will check it out. If you are not getting the values for work center where it is confirmed.
    Create a Generic DS. i can guide to generate a DS and for delta handling.
    1. Create a Generic Extractor for Master Data.
    2. Provide Table Name "AFRU".
    3. save the DS. click on Generic Delta Provide the field "ERSDA" and select the Calender Day. it will pick up the Delta records.
    Any questions let me know. If you reslove this with creating Generic DS please update the thread.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • BDC for production order confirmation (co11n)

    Dear All,
    Is it better to create a table control BDC for Production Order confirmation (CO11n)?
    Or there is any other efficient way?
    Pls guide me.
    Thank you
    Vijay

    Hi,
    There are different BAPIs available:
    BAPI_PRODORDCONF_CREATE_ACT    Enter activity confirmation
    BAPI_PRODORDCONF_CREATE_HDR    Enter Order Confirmations
    BAPI_PRODORDCONF_CREATE_TE     Enter Time Event Confirmation
    BAPI_PRODORDCONF_CREATE_TT     Enter Time Ticket Confirmation
    You can use them depenidng on your requirement..

  • Production order confirmation detail problem

    Hi,
    how can i get the production order confirmation detail by sending confirmation mumber alone?
    in BAPI_PRODORDCONF_GETDETAIL, it need confirmation counter. but if i know confirmation number alone, how can i get the details? which BAPI shall i use to get the confirmation details by sending confirmation number alone?
    regards
    senthil

    Dear Senthil,
    I saw you already solved this thread.
    call function 'BAPI_PRODORDCONF_GETDETAIL'
          exporting
            confirmation              = conf_detail_2-conf_no
            confirmationcounter       = conf_detail_2-conf_cnt
         importing
         RETURN                    = i_return2
           conf_detail               = conf_detail_3 .
    In this FM there has no any tables.
    How can I get the details?
    Could you please advice me?
    Thanks in advance.
    Bishnu
    18/10/2011

  • Production Order Confirmation saved but no goods movement happening

    Hi Folks,
    I have implemented an enhancement while Production Order Confirmation ( txn CO11N). The enhancment works as follow:
    I have a production order with quantiy 2. Now I am making confirmation for quantity 1. In the enhancement, i have used a BAPI called BAPI_PRODORD_CREATE_FROM_REF to create another production order with the remaining quantity 1.
    As of now everything works fine and a new prod order is created with quantity 1.
    Now, I release this newly created prod order and make GR for the same. The problem here is, now when I try to confirm this newly created prod order ( txn CO11N), the confimation is saved but the goods movement does not happen. I get a message saying " Confirmation saved (Goods movement 0, failed 1) ".
    The original order is of type PP01 and everything works fine for it. The newly created order is of type ZRWK (rework) and for this only confimation is saved but no goods movement.
    Request you to please suggest how can I remove this error and make goods movement as that of for the original order.
    Thank you.
    Regards,
    Sud.

    Hi
    Check if you have something in the tcode COGI. Perhaps you don't have enough stock of raw materials
    Regards
    Eduardo

  • Serial Number. Production Order Confirmation. GR. UD. Sales Delivery

    Hi Gurus,
    Please help on this issue to get any user exits .....
    As part of Serial number management, we have a certain issues on serial number confirmation, goods receipt from production order and quality inspection with UD.
    Master data:
    Finished product material master, Workscheduling view, Serial number profile maintained " ASRN"
    Process flow:
    1) Avalon Specific Serial numbers generation for finished goods through production order release status.
                  (A11206000001)
                                        A  - Avalon
                                        1   - PCB Unit 1
                                        12 - Year 2012
                                        06 - Week
                                        000001 - Running serial number for the week.
    2) Production order confirmation through CO11n transaction.
    3) Production order Goods receipt through MIGO transaction against order.
    4) Quality Inspection with Usage Decision through QA32 transaction.
    5) Goods Issue for Delivery.
    SAP Product Error:
    1) System does not track and control the operation wise confirmed serial numbers during order confirmation.
    2) System does not track and control the finally confirmed serial numbers during order goods receipt.
    3) System does not track and control the last goods receipt qty in Usage Decision.
    4)  For semi finished product, if we maintain serial number profile in workscheduling view, system is not showing goods issue material list in Co11n transaction for the finished goods.
    5) Interfacing the serial number reading scanner with SAP,  is not working without entering material number and serial number manually.
    6) System does not tracking and controlling the last Usage Decision done serial number during Goods issue to Sale order Delivery.
    Regards,
    Santha

    Hi Santha,
    This is a bit vast, but I'll try to address at least some of the issues:
    1- serial number in operation confirmation is not possible, for the reason that serailization is part of stock management, and as WIP in an order, this is not stock yet. Actually you cannot confirm the manufactured material either, and those 2 go together.
    For tracking specificly WIP, there's something called WIP batches; you may look into it to see if you can use it.
    2- during GR system will propose those SNs that you have defined for the order at release or creation.
    3- ?
    4- GI in CO11N is provided only for BACKFLUSHED material components. Serialized materials CANNOT be backflushed.
    5- You can use a barcode reader to read the serial number (instead of keyboard entry) when cursor is on the right field in the respective screen.
    6- ?

  • Change Work Center during production order confirmation

    Dear All,
    I must to modeling this situation:
    I created an production order. In routing I used an work center A.
    After I confirmed a half of quantity, the work center A was damaged and I must to change it, with the work center B.
    The system allow this change, but when I checked the costing, the situation isn't real. The system counted the costs just for the work center A, and no for work center B.
    My question is: it's possible to change the work center, during production order confirmation and the costs updated with new cost?
    Thank you for your answer!
    Regards,
    Marian

    once a Order is released, the Process order detaisl for that order is frozen.
    however if you want to do it, change the order status to CRTD after reversing the Movements done.
    Do READ MAster data , this will copy the new Work center , redo the previously done Moevements.
    if the change is long term.
    or
    Just manually add the new work center and do the processing. if the change is temporary.

  • URGENT: Prob with Production Order Confirmation

    Hi Gurus,
    I have a problem with Production Order Confirmation.
    When I am confirming a Prod Order and if the components present are more than '999', then error is being thrown and Material Document Number is not being created.
    I want to split the records into 500 slots and pass them at a time for the creation of the Production Order so that it doesnt throw me an error while creating a Material Document No.
    While saving the Production Order confirmation order, it should split the records into 500 slots each and then create Material Document No for each slot.
    Can anyone please help me out in this regard, how to solve this.
    Thanks & Regards,
    Harish Kalla

    Hi Harish,
    This problem is addressed in OSS Note : 36353
    The Symptom reads like this
    ==========================================================================
    When you post documents using the AC interface (from SD, MM or other applications), items appear in the FI document which are identical in all or in almost all fields.
    This can also cause error message F5 727 ("Maximum number of items in FI reached"). The system issues this error if more than 999 items occur in an FI document.
    ===========================================================================
    This Note is an elaborate one..
    Hence, go through this and ask your FI Consultant to help you in this regard.
    All the best..
    Regards,
    Siva

  • Production order confirmation in co11.

    In co11 ,   I want to post balance qty while doing the production order confirmation.  actually total qty issue is 10 but confirmed qty is 5 , here balance qty 5 shud be posted automatically while save the confirmation.

    solved . developed the custom pgm.

Maybe you are looking for