<?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 Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522978#M1655972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will suggest you try with sd_customer_maintain_all .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 03:46:54 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2012-02-15T03:46:54Z</dc:date>
    <item>
      <title>Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522976#M1655970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue while Updating an Email in XD02 Transaction  using BAPI_ADDRESSORG_GETDETAIL and BAPI_ADDRESSORG_CHANGE. I am able to update only the email not the notes.Can Some tell me where i had went wrong and If you can please expalin me the 3   bapiadsmtp,bapicomrem,bapiadsmtx tables used for this.&lt;/P&gt;&lt;P&gt;My input is LIFNR and Remark(Notes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE t_bapicomrem INTO f_bapicomrem
                WITH KEY comm_notes = gf_file-remarks.
        READ TABLE t_bapiadsmtp INTO f_bapiadsmtp
                   WITH KEY  consnumber = f_bapicomrem-consnumber.
        IF f_bapicomrem-comm_notes EQ  gf_file-remarks.
          f_bapiadsmtp-e_mail = gf_file-smtp_addr.
          MODIFY TABLE t_bapiadsmtp FROM f_bapiadsmtp.
          f_bapiadsmtx-e_mail     = 'X'.
          f_bapiadsmtx-updateflag = 'U'.
          APPEND f_bapiadsmtx TO t_bapiadsmtx.
        ELSE.
          f_bapiadsmtp-e_mail      = gf_file-smtp_addr.
          f_bapicomrem-comm_notes  =  gf_file-remarks.
          f_bapicomrex-comm_notes  = gf_file-remarks.
          f_bapiadsmtx-e_mail     = 'X'.
          f_bapiadsmtx-updateflag = 'I'.
          f_bapicomrex-LANGU      = 'EN'.
          f_bapicomrex-LANGU_ISO  = 'EN'.
          f_bapicomrex-updateflag = 'I'.
          APPEND f_bapiadsmtp TO t_bapiadsmtp.
          APPEND f_bapicomrem TO t_bapicomrem.
          APPEND f_bapiadsmtx TO t_bapiadsmtx.
        ENDIF.
        clear : f_bapicomrem,
                f_bapicomrem,
                f_bapiadsmtx.
      ENDLOOP.
  CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
        EXPORTING
          obj_type       = 'LFA1'
          obj_id         = lv_objid
          save_address   = 'X'
        IMPORTING
          address_number = lv_adrnr
        TABLES
          bapiadsmtp     = t_bapiadsmtp
          bapicomrem     = t_bapicomrem
          bapiadsmt_x    = t_bapiadsmtx
          bapicomre_x    = t_bapicomrex
          return         = t_ret.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 15:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522976#M1655970</guid>
      <dc:creator>VijayCR</dc:creator>
      <dc:date>2012-02-14T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522977#M1655971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is really the issue, but shouldn't you say   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;f_bapicomrex-comm_notes  = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;f_bapicomrex-comm_notes  = gf_file-remarks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If for some reason this FM doesn't work (although it really should), take a look at [this|http://forums.sdn.sap.com/thread.jspa?threadID=2124356] thread... you can probably use function module SD_CUSTOMER_MAINTAIN_ALL. The last post talks about the necessary calling details for structure KNVK where the notes are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 18:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522977#M1655971</guid>
      <dc:creator>Tamas_Hoznek</dc:creator>
      <dc:date>2012-02-14T18:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522978#M1655972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will suggest you try with sd_customer_maintain_all .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 03:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522978#M1655972</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-02-15T03:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522979#M1655973</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;After fetching the address details, as you want to update address details, first delete the existing data by passing  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;updateflag = 'D'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then  move the required data to respective fields  and then pass       updateflag = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bapicomre_x-langu = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BAPICOMREM-ERRORFLAG = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't   use these  fields            bapicomre_x-langu_iso&lt;/P&gt;&lt;P&gt;                                                  BAPICOMREM-langu_iso&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still any issues , revert to me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Parupelly on Feb 15, 2012 11:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 06:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522979#M1655973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-15T06:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522980#M1655974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parupally,&lt;/P&gt;&lt;P&gt;          Can you please send me the full code if you have with you?So that i can understand clearly?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 07:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522980#M1655974</guid>
      <dc:creator>VijayCR</dc:creator>
      <dc:date>2012-02-22T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522981#M1655975</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;Once go through  function module BAPI_ADDRESSORG_CHANGE documentation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 08:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522981#M1655975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert Email Using BAPI_ADDRESSORG_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522982#M1655976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Make few changes in the code you have given,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code piece given by you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;f_bapiadsmtp-e_mail      = gf_file-smtp_addr.
          f_bapicomrem-comm_notes  =  gf_file-remarks.
          f_bapicomrex-comm_notes  = gf_file-remarks.
          f_bapiadsmtx-e_mail     = 'X'.
          f_bapiadsmtx-updateflag = 'I'.
          f_bapicomrex-LANGU      = 'EN'.
          f_bapicomrex-LANGU_ISO  = 'EN'.
          f_bapicomrex-updateflag = 'I'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this instead of this piece&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;f_bapiadsmtp-e_mail      = gf_file-smtp_addr.
          f_bapicomrem-comm_notes  =  gf_file-remarks.
          f_bapicomrex-comm_notes  = 'X'.
          f_bapiadsmtx-e_mail     = 'X'.
          f_bapiadsmtx-updateflag = 'I'.
        * f_bapicomrex-LANGU      = 'EN'. " This should be either X or ' ' set this only if you change the language.
        * f_bapicomrex-LANGU_ISO  = 'EN'. " This should be either X or ' ' set this only if you change the language.
          f_bapicomrex-updateflag = 'I'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 10:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-or-insert-email-using-bapi-addressorg-change/m-p/8522982#M1655976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T10:00:50Z</dc:date>
    </item>
  </channel>
</rss>

