<?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: SD_CUSTOMER_MAINTAIN_ALL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503107#M232752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used BDC to upload updated partner functions. I will send you code if i can find any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 06:14:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T06:14:26Z</dc:date>
    <item>
      <title>SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503102#M232747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this FM to insert partner functions after the creation of a customer. What are the required parameters for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the code i am using where KZ in the x_knvp is 'I'. It tries to update sometimes. But some times if there is an error it send to the user inbox even though sy-subrc = 0.  Is there any way i can check if its a valid kunn2 for the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PI_POSTFLAG             = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      E_SD_CUST_1321_DONE     = y_txt&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_XKNVP                 = xknvp_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      CLIENT_ERROR            = 1&lt;/P&gt;&lt;P&gt;      KNA1_INCOMPLETE         = 2&lt;/P&gt;&lt;P&gt;      KNB1_INCOMPLETE         = 3&lt;/P&gt;&lt;P&gt;      KNB5_INCOMPLETE         = 4&lt;/P&gt;&lt;P&gt;      KNVV_INCOMPLETE         = 5&lt;/P&gt;&lt;P&gt;      KUNNR_NOT_UNIQUE        = 6&lt;/P&gt;&lt;P&gt;      SALES_AREA_NOT_UNIQUE   = 7&lt;/P&gt;&lt;P&gt;      SALES_AREA_NOT_VALID    = 8&lt;/P&gt;&lt;P&gt;      INSERT_UPDATE_CONFLICT  = 9&lt;/P&gt;&lt;P&gt;      NUMBER_ASSIGNMENT_ERROR = 10&lt;/P&gt;&lt;P&gt;      NUMBER_NOT_IN_RANGE     = 11&lt;/P&gt;&lt;P&gt;      NUMBER_RANGE_NOT_EXTERN = 12&lt;/P&gt;&lt;P&gt;      NUMBER_RANGE_NOT_INTERN = 13&lt;/P&gt;&lt;P&gt;      ACCOUNT_GROUP_NOT_VALID = 14&lt;/P&gt;&lt;P&gt;      PARNR_INVALID           = 15&lt;/P&gt;&lt;P&gt;      BANK_ADDRESS_INVALID    = 16&lt;/P&gt;&lt;P&gt;      TAX_DATA_NOT_VALID      = 17&lt;/P&gt;&lt;P&gt;      NO_AUTHORITY            = 18&lt;/P&gt;&lt;P&gt;      COMPANY_CODE_NOT_UNIQUE = 19&lt;/P&gt;&lt;P&gt;      DUNNING_DATA_NOT_VALID  = 20&lt;/P&gt;&lt;P&gt;      KNB1_REFERENCE_INVALID  = 21&lt;/P&gt;&lt;P&gt;      CAM_ERROR               = 22&lt;/P&gt;&lt;P&gt;      OTHERS                  = 23.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 12:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503102#M232747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T12:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503103#M232748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea anyone why this does not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 16:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503103#M232748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503104#M232749</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 am also having the similar requirement. I have change a partner function from y2 to y1.&lt;/P&gt;&lt;P&gt;I tried with kz as 'D' first then with 'I' with the same kunn2. I am also getting error to my inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have found any solution , please forward it to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: vijay kanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503104#M232749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T07:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503105#M232750</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;In order to check customer number you should use &amp;lt;b&amp;gt;BAPI_CUSTOMER_EXISTENCECHECK&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;I had a look at the coding of the function module SD_CUSTOMER_MAINTAIN_ALL and it looks like that it compares old vs. new data and then sets the appropriate change indicator itself. Thus, you could try to fill T_YKNVP (old) with all current partner data and T_XKNVP (new) with the current partner data + new partner data.&lt;/P&gt;&lt;P&gt;In addition, in some cases I have seen that even if PI_POSTFLAG = 'X' it did not commit work. In this cases I set PI_POSTFLAG = ' ' and execute &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COMMIT WORK AND WAIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 08:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503105#M232750</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-21T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503106#M232751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello vijay! I was not able to figure it out as there are more checks to be made other than the customer existance for a partner function. so i used LSMW to upload. I guess it would be easier to use BDC if its an option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you were able to figure out the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;eda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 13:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503106#M232751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T13:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: SD_CUSTOMER_MAINTAIN_ALL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503107#M232752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used BDC to upload updated partner functions. I will send you code if i can find any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 06:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-customer-maintain-all/m-p/1503107#M232752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T06:14:26Z</dc:date>
    </item>
  </channel>
</rss>

