BAPI for Purchase Order Confirmation and update EKES table

Hi all,
I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
Please help me out on this.
Thanks & Regards
Pavan

NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
Regards,
Raymond
PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it

Similar Messages

  • BAPI for Service Orders Confirmation

    Can somebody please provide BAPIS for Service Orders Confirmation and other related BAPIS
    Thank you

    To create service confirm order use "BAPI_BUSPROCESSND_CREATEMULTI".
    Regards,
    Animesh

  • Workflow for purchase order rejection and esclation.

    Hi,
    Can any body tell us the what is the standard workflow for purchase order rejection and esclation.
    if no standard WF is there then how can create the workflow for ecslation and rejection.
    Thanks & Regards,
    Priti shrivastava

    Please check here.
    http://help.sap.com/saphelp_srm30/helpdata/en/5a/c5173f5ff48443e10000000a114084/content.htm

  • Fm or bapi for service order confirmation (iw41)

    hi,
    Can you please tell me a fm or bapi for service order confirmation in iw41

    HI dido...
    you can use CRM_ORDER_MAINTAIN.
    you can process any document type you want
    regards
    Marco

  • BAPI for purchase order .. to create and delete confirmation

    HI Gurus
    I need to create and delete PO(Purchase order) confirmation in SAP 4.7 R3 .
    Please let me know which BAPI i can use for .. in SAP 4.7
    1. Create PO confirmation
    2. Delete PO confirmation
    Many thanks and regards
    Sandeep Sharma

    Hi Sandeep,
    In SAP 4.7 R3 & ECC 5.0. we don't have BAPI to delete / create PO confirmatons.
    Use this FM for both : ME_CONFIRMATION_UPDATE
    In addition to above , we need to use this FM : ME_CONFIRMATION_REDISTR_ITEMS , for PO item update in MD04 transaction.
    In addtion to above 2 FM, you need to used Change doucment FM for write log data.
    Thanks.

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • BAPI For Process Order Confirmation

    Hi,
    For Process Order Confirmation we are using the following tcode. COR6N. in the t-code we are include a new field (Shift Field) with help of CONFPP07. and we made the field as mandatory also. in cor6n it is working fine.
    now we are using the bapi for same Process Order Confirmation. here the new field is not available. we want to include the new  ( Shift ) Field also. we are using the following
    BAPI Fm: BAPI_PROCORDCONF_CREATE_TT .
    Regards
    Sathis

    BAPI_PRODORDCONF_CREATE_TT to confirm a production Order
    Erwan

  • BAPI For Procduction Order Confirmation

    Hi Expert,
    How to use the BAPI_PRODORDCONF_CREATE_TT for Process Order Confirmation
    I have to use two internal tables for order confirmation 
    GOODSMOVEMENTS
    LINK_CONF_GOODSMOV
    Please help.
    Thanks in advance.

    Hi Arpit,
    This BAPI is having Table parameter 'TIMETICKETS' as mandatory. You can use it as below:
      ls_timeticket-conf_no            = i_rueck. " confirmation number
      ls_timeticket-yield                  = i_erfmg. "Quantity   
      ls_timeticket-conf_quan_unit = i_erfme. " Unit
    ** propose goods movements
       ls_bapi_propose-goodsmovement = 'X'.
      CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
        EXPORTING
          propose                      = ls_bapi_propose
        IMPORTING
          return                         = ls_bapi_return    
        TABLES
          timetickets                 = lt_timeticket
          goodsmovements     = lt_goodsmovements
          link_conf_goodsmov = lt_link_conf_goods_mov
          detail_return               = lt_detail_return.
    CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
          IMPORTING
            return             = ls_bapi_return
          TABLES
            timetickets        = lt_timeticket
            goodsmovements     = lt_goodsmovements
            link_conf_goodsmov = lt_link_conf_goods_mov
            detail_return      = lt_detail_return.
    If you already have data for internal tables GOODSMOVEMENTS and LINK_CONF_GOODSMOV, you can skip the propose goods movements BAPI  'BAPI_PRODORDCONF_GET_TT_PROP'.

  • 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 for Purchase Order Vendor Confirmations

    Can any body suggest me the BAPI for the purchase order vendor confirmations transaction code me22n - Tab<b>-(Confirmations)</b> alone.
    regs,
    Raja

    Dear Asha,
    Pls find the below code, this handles only the BDC part of the program.Updates only the EKES table thru standard confirmation tab on ME22N.
    Kindly clarify any doubts in this reg.
    regs,
    Raja.
    FORM ins_stdtable .
      DATA:var TYPE c LENGTH 30,
      cstr(02) TYPE n value '01'.
      data istr(02) type n value '00'.
      DATA recno TYPE i.
      data: eblc type c length 5,
      ebli type i.
      DATA: kebeln LIKE utab-ebeln.
      DATA: BEGIN OF indx,
             ebelp type ekes-ebelp,
             eindx type i,
            END OF indx.
      DATA : CNT TYPE I value 1.
      DATA: COUNTER(2) TYPE N VALUE '01',
      ROWS TYPE P.
      DATA: w_textout            LIKE t100-text.
      DATA: gd_update TYPE i,
            gd_lines TYPE i.
      data :waek like indx,
      itabek LIKE TABLE OF waek.
    *Used to stores error information from CALL TRANSACTION Function Module
      DATA: BEGIN OF messtab OCCURS 0.
              INCLUDE STRUCTURE bdcmsgcoll.
      DATA: END OF messtab.
      SELECT MAX( ETENS ) FROM ekes INTO zetens WHERE ebeln =
      ekko-ebeln.
      recno = zetens.
      LOOP AT utab.
        SELECT distinct ebelp INTO CORRESPONDING FIELDS OF TABLE
        itabek  FROM eket  WHERE ebeln = ekko-ebeln.
        loop at itabek into waek.
          ebli =  ebli + 1.
          waek-eindx = ebli.
          modify itabek from waek.
        endloop.
        loop at itabek into waek where ebelp = utab-ebelp.
          eblc = waek-eindx.
          condense eblc.
        endloop.
        AT NEW ebeln.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=MECHOB'.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0002'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=MEOK'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'MEPO_SELECT-EBELN'.
          PERFORM bdc_field       USING 'MEPO_SELECT-EBELN'
                                         utab-ebeln.
          AT New EBELP.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_CURSOR'
                                      'DYN_6000-LIST'.
            perform bdc_field       using 'DYN_6000-LIST'
                                     eblc.
            perform bdc_field       using 'BDC_OKCODE'
                                          '=DDOWN3200'.
            PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=TABIDT15'.
            perform bdc_field       using 'DYN_6000-LIST'
                                    eblc.
            PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          'PICK'.
          ENDAT.
        ENDAT.
        PERFORM bdc_field       USING 'DYN_6000-LIST'
                                          eblc.
        recno = recno + 1.
        cstr = recno.
        counter = cstr.
    *This is to check whether the scheduled line item exceeding 12 rows. if so, use *page up
        if counter >= 13.
          rows = counter MOD 13.
          istr = ( ( counter - rows ) / 13 ).
          do istr times.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_OKCODE'
                                    '=EINB_CREATE'.
          enddo.
          DO 2 TIMES.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_OKCODE'
                                    '=P+'.
          enddo.
          COUNTER = '03'.
          cstr = '03'.
        ENDIF.
        CONCATENATE 'EKES-EBTYP('  cstr  ')' INTO var.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                          var.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
        PERFORM bdc_field       USING var
                                    utab-ebtyp.
        CONCATENATE 'RM06E-EEIND('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-eeind.
        CONCATENATE 'EKES-MENGE('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-menge.
        CONCATENATE 'J_3ASZDI-J_3ASIZED('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-j_3asize.
        AT END OF Ebelp.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=MESAVE'.
          perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
          perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
          CALL TRANSACTION 'ME22N' USING bdcdata MODE 'E'.
          IF sy-subrc EQ 0.
            savedone = 'Y'.
            saveflag = 'Y'.
            initflag = 'N'.
            MESSAGE 'SAVED' TYPE 'I'.
          else.
            saveflag = 'N'.
            savedone = 'N'.
            initflag = 'Y'.
            MESSAGE 'Not Saved' Type 'I'.
          endif.
          CLEAR: bdcdata.
          REFRESH bdcdata.
        ENDAT.
      ENDLOOP.
    ENDFORM.
    Hope this will help u

  • BAPI for PURCHASE ORDER with OPEN QUANTITY field

    Hi All,
    I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
    But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
    I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
    Am using SAP version 4.0B.
    If not exists please advise how to customize the existing BAPI to meet the requirement.
    thanks
    mahi

    Hi,
    Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
    Delivery data is EKET table.
    Regards,
    Ravi

  • BAPI for Purchase Order Creation

    Hi All,
    Purchase Order creation through BAPI, Auto Po creation. Please advise program.
    The requirement is: when we delivery the goods from one plant to another plant,PO should create in second plant with goods what delivered from first plant.
    Pranitha
    Moderator message : Spec/requirements dumping is not allowed. Thread locked.
    Edited by: Vinod Kumar on Sep 30, 2011 3:37 PM

    Hi,
    As per  u r requirement
    you can use  : BAPI =>    BAPI_PO_CREATE  with suitable Document  Type ( Stock trasnfert : STO )
    IF  u want to auto po must be created after each delivry in this case you need to use BADI
    'MB_MIGO_BADI; In This BAPI  There is method : POST_DOCUMENT
    In this method u can write code for Auto PO Creation by using BAPI .
    Hope This will Resolve u r query.
    Thanks and Regads
    Santosh

  • BAPI for Purchase order change

    Hi experts,
      I just want to change PO quantity by BAPI function module: BAPI_PO_CHANGE, I fill in PO number, Item number, material number and PO quantity to parameters, but result is not well. it shows a message below and the purchase order is not changed.
    message:
    For the currency code  ALE communication is not allowed
    Message no. B1889
    Diagnosis
    The ISO code assigned to the current currency code is not unique and the primary flag is NOT set. This currency code can therefore not be used for external communication.
    I checked currency config in SPRO and the assignment of ISO code is unique and the primary flag is setted actually.
    so what else can I do to solve this problem.
    thanks in advance.
    jack

    The B1889 message has the following reasons:
      -> The primary flag of the found ISO code is assigned more than once.
      -> The ISO code is not unique and the primary flag is not assigned
         for associated SAP currency codes.
      -> The ISO code is not unique and the current SAP currency code has
         NOT assigned the primary flag.
    First case: CC   ISOCD  XPRIMARY
                CNY   CNY      X
                RMB   CNY
    Your ISO code is not unique, therefore you are using the primary flag.
    If a dataset wich currency code CNY is encountered, everything is ok
    because none of the 3 rules mentioned above can be applied.
    If a dataset contains currence code  RMB, rule (3) will be applied.
    Therefore, you get the following output in this case:
      "For curreny code  RMB  ALE Communication is not allowed"
    Second case: CC   ISOCD  XPRIMARY
                 CNY   CNY
                 RMB   CNY    X
    If a dataset contains currency code RMB, everything is ok because it is
    flagged as primary. Like in the first case, if CNY is encountered,
    rule (3) will be applied and you will get the output:
      "For curreny code CNY ALE Communication is not allowed"
    If you are using both CNY  and RMB together, it is not possible to avoi
    the B1889 message beause there will be always the case that your ISO
    code is not unique AND that one currency code is not flagged as primary,
    which is summed up in rule (3).
    Please see information in attached note  "144349 ALE: Problems with
    currency conve".

  • BAPI for purchase order enhancement in DMS

    hi, guru,
    one of the client requirement is,
    Is there any BAPI s for enhance ment of DMS and Purchase order FUnctionalities?
    points!!!!!!!!!!1

    Hi,
    regarding the DMS BAPIs please see the transaction BAPI in your system or the SAP note 766277 which contains a complete documentation on all DMS BAPIs.
    Best regards,
    Christoph

  • BAPI for purchase order TA Me27

    Hi,
    I´m looking for a BAPI to create purchase orders like in TA ME27. I don´t have the vendor...
    So I think, BAPI_PO_CREATE is not working because the vendor is mandatory...
    Thank You!

    Sorry, I mean creating a stock transport order and therefore using TA ME27.
    If you use order type 'UB' in TA ME27, you can create also stock transport orders...
    Do you know a BAPI for that?
    Thank You!

Maybe you are looking for

  • Uploading an XML file from SAP into third party URL

    Hi, I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure. Thanks in advance. -Namdev

  • Solaris 8 - 10 upgrade options

    I want to upgrade a Sol. 8 sytem to Sol. 10 but acomplish 2 objectives in the process: 1.) Reduce the system disk mounts pts (/var,/opt) to just / 2.) Attempt to do a UPGRADE install so as to not have to restore all my custom apps. I tried a quick UP

  • Using Shuffle to tranfer files

    Can I use my Shuffle to transfer music files from a Windows PC to a Mac. The reason is I want to get rid of my PC, the PC does not have iTunes and the files are kept in the My Music folder. Can this be done? I have read that I can and I have read tha

  • HT4848 Error creating recovery disk in Disk Assist

    I've carefully followed all instruction in this post: http://support.apple.com/kb/ht4848, but I am having an error when creating the recovery disk. The recovery Disk Assist starts creating it, but stops early on. The message I get is titled "Conclusi

  • Design Principle for connecting to CMS or Legacy Systems

    Team What is the best design pattern principle to be levergaed when integrating your service layer with a CMS or any Legacy System like whether or not a Factory Pattern should be used or whether the CMSManager should be a singleton. If any one of you