Bapi For Production Confirmation ?

Hi,
I am using "BAPI_PRODORDCONF_CREATE_TT" for production confirmation.
I need to also pass the corresponding goods movement for the order operation. How to achieve this. and also what are the mandatory fields to be supplied for good movement.
Regards,
Navneeth K.

Hi Bothra,
Follow the sample code.
DATA : BEGIN OF TIMETICKETS OCCURS 0.
        INCLUDE STRUCTURE BAPI_PP_TIMETICKET.
DATA : END OF TIMETICKETS.
DATA : BEGIN OF GOODSMOVEMENTS OCCURS 0.
     INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.
DATA :END OF GOODSMOVEMENTS.
*DATA : LINK_CONF_GOODSMOV TYPE     BAPI_LINK_CONF_GOODSMOV.
DATA : DETAIL_RETURN     TYPE     BAPI_CORU_RETURN OCCURS 0 WITH HEADER LINE.
DATA : RETURN     TYPE     BAPIRET1 OCCURS 0 WITH HEADER LINE.
DATA : POST_WRONG_ENTRIES LIKE     BAPI_CORU_PARAM-INS_ERR.
DATA : TESTRUN     LIKE     BAPI_CORU_PARAM-TESTRUN.
DATA: BEGIN OF LINK OCCURS 0.
INCLUDE STRUCTURE BAPI_LINK_CONF_GOODSMOV.
DATA: END OF LINK.
DATA: BEGIN OF PROPOSE OCCURS 0.
INCLUDE STRUCTURE BAPI_PP_CONF_PROP.
DATA: END OF PROPOSE.
DATA : BEGIN OF LINK_CONF_GOODSMOV OCCURS 0.
INCLUDE STRUCTURE BAPI_LINK_CONF_GOODSMOV.
DATA : END OF LINK_CONF_GOODSMOV.
LOOP AT TIMETKT.
MOVE-CORRESPONDING TIMETKT TO TIMETICKETS.
APPEND TIMETICKETS.
LOOP AT BAPI_ITAB1 WHERE SRL = TIMETKT-SRL.
    MOVE-CORRESPONDING BAPI_ITAB1 TO GOODSMOVEMENTS.
CONF_QUAN_UNIT.
CONF_ACTI_UNIT1.
    APPEND GOODSMOVEMENTS.
ENDLOOP.
PROPOSE-QUANTITY = 'X'.
PROPOSE-ACTIVITY = 'X'.
PROPOSE-DATE_AND_TIME = 'X'.
PROPOSE-GOODSMOVEMENT = 'X'.
APPEND PROPOSE.
    CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
     EXPORTING
       PROPOSE                  = PROPOSE
    IMPORTING
      RETURN                   =
      TABLES
        TIMETICKETS              = TIMETICKETS
       GOODSMOVEMENTS           = GOODSMOVEMENTS
       LINK_CONF_GOODSMOV       = LINK_CONF_GOODSMOV
       DETAIL_RETURN            = DETAIL_RETURN.
    CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
     EXPORTING
       POST_WRONG_ENTRIES       = '0'
      TESTRUN                  =
     IMPORTING
       RETURN                   = RETURN
      TABLES
        TIMETICKETS              = TIMETICKETS
       GOODSMOVEMENTS           = GOODSMOVEMENTS
   LINK_CONF_GOODSMOV       = LINK_conf_goodsmov
    DETAIL_RETURN            = DETAIL_RETURN.
    if return-id is initial.
    commit work.
    endif.
I think it will be helpfull to u.
Regards
Srimanta

Similar Messages

  • IDOC/BAPI for Production order creation from Legacy system

    Hi all
    We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
    thanks a bunch

    Hi John,
    For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
    If there is an inbound IDoc available, I would recommend to use an IDoc.
    IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
    BAPI is also good approach to use and fast in term of  processing.
    For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
    Hope this will help.
    Regards,
    Ferry Lianto

  • BAPI for Product Hierarchy : COMM_HIERARCHY

    Can some body help me in finding BAPI for Product hierarchy upload.
    Transaction COMM_HIERARCHY.
    Many thanks in advance,
    Best Regards, Jilan

    HI ....did u got the BAPI for Product category??

  • 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

  • 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

  • BAPI / IDOC - production confirmation - at lot level

    Hi,
        What is the BAPI / IDOC for the production confirmation? Are there different bapi / idocs available for repetitive manufacturing and discrete manufacturing? If anyone knows, please let me know. thanks,
    Regards,
    Sundar.

    Check this BAPI_PRODORDCONF_CREATE_TT
    Thanks,
    SKJ

  • BAPI for REM Confirmation

    Hi Gurus,
    Can anyone let me know the BAPI name to be used for REM confirmation? I have inputs as Material and Quantty from a 3rd party tool. With only these two inputs, I want system to post GR and GI. All other fields can be defaulted.
    Thanks in advance.
    Sumeet

    Hi Vishal,
    Yes. I have been trying the same BAPI since yesterday but facing some issue. In the output I can see confirmation number but not other output. BAPI is not even returing a message.
    In the intervals of two attempts I also get an error "Function module MB_CREATE_GOODS_MOVEMENT cannot be executed"
    Can you let me know what to check.
    Sumeet
    Edited by: Sumeet Vaidya on Apr 8, 2011 11:11 AM
    Edited by: Sumeet Vaidya on Apr 8, 2011 11:12 AM

  • BAPI for Partial Confirmation CO11N

    Dear Gurus,
    REG : BAPI
    How to get the actual activites for partial confirmation of qty
    we have tried some bapis like for getting activites we have used
    bapi_prodordconf_get_tt_prop
    but in this bapi it is calculating total qty i.e, order qty not for the yeild qty.
    I need to get the yeild qty planned activites
    Tks
    Murali

    Hi,
    Check the Bapis
    BAPI_PRODORDCONF_CREATE_TT 
    BAPI_PRODORDCONF_CREATE_HDR
    Regards,
    Raj.

  • Bapi for final confirmation serviceorder

    I'm looking for a bapi which enables me to give a final confirmation to a serviceorder.
    in the current scenario people are using cats for hourdeclaration on serviceorders. most of the time it is not known after hours are entered if the job is finished or not. when it's know after a few days the engineer has to declare 0,01 hours to make it possible to give final confirmation.
    I 'm searching for a bapi where I can set the final confirmation for the serviceorder
    the other alternative is to use IW41 to set the final confirmation only that can't be fully programmed inside cats with bdc
    if anybody has any alternatives they are also welcome
    kind regards
    arthur de smidt

    when I use the BAPI_ALM_CONF_CREATE
    bapi I can enter the data already available like
    confirmation no order . I also set the indicator for final confirmation but I get the error ARU806 not valid call ??
    solution coding in my case
            SELECT SINGLE * FROM afru INTO gs_afru
                            WHERE aufnr EQ h_raufnr
                            AND vornr EQ wa_sap_catsd-vornr.
    * Indien terugmeldingsnummer aanwezig dan eindterurmelding met nummer doen                       
            IF sy-subrc = 0.
              gs_timetickets-conf_no = gs_afru-rueck.
              gs_timetickets-orderid = gs_afru-aufnr.
              gs_timetickets-operation = gs_afru-vornr.
              gs_timetickets-fin_conf = 'X'.
              APPEND gs_timetickets TO gt_timetickets.
              CALL FUNCTION 'BAPI_ALM_CONF_CREATE'
    * EXPORTING
    *   POST_WRONG_ENTRIES       = '0'
    *   TESTRUN                  =
    * IMPORTING
    *   RETURN                   =
                TABLES
                  timetickets              = gt_timetickets
                  detail_return            = gt_return.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    kind regards
    arthur de smidt
    Edited by: A. de Smidt on Dec 5, 2008 1:28 PM

  • BAPI for Order Confirmation along with measurement reading entry

    Hello Experts,
    I would like to know if there is any BAPI for PM Order completion Confirmation along with measurement reading entry?
    Thanks in advance.

    [BAPI for TECO|Function Module for TECO(technically complete) a maintenance work order;
    [BAPI to create Measurement document|BAPI or Function Module for creating measuring point;
    Based on the business transaction, by using user exit, you can accomplish these.

  • Need FM/BAPI for production order

    Hi all
    Let me know FM / BAPI for get component overview based on production order?

    hi
    check this
    BAPI_ALM_ORDER_GET_DETAIL
    or check from SPRO>Production>Shop Floor Control-->System Modifications->Enhancement in the Adding and Changing of Components
    -ashok

  • BAPI for product allocation Check gATP

    Hi all,
    I read in the SAP documentation that we can use gATP on APO to check order item coming from non R/3 OLTP on product allocations.
    Is someone test it, which BAPI or BAdi do we use?
    Many thanks in advance.

    Hello,
    Following enhancement is available for Product allocation.
    Maintain Enhancement Projects for Product Allocation
    In this IMG activity, you can edit customer exits for the global availability check.
    Product allocations
    The enhancement for the initialization is APOQT001 .
    The user exits for product allocations are divided into two different call sequences:
    Product allocations is the requirements check against the product allocation time series from planning. A complete check is executed for this call sequence.
    The enhancements for product allocations are:
    APOQT010 copy parameters
    APOQT012 product allocations control
    APOQT021 product allocations
    APOQT022 consumption at beginning situation
    APOQT023 order consumption
    APOQT032 results control
    APOQT033 sequence of product allocation procedures
    APOQT007 product allocation assignment of partial deliveries
    APOQT018 adjusting field catalog
    The comparison adjusts the results of product allocations to the results of the other basic methods. This adjustment is necessary when product allocations is not the last basic method executed.
    The enhancements for the comparison are:
    APOQT011 copy parameters
    APOQT014 product allocations control
    APOQT024 consumption
    APOQT034 results control
    APOQT035 sequence of product allocation procedures
    The sequence of the basic methods is configured in the check instructions.
    When comparing, the entries in the table for the product allocation assignment and the temporary quantity assignments (delta records) are adjusted to the final results of the ATP check.
    If the behavior of product allocations is changed by the user exits, the behavior of the comparison must be adapted accordingly in the corresponding user exits!
    Thanks and Regards

  • BAPI for Production order creation against wbs element

    dear all,
    I am using BAPI (BAPI_PRODORD_CREATE) for Production order creation against wbs element.I am putting following input paramters in this
    material no,
    order type
    plant
    qty
    basic start dt & end dt
    wbs
    But during GRN it is not taking the account assignment as project stock i.e. its picking movement type 101 but it should be 101Q.
    For this what changes are required.
    regards
    ravi arora

    Hi,
    2 options i can think of:
    1. Create a BDC program by recording co10
    2. Create a planned order with order type PR using BAPI_PLANNEDORDER_CREATE, specify the WBS element & other details. Now use BAPI_PRODORD_CREATE_FROM_PLORD to create a production order with reference to the planned order created earlier.
    I believe option 2 should meet your need. Check & revert.
    Regards,
    Vivek

  • Bapi for network confirmation

    Hi all,
    I am using BAPI_NETWORK_CONF_ADD to confirm actual duration against the network/activity.  I am executing the BAPI in se 37 and I am getting successfully message i.e. confirmation has been posted for network xxxxxxxxxxx .
    But it is not updated into database i.e. its is not visible in table AFRU.
    Please can you tell what are necessary parameters to be passed for database updation?
    Thanks,
    Sridhar

    Hi Sridhar,
         Try in a simple program by passing your values into this BAPI and use the BAPI_TRANSACTION_COMMIT after that and it will update the tables.
    Cheers
    JK
    PS: Award points if this helps you

  • FM/BAPI for Product substitution List

    Hello All,
    I have a requirement wherein the user will enter substitution materials for a particular material. I have to update these substitution materials in APO so that it will be reflected in tcode /N/SAPAPO/RBA04(Maintain Product Substitution Tab)
    Is there any FM or BAPI to do so?
    Regards,
    Arpita

    Hi
    Can any one tell me the parameters which need to be passed to BAPI "BAPI_PSPSRVAPS_SAVEMULTI  ".
    I have  to create Product substitution using this BAPI  which should be reflected in /SAPAPO/RBA04 tcode.
    Please let me know . Thanks.

Maybe you are looking for

  • FBL5N & Word processing functionality

    Hi All, It's my first time in this forum and I need some information about FBL5N functionality. My issue is related to "word processing" coming from LIST button (in the toolbar). Let's say. I execute FBL5N in order to display all open items for a cus

  • My ipod battery died and now it won't recharge help!

    My battery was about dead so I left it in the car but the battery died before I got home.  Now it won't turn on, charge or even get recognized by Itunes.  I've tried holding the home and power button but nothing. Any help would be great. Thanks

  • ITunes 64 will not install: says needs Quicktime, which *is* installed

    This is what I've done: Deleted temp directory Restarted Uninstalled iTunes and Quicktime, through Windows Add/Remove programs Deleted temp dir Restarted Installed Quicktime (from QuickTimeInstaller.exe,  v7.69.80.9) Deleted temp dir Restarted Ran iT

  • SQL Server 2012 Report Server mode is blank?

    Hi, I have configured SharePoint 2013 with SQL Server 2012 on Windows Server 2012 with complete features on the same server. But when I checked Report Server mode under Report Service Configuration Manager it's showing blank means Report Server mode

  • How to Read Xml File and view into Data Grid View?

    hi all my Data into Xml file are: <Voucher> <Header> <txtHeaderId>259803</txtHeaderId> <txtDate>2015/02/01</txtDate> <txtDocNo>20</txtDocNo> <txtMemo>This is a Test .</txtMemo> </Header> <Item> <txtItemId>8562803</txtItemId> <txtHeaderRef>259803</txt