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

Similar Messages

  • User Exit for Production Order confirmation with CO15

    Hi All,
    what User Exit I should use when validating batch when we do Production Order confirmation with CO15.
    Not when we create or release a Production Order.
    Will reward,
    mindaugas
    Edited by: Mindaugas Kazlauskas on Jan 30, 2008 5:03 PM

    Hi
    The Follwing Userexits available:
        Transaction Code - CO15                     Enter Production order Confirmation
    Enhancement/ Business Add-in            Description
    Enhancement
    CONFPP01                             
      PP order conf.: Determine customer specific default values
    CONFPP02                               
      PP order conf.: Customer specific input checks 1
    CONFPP03                              
       PP order conf.: Cust. specific check after op. selection
    CONFPP04                             
        PP order conf.: Customer specific input checks 2
    CONFPP05                               
       PP order conf.: Customer specific enhancements when saving
    CONFPP06                               
       PP Order Confirmations: Actual Data Transfer
    CONFPP07                               
       Single Screen Entry: Inclusion of User-Defined Subscreens
    CONFPS01                              
       PS confirmation: Determine customer specific default values
    CONFPS02                               
      PS confirmation: Customer specific input checks 1
    CONFPS03                             
        PS confirmation: Customer specific check after op. selection
    CONFPS04                              
       PS confirmation: Customer specific input checks 2
    CONFPS05                              
       PS confirmation: Customer specific enhancements when saving
    CONF0001                               
      Enhancements in order confirmation
    CONFPI01                              
       Process order conf.: Calculate cust.specific default values
    CONFPI02                               
       Process order confirmation: Customer spec. input checks 1
    CONFPI03                              
       Process order conf.: Cust. spec. check after op. selection
    CONFPI04                               
       Process order conf.: Customer specific input checks 2
    CONFPI05                              
       Process order conf.: Cust. spec. enhancements when saving
    CONFPI06                              
      Process order confirmation: Actual data transfer
    CONFPM01                             
        PM/SM order conf.: Determine cust. specific default values
    CONFPM02                             
        PM/SM order confirmation: Customer specific input checks 1
    CONFPM03                               
    PM/SM order conf.: Cust. spec. check after op. selection
    CONFPM04                              
       PM/SM order conf.: Customer specific input check 2
    CONFPM05                              
       PM/SM order conf.: Cust. specific enhancements when saving
    If it is helpful rewards points.
    Regards
    Pratp.M

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

  • Production order confirmation with Phantom Assy through CO11N

    Hi,
         We are trying use phantom assy in our production order, we have one BOM with 17 assy, now we have marked our 17 assy with special procurement as 50, we released order for the same, i confirm 10 machine say out of 15 machine through CO11N, now when i m trying to confirm remaining 5 machine through same CO11N system showing error, screen shot of which is attached,
    I tried to solve this issue, with some note in SCN but didnt able to solve it, i tried by removing back flush indicator for all Phantom assy but same error, i also tried to do partial confirmation in CO11N screen but no use, all the component are marked for Back flush indicator,
    Please help if any configuration i m missing in here, how can i start use this phantom assy, as releasing 17 order for assy is such a pain,
    Thanks,
    Pratik..

    Hi Pratik,
            You said that Auto GRN was done. Could you please clarify that do you have separate order for your assy( 15 machine as per your statement)? or you have a single order with 15 operations?
       I assume that you have separate order as you mentioned that auto GR was done. The message is clearly saying that without GI you can't do confirmation. So, please check whether GI was done against this order. If you remove the backflush indicator then you should do the GI manually against the order before doing Confirmation. Did you check the material movement against this order with 261 movement?
    Did you check any backlog record against this movement in COGI?
        It seems that customized error message, you can easily find the cause when debug this program with the help of your abaper. Please check all these things.
    Thanks

  • 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

  • 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

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

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

  • Production order confirmation problems

    My production facility has been having problems for years centered around the production order confirmation process.  My colleagues and I are considering submitting an OSS note to SAP, but figured that we should present our problems in these forums before making that next step.
    Here are some individual issues which I believe may be related.  All of these issues occur off and on at random.  They will typically occur when more users are working in the SAP system or when SAP is running slow.
    - When an order is confirmed and a label is printed, sometimes the quantity on the label will be incorrect.  Sometimes no label will print out at all.  When the order is unconfirmed and then reconfirmed again, a label prints out with the correct quantity.
    - When a confirmation is unconfirmed, the unconfirmation will not backflush the associated materials correctly.  Sometimes this error will appear in CO1P for us to re-confirm, but not always.
    - Sometimes confirmations will only backflush certain materials and not ALL the components within the production order.  When the confirmation is unconfirmed and then reconfirmed again, the confirmation will backflush all materials correctly.
    These problems occur at random intervals and never present the user with an error.  Close to 100% of the time all the confirmation issues will be corrected by simply u201Cre-doingu201D the confirmation as we did the first time (no changes in the process).  Only the second time around there will not be any issues.  This leads me to believe there is some internal issue with SAP, perhaps involving which tables CO11N pulls from when a confirmation is made.
    Any and all help is appreciated.  We currently run the AFS version of SAP.  This is my last stop before submitting an OSS note.

    Hi,
    I have not worked on AFS, so consider the below as a pointer which might help:
    When you post confirmations & notice that the components are not being backflushed, check in COGI it could be that there are some incorrect goods movement. You will be required to clear these entries from COGI.
    I suspect that you notice these because, the confirmations are being posted even before the stock for the same has been received & hence the issue with labels as well.
    Do a check on the above, if it resolves the issue, then i would suggest re-design the process to ensure you do not have COGI or COFC entries.
    Also do a search in OSS for AFS specific notes on confirmation.
    Hope it helps.
    Regards,
    Vivek

  • Total Production Order Confirmation..Urgent

    Hi
    Can anyone tell me where to find the total production order confirmation by Second ( or minutes or hours ) for any month i.e. say for example March 2007  
    Please suggest......Its urgent
    Rgds

    Hi Vichy,
    Try this,  COOIS,
    List =confirmation
    Profile =std profile
    selection -> sys status =CNF
    Resrict ther report with Dates with Order header level.
    To get activity values use change layout option inside the report.
    Select the field  like unit/activity. from change lay out menu.
    Pradeep
    Edited by: Pradeep Kumar on Apr 18, 2008 9:19 AM

Maybe you are looking for

  • Printing to a Windows shared printer via SAMBA

    I'm trying to setup my mac to print to a printer shared via a Windows PC on my network. I have gone into system preferences / print&fax and added a printer, used the "Advanced" settings on the toolbar, chosen SAMBA and entered the address of the prin

  • Calibri font not available in WebI

    Hello All, We are on BO XI R3. We have been using Calibri Font for all our reports built on DeskI. The same font is not available in WebI. Will it be possible for me to add this font in WebI and if yes, please let me know the procedure to do so. Than

  • Mouse wheel trigger?

    if a user scrolls with the mouse wheel, how do i capture it? thanks

  • Stop mp3 when flv loads

    Hello I was hoping someone could help me. my problem is that I'm creating a website that has a mp3 playing as background music. And I have several videos. I want the mp3 to stop when I load a flv and for it to start again when the flv is over. Can so

  • ITunes 10.2.2 won't install - Error message about Windows Installer package

    I ran a prompted update on iTunes for 10.2.2 for Windows Vista, and it completely wrecked itself. iTunes would no longer open, and it said that the shortcuts no longer existed. I have tried uninstalling iTunes and all traces of it, and re-installing