<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic BAPI - BAPI_PR_CHANGE - not update proble in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-pr-change-not-update-proble/m-p/6427546#M1410336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use BAPI_PR_CHANGE to change the value of a custom field added to EBAN table, with the CI_EBANDB structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to change other value (for example in the PRITEM stucture) it's work fine, but for the custon fields it's not updating the new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA: lt_bapimereqitemimp TYPE TABLE OF bapimereqitemimp ,
              llv_bapimereqitemimp LIKE bapimereqitemimp.

    lv_bapi_te_mereqitem-cod_presu = 'C123' .
    lv_bapi_te_mereqitem-ceco_ben = '0103476034' .
    lv_bapi_te_mereqitem-plazo = 12 .

    REFRESH  lt_extensionin.

    lv_extensionin-structure = 'BAPI_TE_MEREQITEM'.
    lv_extensionin-valuepart1 = lv_bapi_te_mereqitem .

    APPEND lv_extensionin TO lt_extensionin .

    CALL FUNCTION 'BAPI_PR_CHANGE'
      EXPORTING
        number                      = number
        prheader                    = lv_bapimereqheader
        prheaderx                   = lv_bapimereqheaderx
*        testrun                     = ' '
     IMPORTING
       prheaderexp                 = lt_prheaderexp
     TABLES
       return                      = return_tab
       pritem                      = lt_bapimereqitemimp
       pritemx                     = lt_bapimereqitemx
       pritemexp                   = lt_pritemexp
       pritemsource                = lt_pritemsource
       praccount                   = lt_praccount
       praccountproitsegment       = lt_praccountproitsegment
       praccountx                  = lt_praccountx
       praddrdelivery              = lt_praddrdelivery
       pritemtext                  = lt_pritemtext
       prheadertext                = lt_prheadertext
       extensionin                 = lt_extensionin
       extensionout                = lt_extensionout
       prversion                   = lt_prversion
       prversionx                  = lt_prversionx
       allversions                 = lt_allversions
              .

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait          = 'X'
*    IMPORTING
*      RETURN        =
                 .
*    lt_retun_change .
    COMMIT WORK AND WAIT .
   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 10:09:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-16T10:09:09Z</dc:date>
    <item>
      <title>BAPI - BAPI_PR_CHANGE - not update proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-pr-change-not-update-proble/m-p/6427546#M1410336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use BAPI_PR_CHANGE to change the value of a custom field added to EBAN table, with the CI_EBANDB structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to change other value (for example in the PRITEM stucture) it's work fine, but for the custon fields it's not updating the new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA: lt_bapimereqitemimp TYPE TABLE OF bapimereqitemimp ,
              llv_bapimereqitemimp LIKE bapimereqitemimp.

    lv_bapi_te_mereqitem-cod_presu = 'C123' .
    lv_bapi_te_mereqitem-ceco_ben = '0103476034' .
    lv_bapi_te_mereqitem-plazo = 12 .

    REFRESH  lt_extensionin.

    lv_extensionin-structure = 'BAPI_TE_MEREQITEM'.
    lv_extensionin-valuepart1 = lv_bapi_te_mereqitem .

    APPEND lv_extensionin TO lt_extensionin .

    CALL FUNCTION 'BAPI_PR_CHANGE'
      EXPORTING
        number                      = number
        prheader                    = lv_bapimereqheader
        prheaderx                   = lv_bapimereqheaderx
*        testrun                     = ' '
     IMPORTING
       prheaderexp                 = lt_prheaderexp
     TABLES
       return                      = return_tab
       pritem                      = lt_bapimereqitemimp
       pritemx                     = lt_bapimereqitemx
       pritemexp                   = lt_pritemexp
       pritemsource                = lt_pritemsource
       praccount                   = lt_praccount
       praccountproitsegment       = lt_praccountproitsegment
       praccountx                  = lt_praccountx
       praddrdelivery              = lt_praddrdelivery
       pritemtext                  = lt_pritemtext
       prheadertext                = lt_prheadertext
       extensionin                 = lt_extensionin
       extensionout                = lt_extensionout
       prversion                   = lt_prversion
       prversionx                  = lt_prversionx
       allversions                 = lt_allversions
              .

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait          = 'X'
*    IMPORTING
*      RETURN        =
                 .
*    lt_retun_change .
    COMMIT WORK AND WAIT .
   
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 10:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-pr-change-not-update-proble/m-p/6427546#M1410336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T10:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI - BAPI_PR_CHANGE - not update proble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-pr-change-not-update-proble/m-p/6427547#M1410337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is to populate a line of the 'extensionin'  table with a new line with the structure   'BAPI_TE_MEREQITEMX' value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the new code that work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    lv_extensionin-structure = 'BAPI_TE_MEREQITEM'.
    lv_extensionin-valuepart1 = lv_bapi_te_mereqitem .

    APPEND lv_extensionin TO lt_extensionin .

    lv_extensionin-structure = 'BAPI_TE_MEREQITEMX'.
    lv_extensionin-valuepart1 = '00010A020' .

    APPEND lv_extensionin TO lt_extensionin .


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 10:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-pr-change-not-update-proble/m-p/6427547#M1410337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T10:51:49Z</dc:date>
    </item>
  </channel>
</rss>

