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

Similar Messages

  • Questions on Xontrol--H​ow to update the state and data

    Hello, everyone. I am new to use the XControl. I don't understand how the program in the facade update the "state" and "Data" after we click the button. I cannot do that, please give me some help on the XControl.
    My vi is in the attachment.
    Message Edited by McArthur on 03-24-2010 02:19 AM
    Working...
    Attachments:
    Button.zip ‏51 KB

    McArthur wrote: Now I understand the reason why the state can not update, because I didn't do as TCPlomp mentioned. It seems working now....
     I mentioned this too, however without a pretty picture.
    quote: 
    When you modify data or state, you need to update the action cluster to indicate that fact.
    McArthur wrote: The example is just a dummy, not really make sense.
    The example is really quite good and shows these things too as well as many other important points. Please try to fully understand it. 
    I would strongly advise you to also look at my other suggestions. You still haven't explained the purpose of the xcontrol. I am still curious.  
    LabVIEW Champion . Do more with less code and in less time .

  • Auto update of time and date

    In my Lumia 625 auto update of time and date is not working properly. It's sowing different form my time zone. Anybody pls help me

    Which network operator do you use, in which country?

  • BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition

    Dear All,
    BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
    Below I have given my code.
    Thanks and Regards
    Makarabd
    poitem-po_item = '00010'.
    poitem-net_price = '1060.00'.
    poitem-period_ind_expiration_date = 'D'.
    APPEND poitem.
    poitemx-po_item = '00010'.
    poitemx-po_itemx = 'X'.
    poitemx-net_price = 'X'.
    APPEND poitemx.
    select single * from ekko where ebeln = po_no.
    pocond-itm_number = '00010'.
    pocond-cond_type = 'ZVCU'.
    pocond-cond_value = 10.
    pocond-currency = '%'.
    pocond-STAT_CON = 'X'.
    pocond-accruals = 'X'.
    pocond-change_id = 'I'.   " I - Add , U - Update , D - Delete
    APPEND pocond.
    pocondx-itm_number = '00010'.
    pocondx-itm_numberx = 'X'.
    pocondx-cond_type = 'X'.
    pocondx-cond_value = 'X'.
    pocondx-currency = 'X'.
    pocondx-change_id = 'X'.
    pocondx-STAT_CON = 'X'.
    pocondx-accruals = 'X'.
    APPEND pocondx.
       CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder          = po_no
            TABLES
              return                 = return
              poitem                 = poitem
              poitemx                = poitemx
              pocond                 = pocond
              pocondx                = pocondx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • Price change in Schedule agreement but not updated in CDHDR and CDPOS

    Hi Experts
    We have change price in  SA ,please see the below screen shot. But these changes not update in CDHDR and CDPOS. We can see current rate in ME33L.
    Please guide how to update these changes.
    Regards
    Parkash Chand

    Generally in standard, the changes logs are saved into table CDPOS and CDHDR.
    Its working fine in my system.
    Can you see the changes log with regards to document number by running program RSSCD200.
    Go to SE38 or SA38, enter the program RSSCD200 then press execute.
    Enter * in object class and enter the document number
    Then press execute. You can find more details into the wiki content Steps to enable logging of changes in change documents - Code Gallery - SCN Wiki

  • C# Wrapper for Berkeley Db is not ptting proper key and data values

    Hi All,
    I am using C# wrapper for Berkeley Db which is available at sourceforge.net.
    Now when i am putting an integer as key value, it returns keysize as 9,
    instead of returning 4.
    That C# Wrapper contains a serialzing class called BDBFormatter which pass all the data into DBT .
    The file created using C# Wrapper is not read as key and data values are not coming properly if i try to read the file using only C berkeley db.
    Can anybody suggest me some way to create a berkeley Db file in C#. which can be accessible by Linux C berkeley Db APIs.
    Any help will be appreciated.....
    Thanks,
    Eric Hass

    user11218092 wrote:
    Hi All,
    I am using C# wrapper for Berkeley Db which is available at sourceforge.net.
    Now when i am putting an integer as key value, it returns keysize as 9,
    instead of returning 4.
    That C# Wrapper contains a serialzing class called BDBFormatter which pass all the data into DBT .
    The file created using C# Wrapper is not read as key and data values are not coming properly if i try to read the file using only C berkeley db.
    How data is encoded is up to the programmer. There is no defined way in BDB to do that, it is application dependent.
    The BDBFormatter class is just one way of encoding C# classes and structs (which includes the ability to serialize Nulls).
    It is written with BDB in mind and has some performance advantages over the standard .NET serialization classes.
    If you want to read back the data from code written in another language, you will have to duplicate how data is encoded/decoded.
    The source code is there to read. ;-)
    Karl

  • HT201210 this was not helpful, my iphone will not update or restore and my itunes will no longer reconize it, what should I do?

    this was not helpful, my iphone will not update or restore and my itunes will no longer reconize it, what should I do?

    iOS device not recognized in Windows

  • My photoshop elements12 will not update says error and contact adobe but not open now for help.  windows vista

    my photoshop elements12 will not update says error and contact adobe but not open now for help.  windows vista

    I need the updates because I just purchased a Nikon D60 and my Photoshop does not read the .NEF files produced by the camera.
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Do you really mean the Nikon D60 which shipped in 2008? Was it purchased secondhand?
    The Nikon D60 was first supported in Adobe Camera Raw 4.4.
    Photoshop CS4 ships with Camera Raw 5.0 so it can read D60 NEF files out of the box. No updates required.
    If you do mean the D60 then something else must be going on. e.g. are you using Nikon software to transfer files from camera to computer?

  • My old email is not anymore existing.It was my Apple id. I updated my profile changing enail and password. Unfort. my Iphone did not update my profile and then I can not use my account by it. how can I do to reset my profile on IPhone4

    My old email is not anymore existing.It was my Apple id. I updated my profile changing enail and password. Unfort. my Iphone did not update my profile and then I can not use my account by it. how can I do to reset my profile on IPhone4

    Settings > iTunes and App Store > Apple ID > Sign Out > Sign In with the current Apple ID
    Settings > iCloud > (Scroll Down) Delete Account > Sign In with the current Apple ID

  • I can not update my ipad2 and now only have the itunes symbol and connection cable showing?

    I can not update my ipad2 and now only have the itunes symbol and connection cable showing?

    Connect the iPad to your computer's iTunes. You have to restore your iPad now.
    iTunes: Restoring iOS software
    Read the kb article all the way to the end. You may need to use recovery mode.

  • Define G/L Account for Product Category and Account Assignment Category

    Hello Experts,
    I got a requirment to make a new entry in below SPRO path.
    Define G/L Account for Product Category and Account Assignment Category
    *Individual entries cannot be put into the change request*
    *Message no. SV141*
    *Diagnosis*
    *For technical reasons, the entries cannot be fully specified in the change request. There are two possible reasons for this:*
    *1. The key of an entry is longer than 120 characters. All entries whose keys match up to character 119, are then copied into the change request, rather than an individual entry.*
    *2. The key of an entry contains fields of special data types, for example, packed numbers. The key can only be specified in the change request up to the first such field from the left.*
    *all entries whose keys match up to character 26 are copied into the change request, rather than a single entry.*
    *System Response*
    *The selected entry is copied into the change request correctly, but other entries may be copied as well.*
    My question is, If I make one entry and move to Quality and production system will it move only one entry or whole table will move?
    Kindly help me.
    Thanking you
    Regards
    Sharan

    I got the same message trying to make an entry in SPRO:
    Define Backend System for Product Category
    I found the note 305942 describing exactly the issue for my and above mentioned entry, which offers the correction, then the note 326802 which offers the correction of the first notes. However, both notes are for Releases 4.6C and D (from 2000), and we are using EHP2 FOR SAP SRM 7.0.
    I see another discussions in SCN regarding this topic, but haven't found real solution yet. Any hints? At least the answer to previous question from Sharan would be appreciated.
    Best regards,
    Toni

  • Defining G/L Account for product category and account assignment category

    We are using the standard configuration to default in a G/L account for a given product category and account assignment category combination.  This works well for us when it comes to the shopping transactions (i.e. BBPSC01, BBPSC02, etc.), however we have a problem with this logic in the carry out sourcing transction BBPSOCO01.  Our users are creating describe requirements which are then delivered to BBPSOCO01, however the user is not assigning the correct product category, so the sourcing department updates the cart with the correct product category.  Upon doing so, the G/L account gets changed to whatever the V_BBP_DET_ACCT table determines is correct for that given product category/account assignment combination.  We would like to know if their is a way to not fire the "default G/L account determination" when the shopping cart is changed in transaction BBPSOCO01.  I already know about the BBP_DETERMINE_ACCT BADI but thought there might be a less expensive alternative.  Our business treats the G/L account provided by the configuration as a guideline, therefore when the buyer changes the product category they also want to retain the account assignment information.  Any suggesstions on how this might be accomplished outside of creating my own logic in the BADI?
    Best regards,
    Shawn O'Connor

    I got the same message trying to make an entry in SPRO:
    Define Backend System for Product Category
    I found the note 305942 describing exactly the issue for my and above mentioned entry, which offers the correction, then the note 326802 which offers the correction of the first notes. However, both notes are for Releases 4.6C and D (from 2000), and we are using EHP2 FOR SAP SRM 7.0.
    I see another discussions in SCN regarding this topic, but haven't found real solution yet. Any hints? At least the answer to previous question from Sharan would be appreciated.
    Best regards,
    Toni

  • Item category and Account assignment category field grayed out in PR/PO

    Hello all,
    While making a PR/PO we use both the item category and account assignment category. However, after saving the PR/PO, when i try to change the fields through ME22N/ME52N, the fields are greyed out. I dont think this can be controlled through the layout screen.
    Is there anyway the fields can be made modifiable in ME22N/ME52N ?
    Please help!
    regards,
    Soumyadeep.

    Hi,
    Well, actually you can control the Field settings in customization of Document Type. Check the following :
    Go to SPRO>MM>Purchasing>Purchase Order>Define screen layout at document level
    Click on the desired Document Type and see if the Field selection for Item Cat and Acct Assignment is checked for Display for that Document Type. If it is then change it to Optional.
    Now, Go to SPRO>MM>Purchasing>Purchase Order>Define Document Type and see if the Field Selection Key is assigned to the (Updated just now) document Screen layout.
    Hope this helps,
    Best regards
    Amit Bakshi

  • BAPI_PO_CHANGE is not updating Quantity and Delivary Date

    HI All,
    I am trying to update quantity and delivery date of PO by using BAPI_PO_CHANGE,
    by Passing below parameters.
    As per the documentation:
    Parameter: PURCHASEORDER 4500003477
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    and executed bapi_transaction_commit FM immediate, i am getting below message
    Purchase Orders 4500003477 changed
    Error transferring ExtensionIn data for enhancement CI_COBL
    No message generated for output of purchasing document
    but quantity and delivery date was not  changed..
    why this quantity and delivery date is not changing?
    <removed by moderator>
    REgards,
    Suresh.D
    Edited by: Thomas Zloch on Feb 27, 2012

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • BAPI_PO_CHANGE does not update as desired

    Hi there,
         I used BAPI_PO_CHANGE FM to change the delivery date and stat.delivery date in Purchase Order,
        but its not updating...
    Here is my code..pls help...thanks in advance,
    REPORT  ZSUDHIR_BAPI_PO_SCHDLE.
    PARAMETERS: P_PO  TYPE EKKO-EBELN,
                P_ITM TYPE EKKO-EBELN,
                P_DD  TYPE EKKO-EQ_EINDT.
    DATA: IT_RETURN TYPE STANDARD TABLE OF BAPIRET2,
          WA_RETURN TYPE BAPIRET2,
          lv_flag TYPE flag,
          IT_SCH TYPE STANDARD TABLE OF BAPIMEPOSCHEDULE WITH HEADER LINE,
          IT_SCHX TYPE STANDARD TABLE OF BAPIMEPOSCHEDULX WITH HEADER LINE.
          IT_SCH-PO_ITEM = P_ITM.
          IT_SCH-DELIVERY_DATE = P_DD.
          IT_SCH-STAT_DATE = P_DD.
          IT_SCH-QUANTITY = '10'.
          IT_SCH-SCHED_LINE = '0001'.
          APPEND IT_SCH.
          CLEAR IT_SCH.
          IT_SCHX-PO_ITEM = P_ITM.
          IT_SCHX-PO_ITEMX = 'X'.
          IT_SCHX-DELIVERY_DATE = 'X'.
          IT_SCHX-STAT_DATE = 'X'.
          IT_SCHX-QUANTITY = 'X'.
          IT_SCHX-SCHED_LINE = 'X'.
          APPEND IT_SCHX.
          CLEAR IT_SCHX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        PURCHASEORDER                = P_PO
    *   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                       = IT_RETURN
       POITEM                       = IT_SCH
       POITEMX                      = IT_SCHX
    *   POADDRDELIVERY               =
    * POSCHEDULE                   =
    *  POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
    LOOP AT IT_RETURN INTO WA_RETURN WHERE TYPE = 'E'.
      WRITE / WA_RETURN-MESSAGE.
      lv_flag = 'x'.
      ENDLOOP.
      IF lv_flag IS INITIAL.
        READ TABLE IT_RETURN INTO WA_RETURN WITH KEY TYPE = 'S'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
        WRITE / WA_RETURN-MESSAGE.
        ENDIF.
    Edited by: Thomas Zloch on May 19, 2011 5:11 PM - please use code tags

    Are you really sure that your IT_SCH has the same fields like POITEM?
    the delivery date and statistical delivery date are located in the schedule tab in ME23N and stored in the schedule table EKET, not in EKPO where the PO item data is stored.
    I think you should assign your IT_SCH to POSCHEDULE

Maybe you are looking for

  • Get error message when trying to sync through Blackberry Device Manager

    During the synchronization process, I get an error message: Error encountered. Error code - 0x80040fb3. Check documentation. This is during the Address Book synchronization. Help...I have no contacts and only a portion of my notes are syncing to my p

  • Acrobat 9.5.2 question.

    Acrobat 9.5.2 and acrobat 7.0.0 are installed on the same computer. Acrobat 9.5.2 works perfectly. Can Acrobat 7.0.0 be uninstalled without causing any problems? noel

  • How can I install the fonts?

    Hi, I had downloaded the trial CS6 Design & Web Premium, and when I got my license I downloaded 2 additional packages that contained fonts for Illustrator and InDesign. Yet I have no idea what to do with these fonts and I can't find any document on t

  • Reg: The invoices are not moving to corresponding output types. Status is y

    Hi All, I have created the invoice with the delivery based. But that invoice is not moved to corresponding output type. The status is showing yellow color for the particular output type. Even if i created the number of invoices for different deliveri

  • Modifying web.xml for a custom tag

    Hello all, I'm trying to create a custom tag, and I'm having trouble trying to understand some elements of web.xml. Can someone tell me in detail what <taglib-uri> is? I know <taglib-location> is the directory where the .tld file is stored. Also, is