Regarding 'BAPI_PRODORDCONF_CREATE_TT'

hi experts,
               do u have code sample for confirming production order with the help of bapi 'BAPI_PRODORDCONF_CREATE_TT',,,from where we will get confirmation number to pass in this FM....PLZ explain in your words........which are the compulsory fields to  pass in the tables parameters........such as in TIMETICKETS
,plz plz plz help me.

Hi,
try to change  wa_timetickets-fin_conf = '1'.   "Changed from X to 1  ans test it will work...
wa_timetickets-orderid = wa_data-orderid.
wa_timetickets-operation = wa_data-operation.
wa_timetickets-fin_conf = '1'.   "Changed from X to 1
wa_timetickets-clear_res = 'X'.
wa_timetickets-postg_date = wa_data-postg_date.
wa_timetickets-yield = wa_data-yield.
Prabhudas

Similar Messages

  • Production Order Confirmation Error  in "BAPI_PRODORDCONF_CREATE_TT"

    Dear all,
                Recently i've faced some problem regarding "BAPI_PRODORDCONF_CREATE_TT". whenever it'll create the production Order the system show me an error 'Two operation times are not in ascending order'. What's that it mean? i've only 1 operation in Routing. Can anybody please help me to figure it out.
    regards,
    sameek mazumder.

    Dear Santosh,
                          I've already do this into ascending order like START DATE: 10.02.2011
                                                                                    START TIME: 06:00:00
                                                                                    END DATE: 10.02.2011
                                                                                    END TIME: 07:00:00
    BUT THEN ALSO IT WILL SHOW THE SAME ERROR.
    REGARDS,
    SAMEEK.

  • [HELP] - BAPI_PRODORDCONF_CREATE_TT

    Hello SAP Gurus,
    I am using BAPI_PRODORDCONF_CREATE_TT and BAPI_PRODORDCONF_GET_TT_PROP to simulate transaction CO11N.
    There is the sample code:
    CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
         EXPORTING
           PROPOSE                  = i_propose
    *   IMPORTING
    *     RETURN                   =
          TABLES
            TIMETICKETS              = i_timetickets
            GOODSMOVEMENTS           = i_GOODSMOVEMENTS
            LINK_CONF_GOODSMOV       = i_LINK_CONF_GOODSMOV
            DETAIL_RETURN            = i_DETAIL_RETURN.
    loop at i_GOODSMOVEMENTS.
        SELECT * FROM  MARA
                   WHERE  MATNR  = i_GOODSMOVEMENTS-MATERIAL
                   AND    MTART  = 'ZPA1'.
            ENDSELECT.
            if sy-subrc = 0.
              i_GOODSMOVEMENTS-batch = texto_numero_serie.
              modify i_GOODSMOVEMENTS INDEX sy-tabix.
            endif.
      endloop.
    CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
        EXPORTING
           POST_WRONG_ENTRIES       = '2'
    *     TESTRUN                  =
    *   IMPORTING
    *     RETURN                   =
          TABLES
            TIMETICKETS              = i_timetickets
            GOODSMOVEMENTS           = i_GOODSMOVEMENTS
            LINK_CONF_GOODSMOV       = i_LINK_CONF_GOODSMOV
            DETAIL_RETURN            = i_DETAIL_RETURN.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = 'X'
    *   IMPORTING
    *     RETURN        =
    I am using network orders and I am making the confirmation for the top order. The problem is in goods movements, I am getting the error M7349 "Content of order 198: T_PA_01 transferred to interface (IMSEG): MATERIAL".
    Can someone help me with this? Thanks in advance.
    Cheers,

    Hi,
    I'm having problem regarding BAPI_PRODORDCONF_CREATE_TT. I have a return error 'confirmations are incorrect'.
    Please help.
    Here's the sample code.
    data: it_data type table of tb_data,
      wa_data type tb_data,
      v_return TYPE BAPIRET1,
      propose TYPE BAPI_PP_CONF_PROP.
    >>>>>>
      clear wa_data.
      loop at it_data into wa_data.
        clear: wa_timetickets, wa_goodsmovements, wa_link_conf_goodsmov.
        wa_timetickets-orderid = wa_data-orderid.
        wa_timetickets-operation = wa_data-operation.
        wa_timetickets-fin_conf = 'X'.
        wa_timetickets-clear_res = 'X'.
        wa_timetickets-postg_date = wa_data-postg_date.
        wa_timetickets-yield = wa_data-yield.
        wa_goodsmovements-material = wa_data-material.
        wa_goodsmovements-plant = wa_data-plant.
        wa_goodsmovements-stge_loc = wa_data-stge_loc.
        wa_goodsmovements-batch = wa_data-batch.
        wa_goodsmovements-move_type = wa_data-move_type.
        wa_goodsmovements-entry_qnt = wa_data-entry_qnt.
        wa_goodsmovements-entry_uom = wa_data-entry_uom.
        wa_goodsmovements-orderid = wa_data-gd_orderid.
        wa_link_conf_goodsmov-index_confirm = wa_data-index_confirm.
        wa_link_conf_goodsmov-index_goodsmov = wa_data-index_goodsmov.
        append wa_timetickets to it_timetickets.
        append wa_goodsmovements to it_goodsmovements.
        append wa_link_conf_goodsmov to it_link_conf_goodsmov.
      endloop.
        PROPOSE-ACTIVITY = 'X'.
        v_tabix = v_tabix + 1.
        CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
         EXPORTING
           PROPOSE                  = propose
         IMPORTING
           RETURN                   = v_return
          TABLES
           TIMETICKETS              = it_timetickets
           GOODSMOVEMENTS           = it_goodsmovements
           LINK_CONF_GOODSMOV       = it_link_conf_goodsmov
          DETAIL_RETURN            =
        MESSAGE i398(00) with 'TYPE:' v_return-type '>' v_return-message.
        CLEAR v_return.
        CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
         EXPORTING
           POST_WRONG_ENTRIES       = '2'
           TESTRUN                  = ''
    IMPORTING
       RETURN                   = v_return
          TABLES
               TIMETICKETS              = it_timetickets
               GOODSMOVEMENTS           = it_goodsmovements
               LINK_CONF_GOODSMOV       = it_link_conf_goodsmov
      DETAIL_RETURN            =
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = 'X'
    IMPORTING
      RETURN        =
        MESSAGE i398(00) with 'TYPE:' v_return-type '>' v_return-message.

  • Delivery Completed Indicator set during BAPI_PRODORDCONF_CREATE_TT

    Hi Gurus,
    I am using BAPI_PRODORDCONF_CREATE_TT to perform our production confirmation.
    I want to force a goods movement item to be "Delivery Completed". I found the field GOODSMOVEMENTS-NO_MORE_GR in the BAPI which has a component type ELIKZ. When i put an X for this item during the BAPI run, it does not change the status of the item in the production order as Final Issue.
    Is GOODSMOVEMENTS-NO_MORE_GR equal to the field "Indicator: Goods movement item completed" (ENDKZ) in the confirmation? They have the same description.
    I found another field which is GOODSMOVEMENTS-WITHDRAWN (KZEAR) but it also does not change the status of the item after BAPI run.
    Thanks in advance for all your help.
    Regards,
    john

    Hello John
    Indicator NO_MORE_GR should be used only for the goods receipt with movement 101 and it will not affect the components.
    Field WITHDRAWN is the correct field to be used to set the final issue indicator for a component, however, you must ensure that you are sending the correct reservation number and item.
    I suggest you to use BAPI BAPI_PRODORDCONF_GET_TT_PROP to get the proposed data for the confirmation, including the components, and change the values when necessary.
    BR
    Caetano

  • Unable to do goods movement when calling BAPI_PRODORDCONF_CREATE_TT

    Hi,
    I have used BAPI_PRODORDCONF_CREATE_TT as RFC.
    When I run the bapi with that of input payload seperately production order confirmation and goodsmovement  are done successfully.
    But when I run the interface then only production order confirmation is successfull while goodsmovement is unsuccessfull.
    Any help on this please?
    Thanks in advance,
    Rohan.

    Hello Rohan,
    I you are using BPM to call two RFC's seperately for prd.conf and goods movement, then, try to incorporate a Wait step in the BPM!
    Regards,
    Jilan

  • Post Processing records in BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    I am using BAPI_PRODORDCONF_CREATE_TT for Production Confirmation with Auto Goods receipt(GR) Feature.
    But, in case any error in goods movement occurs system creates a post processing record( Visible in transaction COGI).
    We don't want entires in COGI.In case, any error occurs system should terminate the session. The same control is maintain in SPRO. But, BAPI overrules that.
    Kindly let me know which settings to be used in BAPI, to avoid COGI.
    In Post Wrong entries field of BAPI , I have used ' " ( Blank) value.
    Please suggest.

    Hi Stuti,
    What I suggest you is to use 2 BAPI's instead of 1.
    First use BAPI_GOODSMVT_CREATE to carry out goods movements.
    If this BAPI is successful then only execute the BAPI you are using only to carrying out the confirmations
    This is the best way to control your confirmation for failed goods movements.
    Regards,
    Yogesh

  • Error in 'BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    my code is as below
       i_timetickets2-exec_start_date = sy-datum.
        i_timetickets2-exec_start_time = sy-uzeit.
        i_timetickets2-exec_fin_date   = sy-datum.
        i_timetickets2-exec_fin_time   = sy-uzeit .
        APPEND i_timetickets2.
        CLEAR  i_timetickets2.
      ENDLOOP.
      IF i_return[] IS INITIAL.
    *---ProdOrdConfirmation.CreateTimeTicketMultiple
        CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
          EXPORTING
            post_wrong_entries = '2'
          IMPORTING
            return             = i_return
          TABLES
            timetickets        = i_timetickets2
            detail_return      = i_detailreturn.
      ENDIF.
    running this BAPI i am getting error that 'two operation times are not in ascending order'.
    any one know's what the problem is?
    Thanks,
    Ruchi

    Hi Ruchi,
    I am facing the same problem can you tell me how did you resolved it.
    thanks & regards
    Kiran.

  • Goods issue in production order using BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    This is regarding goods issue in a production order.We are trying to do this using BAPI_PRODORDCONF_CREATE_TT.
    We have a finished good say FK_PROD_ORD_CONV(with BOM -FKTESTOUT2).we need to do a Goods Issue for this which implies that at reporting point 0001,we need to issue x quantities of BOM FKTESTOUT2 from a particular plant and storage location, and of a particular batch. Therefore, we need to pass the following:
    Production order number
    Plant
    Material (BOM) = FKTESTOUT2
    Movement indicator (which is u2018Fu2019 for goods movement) = u2018Fu2019.
    Movement type = 261(for Goods Issue)
    Storage location of BOM
    Batch
    Operation (Routing point) = 0001
    Entry quantity
    Entry Unit of measure = PC.
    In addition, we need to maintain entries in Link_conf_goodsmov-INDEX_CONFIRM and link_conf_goodsmov-INDEX_GOODSMOV. The value for both would be u20181u2019.
    In the Test program, although I am passing all these values, Goods Issue is not happening. I am not getting any error.The message just says that the production order has been confirmed but when i check for goods Issue,no corresponding data is there.
    After this i am calling fm to commit the work as well.
    Please let me know if I have missed something.

    Good day!
    Do you see you confirmation with CO14 transaction?
    What on movements tab?
    Look at postprocess transaction COGI CO1P.
    Check LINK_CONF_GOODSMOV TABLE with 1,1 record.

  • Problem in Goods Issue using BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    This is regarding goods issue in a production order.We are trying to do this using BAPI_PRODORDCONF_CREATE_TT.
    We have a finished good say FK_PROD_ORD_CONV(with BOM -FKTESTOUT2).we need to do a Goods Issue for this which implies that at reporting point 0001,we need to issue x quantities of BOM  FKTESTOUT2 from a particular plant and storage location, and of a particular batch. Therefore, we need to pass the following:
    Production order number
    Plant
    Material (BOM) = FKTESTOUT2
    Movement indicator (which is u2018Fu2019 for goods movement) = u2018Fu2019.
    Movement type = 261(for Goods Issue)
    Storage location of BOM
    Batch
    Operation (Routing point) = 0001
    Entry quantity
    Entry Unit of measure = PC.
    In addition, we need to maintain entries in Link_conf_goodsmov-INDEX_CONFIRM and link_conf_goodsmov-INDEX_GOODSMOV. The value for both would be u20181u2019.
    In the Test program, although I am passing all these values, Goods Issue is not happening. I am not getting any error.The message just says that the production order has been confirmed but when i check for goods Issue,no corresponding data is there.
    Please let me know if I have missed something.

    Hello.
    Are you calling FM BAPI_TRANSACTION_COMMIT afterwards? If yes, check the content of structure RETURN.
    Regards.
    Valter Oliveira.

  • Bapi re: CO11N BAPI_PRODORDCONF_GET_TT_PROP & BAPI_PRODORDCONF_CREATE_TT

    Hi,
      I have a little problem with the bapi's
      BAPI_PRODORDCONF_CREATE_TT and BAPI_PRODORDCONF_GET_TT_PROP
    1.  in abap i call BAPI_PRODORDCONF_GET_TT_PROP first , the proposed goodsmovement is not the same as the default on co11n, it does not included the bom components of the materials, same thing if i leave the goodsmovement table on bapi BAPI_PRODORDCONF_CREATE_TT.
    2. so i manually added the bom components on the goodsmovement table, also populated the link_conf_goodsmov table, BAPI_PRODORDCONF_GET_TT_PROP confirmation was okay but now the results are  generating 2 documents.
        tried populating other fields on the goodsmovement table but with no effects
      i want to ask if there are configuration regarding the default values in bapi  BAPI_PRODORDCONF_GET_TT_PROP because its not the same as c011n
    Best regards,
    Francisco

    thanks but note for 4.6c is only help documentation
    solved BAPI_PRODORDCONF_GET_TT_PROP to generate goodsmovements for all materials + components by copying and modifying the fm and adding  TRANS_CATEGORY = 'X' to functiom module CO_RI_TIMETICKETCONF_CREATE
    still 2 matdocs are being generated instead of 1 like co11n

  • Bapi_Prodordconf_Create_Tt error on confirmation save

    When I call Bapi_Prodordconf_Create_Tt, I always recieve the same error -
    <i>
    Type="S" Id="RU" Number="505" Message="00000000000000000001 confirmations are incorrect. For details see parameter DETAIL_RETURN"
    </i>
    and DETAIL_RETURN has these data:
    <i>
    Type="A" Id="RU" Number="888" Message="*** System message: SAPLCOR0" Log_No="" Log_Msg_No="000000" Message_V1="SAPLCOR0" Message_V2="" Message_V3="" Message_V4="" Parameter="" Row="1" Field="" System="DEV210" Flg_Locked="" Conf_No="0000000000" Conf_Cnt="00000000" Item=""</i>
    What does mean "*** System message: SAPLCOR0"? And how can I see more detailed information about errors, which SAP returns?
    Thanks in advance.

    Hi Tech ,
    check in se91, with message class : RU and Number: 888.
    DetailReturn
    The DetailReturn table informs you for each confirmation to be entered, whether a confirmation could not be entered due to a lock conflict or which error occurred.
    If the confirmation could be enterd successfully, the key of the confirmation is logged in the fields DetailReturn-Conf_No and DetailReturn-Conf_Cnt.
    In the case of a lock conflict, the DetailReturn-Flg_Locked indicator is set.
    If the data is found to be incorrect, a corresponding error message is written in the relevant fileds of the DetailReturn table.
    regards
    Prabhu

  • Bapi BAPI_PRODORDCONF_CREATE_TT

    Hi people,
    I'm  trying to use BAPI_PRODORDCONF_CREATE_TT to load data into tx CO11N. I need to fill the field "production date", and couldn't find the corresponding field in this bapi. I can't fill the structure "goodsmovements" because this bapi define it automatically. If you have some tip about it, please, let me know.
    regards

    Hello
    Please have a look at OSS note 351181 below. This might help.
    Symptom
    Goods movements which have a filled the date of production (GOODSMOVEMENTS-PROD_DATE) are transferred to a BAPI for the confirmation.
    However, this date is lost in the course of processing so that the goods movements run incorrectly and must be reprocessed
    Additional key words
    BAPI_PRODORDCONF_CREATE_TT, BAPI_PRODORDCONF_CREATE_TE,
    BAPI_PRODORDCONF_CREATE_HDR, GOODSMOVEMENTS-PROD_DATE, date of production,
    Batch, shelf life expiration date, SLED
    Cause and prerequisites
    The problem is caused by a program error. The goods movements in internal table IMSEG_TAB are available to FORM routine VB_GOODS_MOVEMENTS. This FORM routine also includes the date of production in field HSDAT.
    The goods movement data is transferred with MOVE-CORRESPONDING to internal table TMP_AFFW_TAB. However, it does not have field HSDAT. The date of production is managed in field MHDAT, there.
    Solution
    Implement the program correction. The date of production is transferred from IMSEG_TAB to field MHDAT of TMP_AFFW_TAB if it does not already contain a shelf life expiration date.
    <b>Reward points if useful</b>
    Regards
    Saket Sharma
    null

  • Printing Problem with BAPI_PRODORDCONF_CREATE_TT

    Hi,
    I am using  BAPI_PRODORDCONF_CREATE_TT  to carry out production order confirmation. The confirmations are carried out correctly. The auto-goods receipt happens for the confirmation qty which generates an Inspection lot. My problem is with this BAPI, Inspection lot output is not triggered. If I manually do confirmation using CO11, inspection lot output is printed automatically. Does this BAPI support inspection output? Any input on this will be highly appreciated. Thanks in Advance.
    Regards,
    Amol

    Did you ever get an anser to this Amol? I am having the same issue.
    Cheers
    Graham Robbo

  • No final confrimation in BAPI_PRODORDCONF_CREATE_TT

    Hello experts,
    I'm using BAPI_PRODORDCONF_CREATE_TT to make confirmations, but I'm not able to have a final confirmation. I have set FIN_CONF = 'X' but the confirmation is partial.
    Is there any other parameter in BAPI_PP_TIMETICKET structure that I have to use to be able to have a final confirmation??
    Thanks in advance.
    Laura

    Hello Caetano,
    I do not want a final confirmation for the order; I know that I will have it with the last operation. I have set two different control keys for my operations, one with "indicator: Post goods receipt automatically" set and the other without it. What I need is the same behavior as CO11N.
    For each operation, with CO11N, I can set CNF (Confirmed) status for an operation. With the BAPI I just have PCN (Partially confirmed) status, although I set parameter FIN_CONF = 'X'.
    Thanks and regards.

  • Minimum Running Time of FM BAPI_PRODORDCONF_CREATE_TT

    Hi ABAP Gurus,
    I used the following parameters in table TIMETICKETS.
    ORDERID
    OPERATION
    FIN_CONF
    POSTG_DATE
    CONF_QUAN_UNIT
    YIELD
    The running time is around 7 seconds (milestone confirmation).
    I wonder the minimum runnning time of function module BAPI_PRODORDCONF_CREATE_TT.
    Is there any way to improve the performance of FM BAPI_PRODORDCONF_CREATE_TT?
    Regards,
    Sun Qiang

    Dear Tom
    BDC will not work for CO11n I think.
    Their is no real solution.
    In Case of CO11N you can decide if the goods movement should be posted in update task or in dailog (setting in OPK4) regarding to your description you post data in dialog mode. So MM is called and if an error occur this error is handed over to PP and send. If you would define in OPK4 goods movements should be posted in update task you would get the same system behavoir.
    BAPI post the goods movements always in update mode, so data is stored to a table and later posted by job. If the material is lock this has no effect as this is done later. If the order is locked this effect the confirmation (not the goods movements), that's why you get an error directly.
    I don't understand why you want to prevent the posting of goods movements in case of MM02 locking... Can you please explain this?
    BR Sabine

Maybe you are looking for

  • Lion upgrade

    Just recently upgraded to Lion. I now have a problem in Safari where I cannot type anything into the Google search bar. Any suggestions?

  • I can't open files with Pages

    Im having problems with Pages. when I open the application, I don't see the window that allows me to pick files to open from my computer or the icloud.

  • Safari is crashing and not letting me send attachments at all

    I have a brand new macbook. It has Safari 2.0.4 and I'm having issues. I've never used a mac before, and am loosing my mind! First I've tried sending an attachment from my free trial of Pages via aol, yahoo, and hotmail, and none will work. So I'm as

  • Re: BADI for PO

    Dear Expert, Pls. consider me as a newbie on this subject and i want to learn the BADI... As it seems  all problem on functional can be address with the BADI.. Hope anyone here will give help me for a start..Thanks a lot.. Btw - i am more on function

  • Accounting for intracompany transfer

    Hi Could you let me know under whihc accounting can take place for intracompany plant to plant transfer (plants belomnging to msame company code)/ Thanks Akkshaya