BAPI_PRODORDCONF_CREATE_HDR

Dear All,
We are using BAPI_PRODORDCONF_CREATE_HDR for Production
Confirmation.To meet the requirement of posting of associated goods movement with confirmation like
backflusing/Auto GR should take place as standard,relevant settings are done.
In Post Wrong entry Field '2' is set.But,the observation is,in case of any incorrect goods
movement,confirmation happens but incorrect goods movement are passed to Error log (Transaction Code :COGI).However,in configuration settings, in Confirmation parameters for production order,error due to incorrect goods movement are set for termination.
Is the mentioned behaviour is standard.Kindly advise.

Hi Stuti Bagchi
What you see is standard behavior.
Different from online process (it's process can be defined by T-CD OPK4 <process control> that originally from T-CD OPKC), Automatic Goods Movement from BAPI always use update task or background task.
The customizing that you mention only has influence on online process. So if the process use update task or background task, the customizing does not have any influence. (Since GM is done is in different task <update task or background task>, confirmation process cannot evaluate whether GM records has error or not.  So even you can process confirmation without error, GM can face error and it have to be re-process in T-CD COGI).
This behavior is standard behavior that is describe in following 2 SAP Notes. So I recommend you to read this note also.
SAP Note 208477  Consulting: Process control in confirmation.
SAP Note  540392 FAQ: Automatic goods movements
Best Regards
Keiji Mishima

Similar Messages

  • Confirmation of production order with BAPI_PRODORDCONF_CREATE_HDR

    Hello,
    I am trying to post confirmation, I get the right message that the confirmation is saved but it posts nothing. Can you help me??
    Thanks in advance

    Best try to run a test sequence
    SE37 don't insert any data here, choose in menu function module/test/testsequence
    here enter
    BAPI_PRODORDCONF_CREATE_HDR
    BAPI_TRANSACTION_COMMIT
    then F8. Then insert alle data in conf-Bapi or call data fro test data sequence. F8 then back and again F8.
    Then check database or check in CO14 if confirmation was saved.
    Regards,
    Sabine

  • BAPI_PRODORDCONF_CREATE_HDR  - Error RU051 (Orders of the order type YGD1)

    URGENT
    Hi there.
    I need to confirm orders thru a BAPI.
    I think I can confirm orders with BAPI_PRODORDCONF_CREATE_HDR, however when I test on transaction BAPI (Tab --> Tools    Single Test), and I enter the following data:
    Orderid> 1000080     postg_data> 18.03.2008     yield-->2
    I'm getting always the same error:
    RU051 - Orders of the order type YGD1 cannot be confirmed.
    If I use transaction CORK to check/confirm orders on my controlling area, the order types available are YB02 and YGD1 and if I use the above mentioned BAPI for any of these order types (YB02/YGD1) I always get the same error message (RU051). Can you please inform what I'm doing wrong?
    Kind Regards
    ASantos
    Edited by: Armando Santos on Mar 19, 2008 10:13 AM
    Edited by: Armando Santos on Mar 19, 2008 3:29 PM

    Hello Armando,
    I am getting the same error while executing the BAPI. Could you please let me know how you resolved this error.

  • BAPI for Production Order creation ?

    Hi Experts,
    I am new to PP module and as per my requirement I have to:
    1. Create Production order in ECC 6.0
        After searching BAPI explorer, SDN and other sites I could see that there is no BAPI for Create Production order.
        In one of the link I could find FM CLOI_CHANGES_UPL_31 used to create Production order in SAP.
    Is there any BAPI to create ??
    Can anyone let mw know right FM or BAPI to create Production order with an example.
    2. And I have to:
    Delete Production order
    which BAPI is used for deletion of Prd Ord
    BAPI_PRODORD_SET_DEL_INDICATOR or BAPI_PRODORD_SET_DELETION_FLAG
    For Confirm Production order - in ECC 6.0 Let mw know the BAPI for this ..
    Really helpful if you answer my queries...
    Thanks
    Uday

    Hi udaya,
    use the BAPI 'BAPI_PRODORD_CREATE'
    The following BAPIs are available confirmation of production orders:
        Entry
            Time ticket
            ProdOrdConfirmation.CreateTimeTicketMultiple
            BAPI_PRODORDCONF_CREATE_TT
            Time event
            ProdOrdConfirmation.CreateAtHeaderLevelMultiple
            BAPI_PRODORDCONF_CREATE_HDR
            Order confirmation
            ProdOrdConfirmation.CreateAtHeaderLevelMultiple
            BAPI_PRODORDCONF_CREATE_HDR
            Activity confirmation
            ProdOrdConfirmation.CreateActConfMultiple
            BAPI_PRODORDCONF_CREATE_ACT
        Defaults
            Time ticket
            ProdOrdConfirmation.GetTimeTicketProposal
            BAPI_PRODORDCONF_GET_TT_PROP
            Time event
            ProdOrdConfirmation.GetTimeEventProposal
            BAPI_PRODORDCONF_GET_TE_PROP
            Order confirmation
            ProdOrdConfirmation.GetAtHeaderLevelProposal
            BAPI_PRODORDCONF_GET_HDR_PROP
        Cancelling confirmations
        ProdOrdConfirmation.Cancel
        BAPI_PRODORDCONF_CANCEL
        List of confirmations
        ProdOrdConfirmation.GetList
        BAPI_PRODORDCONF_GETLIST
        Detail data for confirmations
        ProdOrdConfirmation.GetDetail
        BAPI_PRODORDCONF_GETDETAIL
        Existence check
        ProdOrdConfirmation.ExistenceCheck
        BAPI_PRODORDCONF_EXIST_CHK
    Regards,
    Ravi

  • Regarding Production order changes work flows

    Hi to all,
    I activated WS20000387 work flow template. its regarding the production order changes .
    briefly: i created one production order, immediately assigned person will get a message in his SAP inbox.
    he has to double click/execute on that mail, then system will take u directly to the production order screen. there is no need to enter that Order no.
    but here, after double clicking, system is asking The Order no.
    we have clients 300,500 and 700.
    i executed same work flow in 300 successfully,
    700 is not modifiable. thats y i did all the settings in 500 and copied the request to 700.
    i am getting  the problem in 700,, i compared all the settings in 300 and 700, but no use,,,all are same,,,but not executing in 700.
    anybody can help me in this regard.

    You Can use below FM to confirm Production order and it is very simple BAPI.
    BAPI_PRODORDCONF_CREATE_HDR -> just check in where used list.
    Thanks
    Seshu

  • FM for Process Oder- TO

    Hi,
    I need a FM for creation and confirmation of TO from a Process order number.
    thxn in advance

    Hi,
    function modules for the same.....
    BAPI_PRODORDCONF_CREATE_ACT
    BAPI_PRODORDCONF_CREATE_HDR
    BAPI_PRODORDCONF_CREATE_TE
    BAPI_PRODORDCONF_CREATE_TT

  • Create Process Order by BAPI (COR6)

    Hi,
    I am looking for BAPI to create Process Order (Order category = 40),
    Instead of doing BI to transaction COR6.
    I try <b>BAPI_PRODORDCONF_CREATE_HDR</b> but with no success,
    because it works only with Production Order (Order category = 10).
    I get the following error: <i>“Orders of the order type YI01 cannot be confirmed“</i>
    (YI01 is a Process Order type).
    Thanks in advance,
    Gilad.

    Hi Gilad, I the same problem, I am using the bapi 'BAPI_PRODORDCONF_CREATE_TT',
    please if you find the correct BAPI, send me,
    If I find it first, I send you.
    Thanks for your help.
    Leonel Saavedra
    Guatemala.

  • Any function module or BAPI for PM order confirmation

    Hi all,
    I'm trying to confirm a PM order (IW41) background. Is there any existing BAPI or FM for me to do that? Thanks in advance.

    Mil,
    check this
    BAPI_PRODORDCONF_CREATE_TT,
    below are other ones which may use for you...
    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
    BAPI_PRODORDCONF_EXIST_CHK Existence Check for Confirming Production Order
    BAPI_PRODORDCONF_GETDETAIL Detailed Data for Production Order Confirmation
    BAPI_PRODORDCONF_GETLIST Confirmations List
    Don't forget to reward if useful....

  • Bapi 4 process order confirmation??

    hi abapers.............
    can ne1 tell me wt is the BAPI  4 process order confirmation.
    thanx in advance .
    anil

    Hi
    BAPI_PRODORDCONF_CANCEL
    BAPI_PRODORDCONF_CREATE_ACT
    BAPI_PRODORDCONF_CREATE_HDR
    BAPI_PRODORDCONF_CREATE_TE
    BAPI_PRODORDCONF_CREATE_TT
    BAPI_PRODORDCONF_EXIST_CHK
    BAPI_PRODORDCONF_GETDETAIL
    BAPI_PRODORDCONF_GETLIST
    BAPI_PRODORDCONF_GET_HDR_PROP
    BAPI_PRODORDCONF_GET_TE_PROP
    BAPI_PRODORDCONF_GET_TT_PROP
    BAPI_PRODORDCONF_PDC_UPLOAD_TE
    BAPI_PRODORDCONF_PDC_UPLOAD_TT
    Regards
    Kathirvel

  • Need a BAPI/FM for process Order Confirmation

    Hi guys,
    I need a bapi or Fm for process Order confirmation.
    thnx in advance

    Checck
    BAPI_PRODORDCONF_CREATE_ACT
    BAPI_PRODORDCONF_CREATE_HDR
    BAPI_PRODORDCONF_CREATE_TE
    BAPI_PRODORDCONF_CREATE_TT
    Better read the documentation of each BAPi using the tcode BAPI and proceed.
    I feel BAPI_PRODORDCONF_CREATE_HDR would do your purpose.
    Documentaion:
    <b>
    You can use this method to enter order confirmations for production orders.
    You can also transfer good movements, that are posted together with a confirmation. If no goods movements have been entered for a confirmation, they are determined using the standard logic for backflushing and automatic goods receipt for confirmations. </b>

  • Parameters for Yield and Scrap quantities in BAPI MB_CREATE_GOODS_MOVEMENT

    Hi All,
    I am using BAPI MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT to carry out the confirmation and Unplanned Goods Reciept.
    Which parameters in MB_CREATE_GOODS_MOVEMENT i have to use for passing Yield and Scrap quantities.
    And from which table i can fetch the Material for the Order? Can i use AFKO for the material number.
    Please give some inputs on how to use these Function Modules.
    Can i use only MB_CREATE_GOODS_MOVEMENT for the confirmation.
    Thanks,
    Anil.

    Hi,
    I presume you are referring to production order confirmation. Refer these:
    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
    Regards

  • BAPI/FM for Confirmation of Production order at operation level

    Hi ABAPers,
    I am using the 'BAPI_PRODORDCONF_CREATE_ACT'for Confirmation of Production order at operation level.
    I am able to pass the Production order number and Active Operation get the confirmation done.
    But the Confirmed Qty is not being updating in AFKO table.
    The 'BAPI_PRODORDCONF_CREATE_HDR' cannot be used for Confirmation of Production order at operation level as there is no Operation/Activity(Vornr) field in the input table. Hence using this bapi confirmation of Prod order can be only at Order level.
    Can someone know any FM/BAPI which can be used for the Confirmation of Production order at operation level(not order level).
    Thanks in Advance
    Ramesh Babu Cikka

    Hi Ramesh,
    Please use FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'.
    This will work as like as T/Code "CO11".
    I hope this will help you.
    Example :
      CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
        EXPORTING
          POST_WRONG_ENTRIES = '0'
          TESTRUN            = ' '
        IMPORTING
          RETURN             = ZRETURN
        TABLES
          TIMETICKETS        = ZBAPI_PP_TIMETICKET
          DETAIL_RETURN      = ZBAPI_CORU_RETURN.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT = 'W'.
    Lanka

  • BAPI  to confirm the production order

    Hi friends,
    Can anybody tell me whats the BAPI to confirm the production order? If BAPI is not available how to create a BAPI for that?
    Please help me out.
    Thanks & Regards
    Sireesha.

    Here are the list of BAPI's pertaining to confirmations
    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                                           
    BAPI_PRODORDCONF_EXIST_CHK     Existence Check for Confirming Production Order                          
    BAPI_PRODORDCONF_GETDETAIL     Detailed Data for Production Order Confirmation                          
    BAPI_PRODORDCONF_GETLIST       Confirmations List                                        
    Regards,
    Ravi
    note - Please mark all the helpful answers

  • Bapi 4 order confirmation

    hi frendz........
    i want to create a process order confirmation  using the transaction COR6 .....for this i have done coding in the following BAPI 's(taken individually )..........
    BAPI_PRODORDCONF_CREATE_ACT
    BAPI_PRODORDCONF_CREATE_HDR
    BAPI_PRODORDCONF_CREATE_TE
    BAPI_PRODORDCONF_CREATE_TT
    BAPI_PRODORDCONF_GET_HDR_PROP
    after executing , the message which appears on the screen is that the order no. XYZ is wrong entry.
    but the order is very much present in the afpo and afko tables in the database .
    i dunno y it is giving me this message and the bapi is not getting executed .
    can any body tel me the problem .
    hoping 4  a quick reply .
    thanx
    anil

    hi prabhu,
    thanks . it worked.
    but now the problem is that the message returned from BAPI is saying that the confirmation cannot be posted for that particular order which is of order type xyz.
    infact the confirmation is not created for any order types using the BAPI.
    but i can create the confirmation manually thru the tcode COR6 for the same order and order type .
    can u tel me wtz the prob........
    i need to call this bapi in my module pool prog .
    thanx in advance
    anil

  • IDOC/BAPI for production order confirmations

    Does anyone know IDOC or a BAPI for confirming a production order? CO11 is the normal transaction for confirmation.
    I found one BAPI: BAPI_PRODORDCONF_CREATE_HDR
    Is this the right one?
    -Thanks
    Bhaven

    Hi Bhavan,
    status can be find using function module <b>STATUS_TEXT_EDIT</b>.
    Sample code:
    CALL FUNCTION 'STATUS_TEXT_EDIT'
          EXPORTING
            client           = sy-mandt
            objnr            = >object number of order<
            only_active      = 'X'
            spras            = 'E'
          IMPORTING
            line             = hold_status
          EXCEPTIONS
            object_not_found = 1
            OTHERS           = 2.
    *Exception in case status is not found
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *Check Status of the Order
        IF hold_status CS 'CNF'.
        confined production orders.
        ENDIF.
    Best regards
    Suresh Babu Karanam

Maybe you are looking for