<?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 Changing customer master using sd_customer_maintain_all function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730403#M897846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I will be thankful if somebody can explain me how to change customer master using function module -sd_customer_maintain_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 12:20:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T12:20:31Z</dc:date>
    <item>
      <title>Changing customer master using sd_customer_maintain_all function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730403#M897846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I will be thankful if somebody can explain me how to change customer master using function module -sd_customer_maintain_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730403#M897846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing customer master using sd_customer_maintain_all function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730404#M897847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
i_kna1 = i_kna1 " General part
i_knb1 = i_knb1 " Company code details
i_knvv = i_knvv " Sales area info
i_bapiaddr1 = i_bapiaddr1 " Address
pi_postflag = pi_postflag " X=Post document
IMPORTING
e_kunnr = e_kunnr. "Customer.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to foll links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://abaplovers.blogspot.com/2008/03/create-customer-sdcustomermaintainall.html" target="test_blank"&gt;http://abaplovers.blogspot.com/2008/03/create-customer-sdcustomermaintainall.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730404#M897847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing customer master using sd_customer_maintain_all function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730405#M897848</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 use the function SD_CUSTOMER_MAINTAIN_ALL for change a customer data. But I have a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I pass the parameters I_KNA1 and I_BAPIADDR1, becouse in my program is posible change the general information, and the direction information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And pass one 'X' in I_MAINTAIN_ADDRESS_BY_KNA1, and other one in PI_POSTFLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When execute the program. the direction information is changed, but the general information is deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM KNA1 WHERE KUNNR = IM_CUSTOMER-KUNNR.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM KNA1 WHERE KUNNR = IM_CUSTOMER-KUNNR.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING KNA1 TO I_KNA1.&lt;/P&gt;&lt;P&gt;    I_KNA1-MANDT = SY-MANDT.&lt;/P&gt;&lt;P&gt;    I_KNA1-KUNNR = IM_CUSTOMER-KUNNR.&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-NAME1 IS INITIAL.&lt;/P&gt;&lt;P&gt;      I_KNA1-NAME1 = IM_CUSTOMER-NAME1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-NAME2 IS INITIAL.&lt;/P&gt;&lt;P&gt;      I_KNA1-NAME2 = IM_CUSTOMER-NAME2.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-NAME3 IS INITIAL.&lt;/P&gt;&lt;P&gt;      I_KNA1-NAME3 = IM_CUSTOMER-NAME3.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-SORT1 IS INITIAL.&lt;/P&gt;&lt;P&gt;      I_KNA1-SORTL = IM_CUSTOMER-SORT1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-TEL_NUMBER IS INITIAL.&lt;/P&gt;&lt;P&gt;      I_KNA1-TELF1 = IM_CUSTOMER-TEL_NUMBER.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE KTOKD FROM KNA1 INTO I_KNA1-KTOKD&lt;/P&gt;&lt;P&gt;           WHERE KUNNR = IM_CUSTOMER-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT IM_CUSTOMER-STREET IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-HOUSE_NUM1 IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-HOUSE_NUM2 IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-CITY1 IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-POST_CODE1 IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-COUNTRY IS INITIAL OR&lt;/P&gt;&lt;P&gt;       NOT IM_CUSTOMER-REGION IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Pass address values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SELECT SINGLE ADRNR FROM KNA1 INTO I_BAPIADDR1-ADDR_NO&lt;/P&gt;&lt;P&gt;             WHERE KUNNR = IM_CUSTOMER-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-STREET = IM_CUSTOMER-STREET.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-HOUSE_NO = IM_CUSTOMER-HOUSE_NUM1.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-HOUSE_NO2 = IM_CUSTOMER-HOUSE_NUM2.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-CITY = IM_CUSTOMER-CITY1.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-POSTL_COD1 = IM_CUSTOMER-POST_CODE1.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-COUNTRY = IM_CUSTOMER-COUNTRY.&lt;/P&gt;&lt;P&gt;      I_BAPIADDR1-REGION = IM_CUSTOMER-REGION.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Call the standart BAPI, to change customer data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_KNA1                              = I_KNA1&lt;/P&gt;&lt;P&gt;        I_BAPIADDR1                         = I_BAPIADDR1&lt;/P&gt;&lt;P&gt;        I_MAINTAIN_ADDRESS_BY_KNA1          = 'X'&lt;/P&gt;&lt;P&gt;        PI_POSTFLAG                         = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       PI_CAM_CHANGED                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        E_KUNNR                             = E_KUNNR&lt;/P&gt;&lt;P&gt;        O_KNA1                              = O_KNA1&lt;/P&gt;&lt;P&gt;        E_SD_CUST_1321_DONE                 = E_SD_CUST_1321_DONE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;               WAIT          = 'X'&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;               RETURN        = IT_RETURN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730405#M897848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-19T14:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing customer master using sd_customer_maintain_all function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730406#M897849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the same problem, when I try to update some customer information, the other general are deleted. The parameters are the same. X' in I_MAINTAIN_ADDRESS_BY_KNA1, and other one in PI_POSTFLAG.&lt;/P&gt;&lt;P&gt;Thanks for answers or suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 11:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-customer-master-using-sd-customer-maintain-all-function-module/m-p/3730406#M897849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-28T11:57:40Z</dc:date>
    </item>
  </channel>
</rss>

