BAPI_PO_CHANGE - Confirmation

Hi gurus!
I'm facing some trouble using the BAPI in object to confirm some Purchase Order positions.
I don't have any errors, but in ME23N, under confirmation labels, I don't find anything and positions doesn't seems to be confirmed.
I'm missing something?
SELECT ebelp menge eindt lpein etenr uzeit
  INTO (l_confirmation-po_item, l_confirmation-quantity,
        l_confirmation-deliv_date, l_confirmation-del_datcat_ext,
        l_confirmation-conf_ser, l_confirmation-deliv_time )
                          FROM eket WHERE ebeln EQ l_ebeln.
    MOVE:  'AB'         TO l_confirmation-conf_type,
*      'ZMREMO40'   to l_confirmation-CONF_NAME,
          'D'        TO l_confirmation-del_datcat_ext,
          l_confirmation-del_datcat_ext TO l_confirmation-del_datcat,
          'X'           TO l_confirmation-dispo_rel.
    APPEND l_confirmation.
    MOVE: l_confirmation-po_item TO poitem-po_item,
          l_confirmation-po_item TO poitemx-po_item,
          'X'                    TO poitemx-po_itemx.
    APPEND poitem.
    APPEND poitemx.
    CLEAR l_confirmation.
  ENDSELECT.
  MOVE l_ebeln TO poheader-po_number.
  MOVE 'X' TO poheaderx-po_number.
  CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
      purchaseorder  = l_ebeln
      poheader       = poheader
      poheaderx      = poheaderx
      no_authority   = 'X'
    TABLES
      return         = l_return
      poitem         = poitem
      poitemx        = poitemx
      poconfirmation = l_confirmation.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Ok, i worked a bit on the bapi
SELECT ebelp menge eindt lpein  uzeit etenr
  INTO (l_confirmation-po_item, l_confirmation-quantity,
        l_confirmation-deliv_date, l_confirmation-del_datcat_ext,
        l_confirmation-deliv_time, l_confirmation-conf_ser  )
                          FROM eket WHERE ebeln EQ l_ebeln.
    MOVE:  'AB'         TO l_confirmation-conf_type,
           'D'        TO l_confirmation-del_datcat_ext.
    MOVE: l_confirmation-po_item TO poschedule-po_item,
          l_confirmation-conf_ser TO poschedule-sched_line,
          l_confirmation-po_item TO poschedulex-po_item,
          l_confirmation-conf_ser TO poschedulex-sched_line,
          l_confirmation-quantity TO poschedule-com_qty,
          l_confirmation-deliv_date TO poschedule-com_date,
          'X' TO poschedulex-com_qty,
          'X' TO poschedulex-com_date.
    APPEND l_confirmation.
    APPEND poschedule.
    APPEND poschedulex.
    MOVE: l_confirmation-po_item TO poitem-po_item,
          l_confirmation-po_item TO poitemx-po_item,
          'Z001'                 to poitem-conf_ctrl,
          'X'                    to poitemx-conf_ctrl.
    APPEND poitem.
    APPEND poitemx.
    CLEAR l_confirmation. CLEAR: poschedule, poschedulex.
  ENDSELECT.
  CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
      purchaseorder  = l_ebeln
     no_authority   = 'X'
    TABLES
      return         = l_return
      poschedule     = poschedule
      poschedulex    = poschedulex
      poitem         = poitem
      poitemx        = poitemx
      poconfirmation = l_confirmation.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
now i get the message "Unable to update  confirmed quantity".
Any suggestion?

Similar Messages

  • BAPI_PO_Change  can't add Confirmation date to PO

    hi ,everyone
    I want to use the BAPI function to insert the confirmation date of PO,but I can't insert the date by the below code ,I can't find out the problem ,pls help me ,thanks.
    Création confirmation commande
    MOVE GT_ITAB-EBELP              TO GS_POITEM-PO_ITEM.
          MOVE 'Z001'                     TO GS_POITEM-CONF_CTRL.
          APPEND GS_POITEM.
          MOVE GT_ITAB-EBELP              TO GS_POITEMX-PO_ITEM.
          MOVE 'X'                        TO GS_POITEMX-CONF_CTRL.
          MOVE 'X' TO GS_POITEMX-PO_ITEMX.
          APPEND GS_POITEMX .
          MOVE GT_ITAB-EBELN    TO GS_POHEADER-PO_NUMBER.
          MOVE 'X'              TO GS_POHEADERX-PO_NUMBER.
          MOVE GT_ITAB-EBELP    TO GS_POCONFIRMATION-PO_ITEM.
          MOVE GT_ITAB-EINDT    TO GS_POCONFIRMATION-DELIV_DATE.
          MOVE GT_ITAB-MENGE    TO GS_POCONFIRMATION-QUANTITY.
          MOVE 'Z1'             TO GS_POCONFIRMATION-CONF_TYPE.
          MOVE '0001'           TO GS_POCONFIRMATION-CONF_SER .
         MOVE 'T'              TO GS_POCONFIRMATION-DEL_DATCAT_EXT.
         MOVE 'D'              TO GS_POCONFIRMATION-DEL_DATCAT.
          APPEND GS_POCONFIRMATION .
          CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              PURCHASEORDER  = GT_ITAB-EBELN
              POHEADER       = GS_POHEADER
              POHEADERX      = GS_POHEADERX
            TABLES
              RETURN         = GS_RETURN2
              POITEM         = GS_POITEM
              POITEMX        = GS_POITEMX
             POSCHEDULE     = GS_POSCHEDULE
             POSCHEDULEX    = GS_POSCHEDULEX.
              POCONFIRMATION = GS_POCONFIRMATION
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT = 'X'.

    Hi
    The new Enjoy GUI transactions were not created for batch input. They were created for online processing not background.                                                                          
    The fact is that the BDC is mainly screen-based and all new transactions (Enjoy transactions are designed as one-screen transactions) are more and more control-based.
    So you have to use ME22 ( for create easily a BDC program  you can use transaction SHDB). Alternatively, for the confirmations, message type ORDRSP is provided. This will allow external system to send in new/updated confirmations.
    For more information on EDI IDOC, please see online help documentation  
    Materials Management (MM) >Purchasing (MM-PUR) >Vendor Confirmations    
    >Confirmations from the Purchasing Viewpoint                            
    >Receiving Vendor Confirmations via EDI                                                                               
    Hope this can help
    Regards,
    Mauro.

  • BAPI_PO_CHANGE is not updating Confirmation Category and Date cate Category

    Hi to all,
                 Am using BAPI_PO_CHANGE in my program. My program is to upload excel file and transfer the data to corresponding tables.
    All the thing is working perfectly but the two fields in BAPI are not updating. They are CONF_TYPE and DEL_DATCAT_EXT in POCONFIRMATIONS( which is tables in bapi).Am giving my code below. And this POCONFIRMATIONS is available from  6.0 version.
    Thanks in advance.
    Shah.
    LOOP AT it_ebelp INTO is_ebelp .
        CLEAR:  is_header, is_poitem,  is_poitemx,is_confirm, is_return.
        is_header-po_number       = is_ebelp-ebeln.
        is_poitem-po_item         = is_ebelp-ebelp.
        is_poitem-conf_ctrl        = 'SMIC'.
        APPEND is_poitem TO it_poitem.
        is_poitemx-po_item        = is_ebelp-ebelp.
        is_poitemx-po_itemx       = 'X'.
        is_poitemx-conf_ctrl      = 'X'.
        APPEND is_poitemx TO it_poitemx.
        is_confirm-po_item        = is_ebelp-ebelp.
        is_confirm-conf_type      = 'LA'.
        is_confirm-del_datcat_ext = 'D'.
        APPEND is_confirm TO it_confirm.
        AT END OF ebeln.
          CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder  = is_header-po_number
              POHEADER       = is_header
            TABLES
              return         = it_return
              poitem         = it_poitem
              poitemx        = it_poitemx
              poconfirmation = it_confirm.
          IF NOT it_return IS INITIAL.
            LOOP AT it_return INTO is_return.
              WRITE : is_return-message.
            ENDLOOP.
            READ TABLE it_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
            IF sy-subrc <> 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
           wait   = c_x
                IMPORTING
                  return = is_return1.
            ENDIF.
          ENDIF.
          REFRESH: it_poitem,  it_poitemx,it_confirm, it_return.
        ENDAT.
      ENDLOOP.

    Hi Shah,
    I also facing the same problem which u had passed already..
    could teach me how u over come this.
    one more thing my sap version is 4.7 in bapi_po_change
    i don't have poconfirmation
    *CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
       purchaseorder                =
      POHEADER                     =
      POHEADERX                    =
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
    IMPORTING
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
      RETURN                       =
      POITEM                       =
      POITEMX                      =
      POADDRDELIVERY               =
      POSCHEDULE                   =
      POSCHEDULEX                  =
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
    i  am waiting for u reply
    Edited by: JJ on Sep 10, 2008 1:54 PM

  • Sto confirmation update in ekes table me22n

    Hi,
    The confirmations tab already displays a line item details for
    confirmation category 'AB-order acknowledgement' . The thing is,
    i need to update the screen so that along with the present line
    item details, i have to display the confirmation category 'LA-
    inbound delivery'. This confirmation category actually tells the
    qty that has been shipped, which may vary from the qty on the
    std PO. The following are the fields which need to be updated in the database table ekes.
    type of conf. (EKES-EBTYP)
    delivery date (RM06E-EEIND)
    quantity (EKES-MENGE).
    i had used BAPI_PO_CHANGE , but is not updating the EKES  table which is mandatory for my requirement,
    and i also tried the bapi  ME_CONFIRMATION_UPDATE_GR , this is bapi is also not updating the table ekes,
    so shall i need to enhance the standard function module ME_CONFIRMATION_UPDATE_GR OR ANY OTHER WAY ROUND TO  MEET THE REQUIREMENT
    any guidance is much appreciated.

    I'm not sure if this will help you but I solved a similar issue once before.
    For an intercompany PO, we had different quantities on the outbound and inbound deliveries. When they tried to recieve the outbound delivery in MIGO, the inbound delivery quantity (what was ordered) would default instead of what was actually shipped.
    I implemented BADI BADI_LE_SHIPMENT so that when an outbound delivery was goods issued, the corresponding inbound delivery quantity would update if applicable. BAPI_INB_DELIVERY_CHANGE was used to modify the delivery.
    Seeing your post, I looked at EKES. The quantity was updated to the quantity of the outbound delivery. Maybe this will work for you?

  • 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

  • Changing a Purchase Order with "BAPI_PO_CHANGE"

    Hi Experts,
    I am trying to change the Confirmation data for an existing PO using the BAPI "BAPI_PO_CHANGE".
    I am filling the PO Number in the "PURCHASEORDER" Import parameter.
    I am also filling the "CONF_TYPE", "DELIV_DATE" and "QUANTITY" fields in the "POCONFIRMATION" Table parameter which is specifically the data i need to add to the existing PO under the "Confirmations" tab of the PO.
    I am getting all the input data for the BAPI from a file on the presentation server. The file has details of Material Number, Purchase Order Number, Ship to Address, Delivery Date and Quantity.
    But i am not able to change any data in the Purchase Order when i test the BAPI. I am getting the following messages in the "RETURN" Tables parameter:
    T ID                   NUM MESSAGE
    W ME                   667 Max. line number reached (Please always first enter line number manually)
    E BAPI                 003 Instance 45317399 of object type PurchaseOrder could not be changed
    W ME                   178 Batch SURE not maintained for material 10013537 (please check your input)
    E 06                   218 Net price must be greater than 0
    I am not sure if i am missing to fill any parameter here.
    Kindly help me in resolving this issue.
    Thanks in advance.
    Regards,
    Keerthi

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • BAPI to add Purchase Order Confirmation?

    Hi,
    I have to add PO Confirmations and I found the BAPI 'BAPI_PO_CHANGE' that have an "tables" parameter for my requeriment. But I created a test program and I checked that it doesn't work for that purpouse (and I'm not the 1st one who find that problem: [Re: BAPI_PO_CHANGE is not updating Confirmation Category and Date cate Category; ). I checked the code and the BAPI really don't do anything with POCONFIRMATION data except read it....
    Have you an alternative for this??

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • BAPI_PO_CHANGE, Pricing condition valueis not updating

    Hi Experts,
    I need to update the one of the Pricing condition amount in PO.
    I am using BAPI_PO_CHANGE by passing PO number, POCOND
    and POCONDX.
    i need to update the pricing condition amount say from 10 to 15.
    I am passing the same in POCOND-COND_VALUE = '15.00000'
    and CHANGE_ID = 'U'.
    Please let me know the sol, Definitely points will be awarded.
    or cant we change the pricing condition value by BAPI. Please confirm.
    Thanks,
    Shaik Bhasha

    Hi,
    I believe you can use this BAPI to PO conditions..
    Check this code..
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    DATA: t_poitem LIKE bapimepoitem OCCURS 0 WITH HEADER LINE.
    DATA: t_poitemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE.
    DATA: t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: t_cond LIKE bapimepocond OCCURS 0 WITH HEADER LINE.
    DATA: t_condx LIKE bapimepocondx OCCURS 0 WITH HEADER LINE.
    t_poitem-po_item = '00010'.
    t_poitem-net_price = '17.00'.
    APPEND t_poitem.
    t_poitemx-po_item = '00010'.
    t_poitemx-net_price = 'X'.
    t_poitemx-po_itemx = 'X'.
    APPEND t_poitemx.
    t_cond-itm_number = '00010'.
    t_cond-cond_type = 'P000'.
    t_cond-cond_value = '17.00'.
    t_cond-currency = 'USD'.
    t_cond-change_id = 'U'.
    APPEND t_cond.
    t_condx-itm_number = '00010'.
    t_condx-itm_numberx = 'X'.
    t_condx-cond_type = 'X'.
    t_condx-cond_value = 'X'.
    t_condx-currency = 'X'.
    t_cond-change_id = 'X'.
    APPEND t_condx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    purchaseorder = p_ebeln
    TABLES
    return = t_return
    poitem = t_poitem
    poitemx = t_poitemx
    pocond = t_cond
    pocondx = t_condx.
    COMMIT WORK.
    The above code works fine for me...
    Thanks,
    Naren

  • Vendor confirmations in purchase order

    Hi friends,
    Iam using the fucntion module ME_CONFIRMATION_UPDATE to update the vendor confirmations table ie : EKES table
    Now iam able to succesfully update and insert new record in this table using the above function module.
    Now when i go to ME23N and give purhcase order number and at the item level in the confirmations tab i should see the updated entries of EKES table . but iam not able to see it..
    when i manually add a new line in the confirmations tab then i can see that entry in the EKES table.. how can i get the reverse process ie : when i add an entry in EKES table using the above function module it should reflect in the confirmation tab at the item level in ME22N.
    How can i do it.
    Regards
    Kumar

    Well, not much more I can say. This is the code I uam using for my specific case, hope that gives you some ideas for your case:
    lstr_item-acknowl_no = p_cnftxt.
      lstr_item-conf_ctrl = '0001'.
      lstr_itemx-acknowl_no = 'X'.
      lstr_itemx-conf_ctrl = 'X'.
      LOOP AT gtab_xekes_tmp INTO gstr_xekes_tmp.
        IF gstr_xekes-ebelp NE lv_ebelp AND sy-tabix > 1.
          lstr_item-po_item = gstr_xekes_tmp-ebelp.
          APPEND lstr_item TO ltab_item.
          lstr_itemx-po_item = gstr_xekes_tmp-ebelp.
          APPEND lstr_itemx TO ltab_itemx.
        ENDIF.
        lv_ebelp = gstr_xekes_tmp-ebelp.
      ENDLOOP.
      lstr_item-po_item = gstr_xekes_tmp-ebelp.
      APPEND lstr_item TO ltab_item.
      lstr_itemx-po_item = gstr_xekes_tmp-ebelp.
      APPEND lstr_itemx TO ltab_itemx.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder = p_ebeln
        TABLES
          return        = ltab_bapiret
          poitem        = ltab_item
          poitemx       = ltab_itemx.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    /Leif

  • BAPI to change confirmations details of PO

    Hi all,
    I want to add confirmations details like confirmation category, delivery date, quantity, reference, etc in the confirmation tab of ME22N. I'm in need of a BAPI to do this.
    Please let me know any BAPI or FM to change the confirmation detials of PO.
    Thanks in advance,
    Srilakshmi

    Hi Sreelakshmi,
    You can either use BAPI_PO_CHANGE or function module ME_CONFIRMATION_UPDATE_GR.
    Refer this BADI on ME22N (Change PO) also.
    Regards
    Deepa

  • Mass Purchase Order Confirmation

    Dear All,
    Existing Process :
    In ME21N Purchase Order is created.It is released.After vendor receives PO he will be confirming the quantity & delivery date.
    Based on the vendor information,in ME22n confirmed
    qty & date will be entered for each line item of PO.
    As such confirmation is done for single line item at a time it is most time consuming & hectic process.
    Requirement:
    Based on some selection criteria(Vendor,Material,PO No range etc) & filters(Only un confirmed PO has to be selected;Only Released PO has to be selected etc)we want to create Transaction / screen which will be populating all the PO which are meeting the filtering criteria. On execution of this screen all PO which is populated will be confirmed in a single step.
    Is there any BAPI to do Mass PO confirmation instead of single PO line confirmation?
    Is there any way to do it?
    Expecting your expertise in this regard.
    Thanks in advance.
    Regards,
    Ramesh

    Hi Umakanth,
    Thanks for your input.
    After sending the PO to Vendor, Vendor will be confirming their feasibity for delivering the quantity and delivery date.
    Based on that we will be entering in the Confirmation Tab with CC AB(Order Acknowledgement).
    While vendor has dispatched he will be informing regarding dispatch details for which we can create Inbound delivery.
    Is my understanding right?
    We want to go for Order Acknowledgement process in a mass manner as in standard SAP for single PO line item only we can go for confirmation.
    For our case, most of the confirmation will be done as given in the PO line tem (Qty & Del. date).
    Pls. let me know which BAPI is used for updating confirmation details into EKES.I have checked BAPI_PO_CHANGE.Its not working.
    If BAPI is known,Custom Program can be developed by using that BAPI in such a way that multiple line item can be posted in a single transaction execution.
    Expecting your valuable inputs regarding this.
    Regards,
    Ramesh

  • Vendor confirmation tab update using idoc ORDERS02

    Hi all,
    This is the first time i am working on idocs.
    I have a requirement where i have to update the vendor confirmation tab in ME22n(Purchase order), I am using IDOC type ORDERS02. and i am using segment E1EDP20 to update quantity,date and reference no. This is working fine.
    Now i need to update 2 more fields in the tab i.e confirmation category(EKES-EBTYP) and Date category of delivery date in vendor confirmation(EKES-LPEIN).But i dint find these fields in segment E1EDP20.
    My question is whether these 2 fields are available in any other segment?
    or should i extend the segment  E1EDP20 ?is it the correct segment to be extended...
    Please provide the inputs....<removed by moderator>
    Regards,
    Greeshma.
    Edited by: Thomas Zloch on Feb 22, 2012

    Hi,
    I have a questions for you and that will help me provide better solution .
    a) Is vendor providing you the Confirmation category or are you expecting to get this information from Vendor ?
    There are many points at which this information can be entered in ME22N.
    1. When the Vendor Acknowledege your PO(If the Acknowledgment required is selected) .
    2. When the Vendor request a change in schedule due to his own priorities .
    3. When the Vendor actually does a goods issue and you are ready to do a Goods receipt.
    In all these cases you update the system with confirmation category .In most cases this is the last phase of PO processing where you do the goods receipt and simultaneoulsy update the confirmation category. You are geting the quantity and the date updated from your schedule lines currently and since Schedules lines does not contain the confirmation category you are not getting it in E1EDP20.Confirmation category in most business scenarios is a mere stastical data rather than concrete data like schedule lines.
    Depending on 1/2/3 you should be approching the solution. 1.If you want to update the confirmation category during the Order acknowledgment Use BAPI_PO_CHANGE and call it from the PI or middleware  or(3) if during the Goods receipt then call the Exit of MIGO to get the PO populated if not exit then write a custom program to see all the Goods receipt and update the PO confirmation category accordingly (Remember this is a statstical data ). Although i highly doubt that the confirmation category will be provided by vendor it is the Buyer who will be determining it and that is why it is not there in the Standard Idoc.I shall not prefer the IDOC extension.
    You can have a discussion with your Functional/Customer to figure out the best approcah. Word of Caution : Analyze before you extend an Idoc .
    Thanks,
    Anjaneya .
    Edited by: Anjaneya Bhardwaj on Feb 24, 2012 7:33 AM

  • Changing currency and price on BAPI_PO_CHANGE

    I gurus!
    I need change the currency with BAPI_PO_CHANGE, the first time i´ts works but when i want change another time, the net_price and gr_price is wrong.
    I change from MXN to USD, later i change from USD to MXN.
    any Idea?

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • BAPI for change PO confirmation date

    Hi,
    Does anyone know a bapi or a function module for change the confirmation date of one item of a purchase order ( that changes the field EINDT of table EKES ) ?
    I need to change it according to goods receipt date.
    Thanks in advance,
    Paulo Sousa

    you can use BAPI_PO_CHANGE
    In particular you would be interested in schedule line table POSCHEDULE in the function interface and the field for confirmation date is DELIVERY_DATE.
    Also you need to pass the BAPI some header fields like PO number etc and item fields liek material number etc along with the POSCHEDULE structure.
    Also remember to mark X in POSCHEDULEX for corresponding field POSCHEDULEX-DELIVERY_DATE, so that the change will be transferred to the PO in database.
    Also this BAPI can auto COMMIT
    Hope this helps

  • Update PO with Confirmation Control Key,Acknowledged Delivery Date.

    Hi Experts,
    I have a requirement that through a Excel file I have to update a Existing PO with the three fields,
    1.Confirmation Control Key
    2.Acknowledged Delivery Date.
    3.Acknowledged Modified Delivery Date.
    If there will be differ in values in any of the field in the existing PO and the incoming excel file then we need to update the
    fields in the PO.
    So is there any BAPI or FM to update the field value?
    I tried with BAPI_PO_CHANGE it is not working.
    In excel we have only five fields.
    1.PO number
    2.Item
    3.Confirmation Control Key
    4.Acknowledged Delivery Date.
    5.Acknowledged Modified Delivery Date
    Please help.
    Regards,
    Umesh

    you can use BAPI_PO_CHANGE itself, but you need to get the details of the current PO before passing the details to BAPI_PO_CHANGE
    you can use BAPI_PO_GETDETAIL1 by passing ( PURCHASEORDER = <..Your Purchase order Number..> ) and after that you willl
    get all the details of the PO, just change the required data's and pass it to the BAPI_PO_CHANGE. It will be easier.
    after you receive all the data,
    pass the corresponding data from BAPI_PO_GETDETAIL1
    to BAPI_PO_CHANGE.
    1.PO number                    -     PURCHASEORDER (importing)
    2.Item                         -     POITEM (Tables )
    3.Confirmation Control Key          -     POCONFIRMATION (Tables)     
    4.Acknowledged Delivery Date.               
    5.Acknowledged Modified Delivery Date
    I think for 4,5 fields are also in POCONFIRMATION table itself (not sure)

Maybe you are looking for

  • MacBook pro 13" 2010 hard drive died in less than 2 months, what to do

    Hey apple forums, ran into issues today and I want to know how to handle the situation. I bought a MacBook pro 13" (2010) model on may 1st 2010, it died 9 days latter, best buy replaced it free of charge (even though I had to fight them to do so) thi

  • Inner join select

    I had my data declaration as below. DATA :BEGIN OF t_plaf OCCURS 0,        normt LIKE mara-normt,        matnr LIKE plaf-matnr,        pwwrk LIKE plaf-pwwrk,        paart LIKE plaf-paart,        verid LIKE plaf-verid,        auffx LIKE plaf-auffx,   

  • WCS Planning Mode

    HI We've been using Ekahau Site Survey to plan and extend our wifi infrastructure. Comparing WCS and Ekahua on some installs, WCS seems to want probably couple more APs. My question is,      When using WCS to plan the installation / extend existing n

  • Upgrade from 11i ocp to R12

    Dear All I have a OCP 11i Financials Payables, how can i update it to R12. or can can i write the r12 receivables exam. or is their any upgradation exam to r12 from 11i. Regards

  • Why "Wrong Recovery Key" When Generated By Firefox When Trying To Sync "Without A Device" After Original Computer Crash

    My computer crashed and for reasons unknown to me, Mozy didn't back up my Mozilla Firefox files, which I realize are hidden but are no where to be found on Mozy's backup. All I have is my iphone that does have Firefox on it and a new computer. Howeve