<?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_ADDRESSORG_CHANGE problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098444#M1508110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to update the address of one customer using the address of another customer. What I did is that I used 'BAPI_ADDRESSORG_GETDETAIL' to select the address details of customer2 and stored it in t_bapiad1vl_x. Now I checked if each field in t_bapiad1vl is not initial I would put an 'X' to corresponding field in table t_bapiad1vl_x and populated t_bapiad1vl_x-upadate = 'U'. Now the problem is when I execute the program, customer1 is updated with values that are not in customer2. For example District field in customer2 is blank but when I run the program customer1's district field is populated. What could be the problem causing this and what could be an alternative to my requirement? Thank you in advance! (below is how I called BAPI_ADDRESSORG_CHANGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          obj_type     = lc_kna1&lt;/P&gt;&lt;P&gt;          obj_id       = l_kunnr&lt;/P&gt;&lt;P&gt;          context      = lc_0001&lt;/P&gt;&lt;P&gt;          save_address = c_x&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          bapiad1vl    = t_bapiad1vl&lt;/P&gt;&lt;P&gt;          bapiad1vl_x  = t_bapiad1vl_x&lt;/P&gt;&lt;P&gt;          return       = x_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 03:28:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-29T03:28:17Z</dc:date>
    <item>
      <title>BAPI_ADDRESSORG_CHANGE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098444#M1508110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to update the address of one customer using the address of another customer. What I did is that I used 'BAPI_ADDRESSORG_GETDETAIL' to select the address details of customer2 and stored it in t_bapiad1vl_x. Now I checked if each field in t_bapiad1vl is not initial I would put an 'X' to corresponding field in table t_bapiad1vl_x and populated t_bapiad1vl_x-upadate = 'U'. Now the problem is when I execute the program, customer1 is updated with values that are not in customer2. For example District field in customer2 is blank but when I run the program customer1's district field is populated. What could be the problem causing this and what could be an alternative to my requirement? Thank you in advance! (below is how I called BAPI_ADDRESSORG_CHANGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          obj_type     = lc_kna1&lt;/P&gt;&lt;P&gt;          obj_id       = l_kunnr&lt;/P&gt;&lt;P&gt;          context      = lc_0001&lt;/P&gt;&lt;P&gt;          save_address = c_x&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          bapiad1vl    = t_bapiad1vl&lt;/P&gt;&lt;P&gt;          bapiad1vl_x  = t_bapiad1vl_x&lt;/P&gt;&lt;P&gt;          return       = x_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 03:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098444#M1508110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T03:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ADDRESSORG_CHANGE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098445#M1508111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks that in customer1 old data are remains.&lt;/P&gt;&lt;P&gt;In your case: let customer2 have District field blank. But if customer1 have this field not blank and you do not update this field - old value remains in this field.&lt;/P&gt;&lt;P&gt;So you must update &lt;STRONG&gt;all&lt;/STRONG&gt; fields from customer2 to customer1 (not only filled )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 04:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098445#M1508111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T04:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ADDRESSORG_CHANGE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098446#M1508112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customer1 also has no value for district before the program run. I do not know where the additional values were coming from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 06:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-addressorg-change-problem/m-p/7098446#M1508112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T06:26:48Z</dc:date>
    </item>
  </channel>
</rss>

