Production Order Confirmation BAPI

I am using BAPI_PRODORDCONF_GET_HDR_PROP to get the proposed values passing the order number. and then creating the confirmation using BAPI_PRODORDCONF_CREATE_HDR.
The problem arises when I change the qty proposed. 2 good movement documents are getting created, one for the main material and the other for its components. How can this be avoided?

Hi !!
And if you don' change anything there is only one ?? I think that ther always are two documents created - one for movement 101 one for all 261 mov3ement.
BR, Jacek

Similar Messages

  • 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

  • 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

  • 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

  • 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.

  • Measuring point update by production order confirmation

    Hi friends,
    I created a prt as equipment and assigned it to the routing. I created a production order and when i confirm the same i am getting following error as:
    Document MeasUnit has a different dimension to the characteristic unit
    Message no. IR071
    Diagnosis
    The measurement unit on creation of the measurement document must have the same dimension as the measurement unit of the characteristic of the measuring point.
    In this case, the measurement unit % does not suit the character unit EA of the measuring point 103.
    System Response
    Processing will not be continued.
    Procedure
    Use the possible entries help.
    Please suggest the solution.

    Hello Sir(s)
    i have gone through entire post for the subject related to measuring point auto update from production order confirmation.  I have tried the same but i dont know what i am missing.
    if i put some value like 1 or 2 and appropriate UOM then only my measuring document is being updated with the same value not with the actual confirmed quantity..  i have already maintained standard formulla in prt view.
    my basic requirement is to get actual value of produced quanity as counter update. means if 20 pieces have been produced and confirmed in co11n, then counter must bhe updated with the value of confirmed quantity.
    please advice what value should i put as usage in routing master to get actuall counter update.
    Will Highly appreciate your quick reply.
    Snapshots
    Regards.
    Mohammad.

  • Restricting Good Receipt Unless Production Order Confirmed

    Hi
    Experts,
    I want to Restricting Good Receipt Unless Production Order Confirmed
    I am doing following thing but the error is occured.
    Use Tcode BS02 ( Customising USer status profile).
    2. Select the order type which you want to configure (eg:PP000001) and choose "Details" button.
    3. In the User status table do the following:
    a. In the status no field type"1" , status field "Sta1", short text"GR not allowed",  lowest no "1",  Highest No "2". Mark a tick in the initial stats check box.
    b.Next line, type status no field "2" ,status field "sta2", short text"Gr allowed", lowest no "2" , highest no "2".
    4. Select the STA1 line and choose details. select the "create"button.select the "GR for prod order", mark "forbidden
    radio button" and "set radio button".
    5. Select the STA2 line and choose details. Selct the "create"button. select "confirm order", mark "permitted radio button" and "set radio button". Next choose "GR for prod order" , mark "permitted radio button".
    6.Save.
    Create a prod order and check whether the required scenario is working.
    I have created user status profile as PP000001   GR
    ERROR
    First define allowed object types
    Message no. BS218
    Diagnosis
    The object types for which a status profile may be used define which business transactions are included in business transaction control.
    Procedure
    First define for which object types this status profile can be used.
    What is object type how to define?
    Thanks & Regards
    Pert

    Hi,
    Refer to the below thread which addresses the same need:
    Re: GR not allowed :BS02
    Revert if you face any issues.
    Regards,
    Vivek

  • Is possible to create a TO automatically after production order confirmation?

    Hi all
    I have just a question in order to know if we can configurate a procedure to a Production Order, so my question
    is possible to create a TO automatically after production order confirmation in a standard enviroment?
    Thanks in advance for all your comments

    Hi Gurus,
    Thank you for your help in this case.
    Process:
    The customer create a production order in CO01 and then they confirm the order in CO15, after confirmation TR is created ( we can see this in LB10 ) and negative stock is created (  we can see this in LS24 ).
    Requirement:
    They are asking to create the TO automatically after the production order confirmation. Negative stock is afecting the process.
    Workaround:
    They are creating the TO in background in LB10. ( negative is fixed )
    Question:
    Can we create the TO automatically after confirmation in standard configuration?
    if no ,  how can we confirm this TO .using a JOB option?
    TR created after confirmation
        TR header
    LS24 negative units.
    Regards!!
    Ronald

  • Price difference on cancellation of production order confirmation

    Hi,
    We are having a material which is maintained at price control "S". We have created a production order for the material. In due course of business, we did confirmation for say 100 pcs of the material. However, immediatly on confirmation, we realized that we do not need to do the confirmation & hence we did the cancellation of the production order confirmation using CO13.
    On doing the production order confirmation cancellation, we observed that the system has posted some amount to "price difference account"
    We also observed that once in a while this kind of entries do get posted.
    It is requested to please let us know in why system is behaving this way?
    We have checked SAP Note no 216080 "Price difference when reversing GI for S-Priced material" & SAP Note no 215980 'Price difference during GR for the production order". However we are not convinced that these could be the reason for the price difference.
    Thanking you in anticipation
    Regards
    Santosh Kumar Agarwal

    Hi,
    Yes, you are correct in the understanding that the system creates quants in 914 when the production order confirmation is cancelled. But, it does not generate any TR or TO in the background to post the stock back into the original storage type.
    Can we not use the put away strategies so that the system determines where to place the material? My query is that despite all the configurations for automatic TO creation and confirmation for movement type 262, it does not generate a TO (or TR) in the background when a production order confirmation is cancelled using CO13.
    However, if I manually post a material using MB1A for 261 movement type and reverse it using 262, it generates a TO and confirms it as per the setting in configuration.
    The same thing does not work when we run it through PP (CO11N and then CO13).
    Any suggestions on how to approach this and where to check for missing configurations?
    Thanks and Regards,
    Gaurishankar

Maybe you are looking for

  • Images not loading in Spry HTML Panel

    Hallo everyone I am using links to load html fragments in a Spry HTML Panel, just like in the example page http://labs.adobe.com/technologies/spry/widgets/htmlpanel/SpryHTMLPanel.html The whole structure is inside a Spry Tabbed Panel. All works ok if

  • About Solution Manager upgrade from 3.1 to 4.0

    Hi colleague, I am in progress of finalizing a planning for an Upgrade project of Solution Manager from 3.1 to 4.0 release. The current usage of the Solution Manager usage is the following : - Only Blue Print and Implementation function used, - No mo

  • Reconciliation in cross company sales

    Hello, Developing a cross company sales flow following http://help.sap.com/erp2005_ehp_03/helpdata/EN/4a/ac853478616434e10000009b38f83b/frameset.htm Inter company billing (IV) is posted through EDI / ALE to the receiving company which creates an acco

  • How to escape *and* wildcard expand?

    Hi, I have a context index and a web app where users may search. As a matter of fact users may use "-" or "&" when they search for company names, so I have to escape these before passing it on to oracle text. I would like to use a wildcard expansion

  • I lost my serial number

    I lost my serial number for my adobe photoshop elements 11. Don't have the box, reciept etc. All I go twith me is the cd. My desktop broke and I want to install the cd to my new laptop. Pls help