<?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>Question Re: BAPI/FM for adding new company code for business partner &amp;quot;BP&amp;quot; in Financial Management Q&amp;A</title>
    <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878078#M217992</link>
    <description>&lt;P&gt;Well I used the following function modules:&lt;/P&gt;&lt;P&gt;DMC_INCL_RETURN_SIF_CUSTOMER&lt;/P&gt;&lt;P&gt;Extend by organization levels&lt;/P&gt;&lt;P&gt;RFC_CVI_EI_INBOUND_MAIN&lt;/P&gt;&lt;P&gt;The package is:&lt;/P&gt;&lt;P&gt;MD_BP_MAINTAIN  - There are other options here&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 14:43:27 GMT</pubDate>
    <dc:creator>mmcisme1</dc:creator>
    <dc:date>2019-06-28T14:43:27Z</dc:date>
    <item>
      <title>BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaq-p/11878077</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt; I'm wondering is there any BAPI/FM for adding new company code for business partner "BP" ?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaq-p/11878077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-06-27T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878078#M217992</link>
      <description>&lt;P&gt;Well I used the following function modules:&lt;/P&gt;&lt;P&gt;DMC_INCL_RETURN_SIF_CUSTOMER&lt;/P&gt;&lt;P&gt;Extend by organization levels&lt;/P&gt;&lt;P&gt;RFC_CVI_EI_INBOUND_MAIN&lt;/P&gt;&lt;P&gt;The package is:&lt;/P&gt;&lt;P&gt;MD_BP_MAINTAIN  - There are other options here&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878078#M217992</guid>
      <dc:creator>mmcisme1</dc:creator>
      <dc:date>2019-06-28T14:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878079#M217993</link>
      <description>&lt;P&gt;Hi Michelle, I appreciate your kind support but i could not find FM with this name "DMC_INCL_RETURN_SIF_CUSTOMER"  &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878079#M217993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-01T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878080#M217994</link>
      <description>&lt;P&gt;we have standard classes to do this job.&lt;/P&gt;&lt;P&gt;vmd_ei_api --&amp;gt; method name as maintain_bapi for BP as vendor.&lt;/P&gt;&lt;P&gt;cmd_ei_api --&amp;gt; method name as maintain_bapi for BP as customer.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 18:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878080#M217994</guid>
      <dc:creator>chamuk</dc:creator>
      <dc:date>2019-07-01T18:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878081#M217995</link>
      <description>&lt;P&gt;Sorry about that RFC_CVI_EI_INBOUND_MAIN is the function module for both extend and create.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878081#M217995</guid>
      <dc:creator>mmcisme1</dc:creator>
      <dc:date>2019-07-01T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878082#M217996</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;c436ae948d684935a91fce8b976e5aa7&lt;/SPAN&gt;  no problem,&lt;BR /&gt;I used the function module RFC_CVI_EI_INBOUND_MAIN  and it works fine for adding new BP Role &lt;BR /&gt;But in case of  adding new company it does not work and returns this error "Task Insert is not supported for the existing customer"&lt;BR /&gt;although i can add new company easily for the same business partner  through "t.code BP ".&lt;BR /&gt;&lt;BR /&gt;here is the part of code  &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :IT_BP_GENERAL Type table of CVIS_BP_GENERAL,
 IT_BP_ROLE Type table of CVIS_BP_ROLE,
 CT_RETURN Type table of CVIS_BP_RETURN,
 IT_CUST_COMPANY Type table of CVIS_CUSTOMER_COMPANY,
 IT_CUST_GENERAL Type table of CVIS_CUSTOMER_GENERAL .&lt;BR /&gt;
DATA :wa_BP_GENERAL Type CVIS_BP_GENERAL,
 wa_BP_ROLE Type CVIS_BP_ROLE,
 wa_RETURN Type CVIS_BP_RETURN,
 wa_cust_COMPANY Type CVIS_CUSTOMER_COMPANY,
 wa_CUST_GENERAL Type CVIS_CUSTOMER_GENERAL .&lt;BR /&gt;
wa_bp_general-BPARTNER = wa_but000-PARTNER.
wa_bp_general-BPARTNERGUID = wa_but000-PARTNER_GUID.
wa_bp_general-OBJECT_TASK = 'U'.
wa_bp_general-RUN_ID = '1'.
append WA_BP_GENERAL to IT_BP_GENERAL.&lt;BR /&gt;
wa_BP_ROLE-DATA_KEY = p_roles.
wa_BP_ROLE-RUN_ID = '1'.
append wa_BP_ROLE to IT_BP_ROLE.&lt;BR /&gt;
wa_CUST_GENERAL-RUN_ID = '1'.
wa_CUST_GENERAL-KUNNR = wa_but000-PARTNER.
append wa_CUST_GENERAL to IT_CUST_GENERAL.&lt;BR /&gt;
wa_cust_COMPANY-BUKRS = S_COMP-low.
wa_cust_COMPANY-AKONT = s_SAKNR-LOW.
wa_cust_COMPANY-RUN_ID = '1'.
append wa_cust_COMPANY to IT_CUST_COMPANY.&lt;BR /&gt;
Break-point.&lt;BR /&gt;
CALL FUNCTION 'RFC_CVI_EI_INBOUND_MAIN'
 EXPORTING
 IV_DOCOMMIT = 'X'
* IV_CREATE_APPLOG =
* IV_SUPPRESS_TAXJUR_CHECK =
 TABLES
 IT_BP_GENERAL = IT_BP_GENERAL
 IT_BP_ROLE = IT_BP_ROLE
* IT_BP_INDUSTRY =
* IT_BP_IDENT_NUMBERS =
* IT_BP_BANK_DETAILS =
* IT_BP_TAX_NUMBER =
* IT_BP_TAX_NUMBER_COMMON =
* IT_BP_ADDRESS =
* IT_BP_ADDRESS_USAGE =
* IT_BP_ADDRESS_TELENO =
* IT_BP_ADDRESS_FAXNO =
* IT_BP_ADDRESS_EMAIL =
* IT_BP_ADDRESS_URI =
* IT_BP_RELATIONS =
* IT_CUST_GENERAL =
 IT_CUST_COMPANY = IT_CUST_COMPANY
* IT_CUST_SALES =
* IT_CUST_COMP_DUNNING =
* IT_CUST_SALES_FUNCTIONS =
* IT_CUST_TAX_INDICATOR =
* IT_CUST_GENERAL_VAT =
* IT_SUP_GENERAL =
* IT_SUP_COMPANY =
* IT_SUP_COMPANY_WTAX =
* IT_SUP_PURCHASING =
* IT_SUP_GENERAL_VAT =
 CT_RETURN = CT_RETURN
 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 15:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878082#M217996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-08T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878083#M217997</link>
      <description>&lt;P&gt;wa_bp_general-BPARTNERGUID = wa_but000-PARTNER_GUID.&lt;/P&gt;&lt;P&gt;I did not add the GUID - but I don't think that was the issue.&lt;/P&gt;&lt;P&gt;Are you including the leading 0s in your s_SAKNR-LOW and S_COMP-low?  &lt;/P&gt;&lt;P&gt;The other thing I can think of is did you check the run id?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;The new customer Smith &amp;amp; Co (RUN_ID 1) with his new default contact                          Mr. Smith (RUN_ID 2) shall be replicated via the RFC.&lt;/P&gt;&lt;P&gt;The following tables show the necessary entries to replicate both new                                                             Business Partners and the relationship between Smith &amp;amp; Co and Mr. Smith.
&lt;/P&gt;&lt;P&gt;Import table IT_BP_GENERAL:&lt;/P&gt;RUN ID BPPARTNER Category1 Smith &amp;amp; Co 2 (Organization)2  Mr. Smith  1 (Person)&lt;P&gt;Import table IT_BP_ROLE:&lt;/P&gt;RUN ID Data_Key1 FLCU01 (Customer)2 BUP001(Contact)&lt;P&gt;Import table IT_BP_RELATIONS :&lt;/P&gt;RUN ID PARTNER1 PARTNER2 RELAT_Category1 Smith &amp;amp; Co  Mr. Smith  BUR0011 Smith &amp;amp; Co …BUR001</description>
      <pubDate>Mon, 08 Jul 2019 15:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878083#M217997</guid>
      <dc:creator>mmcisme1</dc:creator>
      <dc:date>2019-07-08T15:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM for adding new company code for business partner "BP"</title>
      <link>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878084#M217998</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Are you including the leading 0s in your s_SAKNR-LOW and S_COMP-low?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The other thing I can think of is did you check the run id?
Example:
The new customer Smith &amp;amp; Co (RUN_ID 1) with his new default contact Mr. Smith (RUN_ID 2) shall be replicated via the RFC.
The following tables show the necessary entries to replicate both new Business Partners and the relationship between Smith &amp;amp; Co and Mr. Smith.
Import table IT_BP_GENERAL:
RUN ID BPPARTNER Category1 Smith &amp;amp; Co 2 (Organization)2 Mr. Smith 1 (Person)Import table IT_BP_ROLE:
RUN ID Data_Key1 FLCU01 (Customer)2 BUP001(Contact)Import table IT_BP_RELATIONS :
RUN ID PARTNER1 PARTNER2 RELAT_Category1 Smith &amp;amp; Co Mr. Smith BUR0011 Smith &amp;amp; Co …BUR001&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm not sure that i understood what you mean correctly.&lt;BR /&gt;I do not want to add relation, I want to add company code to existing business partner.&lt;BR /&gt;I assume that run ID is some number (index/id) to distinguish between business partners instances used only on program run time but it has no impact on the data base.&lt;/P&gt;&lt;P&gt;I think my problem related to "IT_CUST_COMPANY".&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 10:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/financial-management-q-a/bapi-fm-for-adding-new-company-code-for-business-partner-quot-bp-quot/qaa-p/11878084#M217998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-09T10:06:35Z</dc:date>
    </item>
  </channel>
</rss>

