<?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 Customer Address using CMD_EI_API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440889#M1928272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dug a little further and I see that in some cases the system throws errors for certain indicators so I would switch the flag under address to 'M' and see if that works.&amp;nbsp; I know from my case that 'U' works at the customer header level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 21:30:42 GMT</pubDate>
    <dc:creator>Ryan-Crosby</dc:creator>
    <dc:date>2015-12-16T21:30:42Z</dc:date>
    <item>
      <title>Update Customer Address using CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440886#M1928269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Hello Experts!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I need to update customer zip codes to ZIP+4. We are retrieving validated zip codes via a web service, but I am having trouble updating the customer addresses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have tried using BAPI_ADDRESSORG_CHANGE but it only updates ADRC and does not update the corresponding address fields in KNA1 until you manually save the changes in XD02. I would really rather not resort to using a BDC for XD02.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have tried using SD_CUSTOMER_MAINTAIN_ALL but I was getting exception KNA1_INCOMPLETE indicating my KNA1 structure was not complete even though I had just loaded it using a SELECT statement prior to the call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;In some of my searches, I saw references to the CMD_EI_API class MAINTAIN, MAINTAIN_BAPI, and MAINTAIN_DIRECT_INPUT methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The associated IS_MASTER_DATA structure contains several data modification indicators:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The HEADER-OBJECT_TASK field appears to want: I)nsert, U)pdate, M)odify, or C)urrent Status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The CENTRAL_DATA-ADDRESS-TASK field appears to want: I)nsert, U)pdate, D)elete, or M)odify.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The CENTRAL_DATA-ADDRESS-DATAX structure contains flags for each field to be updated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif;"&gt;With both TASK fields set to "U", the ES_MESSAGE_DEFECTIVE parameter returns “E019(CMD_API) Field: TASK, value: is not permitted”. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif;"&gt;If I blank out the CENTRAL_DATA-ADDRESS-TASK field, I get “&lt;SPAN style="font-size: 13.3333px;"&gt;E019(CMD_API) Field: TASK, value: is not permitted”.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If I blank out the HEADER-OBJECT_TASK field, I get “E019(CMD_API) Field: OBJECT_TASK, value: is not permitted”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If I blank out both, I still get &lt;SPAN style="font-size: 13.3333px;"&gt;“E019(CMD_API) Field: OBJECT_TASK, value: is not permitted”.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Any assistance you can provide would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Here is a snapshot of my test code…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;DATA:&lt;BR /&gt; lw_kunnr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE kunnr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt; is_master_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_main,&lt;BR /&gt; es_master_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_main,&lt;BR /&gt; es_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cvis_message,&lt;BR /&gt; wa_customers&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_extern,&lt;BR /&gt; lt_sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_sales_t,&lt;BR /&gt; wa_sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIKE LINE OF lt_sales,&lt;BR /&gt; lw_master_data_correct&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_main,&lt;BR /&gt; lw_message_correct&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cvis_message,&lt;BR /&gt; lw_master_data_defective&amp;nbsp; TYPE cmds_ei_main,&lt;BR /&gt; lw_message_defective&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cvis_message.&lt;BR /&gt; &lt;BR /&gt;FIELD-SYMBOLS:&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_extern,&lt;BR /&gt; &amp;lt;lf_gen&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE cmds_ei_central_data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&amp;nbsp; lw_kunnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'0001000011'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;EM style="font-family: 'Arial monospaced for SAP'; font-size: 13.3333px;"&gt;"use an existing customer number in your system&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;EM&gt;* set up the control parameters&lt;/EM&gt;&lt;BR /&gt; wa_customers-header-object_instance-kunnr = lw_kunnr.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;"customer number&lt;/EM&gt;&lt;BR /&gt; wa_customers-header-object_task = 'U'.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;"update customer&lt;/EM&gt;&lt;BR /&gt; APPEND wa_customers TO is_master_data-customers.&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;* read the customer&lt;/EM&gt;&lt;BR /&gt; cmd_ei_api_extract=&amp;gt;get_data( EXPORTING is_master_data = is_master_data&lt;BR /&gt; IMPORTING es_master_data = es_master_data ).&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;* read the customer information&lt;/EM&gt;&lt;BR /&gt; READ TABLE es_master_data-customers ASSIGNING &amp;lt;lf_cst&amp;gt; INDEX 1.&lt;BR /&gt; CHECK sy-subrc EQ 0.&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;* set the modification control flags&lt;/EM&gt;&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-header-object_task&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'U'.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;"update customer&lt;/EM&gt;&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-central_data-address-task = 'U'.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;"update address&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;* just for testing, add or remove the +4&lt;/EM&gt;&lt;BR /&gt; IF STRLEN( &amp;lt;lf_cst&amp;gt;-central_data-address-postal-data-postl_cod1 ) EQ 5.&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-central_data-address-postal-data-postl_cod1 = '95678-1234'.&lt;BR /&gt; ELSE.&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-central_data-address-postal-data-postl_cod1 = '95678'.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;EM style="font-family: 'Arial monospaced for SAP'; font-size: 13.3333px;"&gt;* set the corresponding field changed and update flags&lt;/EM&gt;&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-central_data-address-postal-datax-postl_cod1 = 'X'.&lt;BR /&gt; &amp;lt;lf_cst&amp;gt;-central_data-address-postal-datax-updateflag = 'U'.&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;* update the customer&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp; CALL METHOD cmd_ei_api=&amp;gt;maintain_bapi&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_master_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = es_master_data&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; es_master_data_correct&amp;nbsp;&amp;nbsp; = lw_master_data_correct&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; es_message_correct&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lw_message_correct&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; es_master_data_defective = lw_master_data_defective&lt;/EM&gt;&lt;BR /&gt; &lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; es_message_defective&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lw_message_defective.&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial monospaced for SAP';"&gt;--------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif;"&gt;Once I can get the method to return a successful status in ES_MASTER_DATA_CORRECT or ES_MESSAGE_CORRECT, I will call the COMMIT to post the changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 20:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440886#M1928269</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2015-12-14T20:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update Customer Address using CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440887#M1928270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas, anybody?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440887#M1928270</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2015-12-16T20:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Customer Address using CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440888#M1928271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this in a past requirement to maintain partner contact data without any issues.&amp;nbsp; All of the flags that you are setting are consistent with how I was able to get it to work.&amp;nbsp; The only sticking point that I recall is that I did have trouble if I did not call the initialize method before executing the maintain_bapi method.&amp;nbsp; Maybe that is causing some trouble for you also since you are using the getter to read the customer data first.&amp;nbsp; Aside from that I would try to set a breakpoint on MESSAGE or a watchpoint when sy-msgnr = '019' and see where it stops so you can find what logic it is executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440888#M1928271</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2015-12-16T21:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update Customer Address using CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440889#M1928272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dug a little further and I see that in some cases the system throws errors for certain indicators so I would switch the flag under address to 'M' and see if that works.&amp;nbsp; I know from my case that 'U' works at the customer header level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440889#M1928272</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2015-12-16T21:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update Customer Address using CMD_EI_API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440890#M1928273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After setting a watchpoint on MESSAGE, it stopped in the &lt;SPAN style="font-size: 13.3333px;"&gt;CHECK_EXISTENCE method of the &lt;/SPAN&gt;CMD_EI_API_MAP_STRUCTURE class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each subordinate data structure related to the customer &lt;SPAN style="font-size: 13.3333px;"&gt;retrieved by the CMD_EI_API_EXTRACT=&amp;gt;GET_DATA method&lt;/SPAN&gt;, if the CURRENT_STATE flag is blank and the associated table data is populated, the corresponding section of code is executed and an error message can occur if the TASK field is not set properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So unfortunately, rather than just setting CURRENT_STATE to blank to indicate nothing has changed, I also had to clear out the associated table data even though I did not need or want to change it, just so it would skip these sections of code. The beneficial side-effect was that it increased the efficiency tremendously!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cleared the CURRENT_STATE and associated table data fields in the following structures before calling the MAINTAIN method...&lt;/P&gt;&lt;P&gt;CENTRAL_DATA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDRESS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMUNICATION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PHONE, FAX, TTX, ..., &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAT_NUMBER, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TAX_GROUPING, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TAX_IND, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOADING, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTACT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREDITCARD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BANKDETAIL, &lt;/P&gt;&lt;P&gt;COMPANY_DATA, &lt;/P&gt;&lt;P&gt;SALES_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are similar related data structures in the VMD_EI_API MAINTAIN call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thinking the INITIALIZE method might be related to the MAINTAIN method, I also created a local &lt;SPAN style="font-size: 13.3333px;"&gt;CMD_EI_API &lt;/SPAN&gt;object variable and called the INITIALIZE method, and although it did not change the outcome, I left it in there as a good practice.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also found I needed to clear the associated tax jurisdiction code in case the changed address needed to redetermine it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Hope that helps anyone else needing to use these classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-customer-address-using-cmd-ei-api/m-p/11440890#M1928273</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2015-12-16T22:21:15Z</dc:date>
    </item>
  </channel>
</rss>

