<?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: Transaction code  BP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571729#M1270969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no option in the standard to create a BP as a reference to another BP. You would need to implement this functionality separately by copying the new BP from the old BP using a Z report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how you can copy the BP : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The easiest way is to use APIs. Start by calling BUPA_CENTRAL_GET_DETAIL usign the BP number. THis will give you all the central data for the BP - e.g. name, etc. Now, merely feed the output of this module into the module BUPA_CREATE_FROM_DATA. This will create a new BP with the same data of the old BP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now that the main BP is ready, you need to start copying the individual datasets - addresses, bank details, roles, Id, industry,etc. This is tricky - the ADD apis - BUPA_ADDRESS_ADD, BUPA_ROLE_ADD, etc can only create one record in a call. So, you need to first get the data of the reference BP using the GET_DETAIL api e.g. : BUPA_ADDRESS_GET_DETAIL, then loop at each returned record, and pass that into the correspinding ADD BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Be sure to call BAPI_TRANSACTION_COMMIT at the end to commit the data to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please refer to thread [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7517407"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has some discussions on a similar point, so it might provide some more concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rishu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 06:45:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-20T06:45:22Z</dc:date>
    <item>
      <title>Transaction code  BP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571727#M1270967</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;we are using the transaction code "BP" for business partner creation and unlike XD01 we do not have the functionality of "create with reference" option while creating a new partner as part of standard SAP here.&lt;/P&gt;&lt;P&gt;Can anybody help in any stategy on how to implement this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas will be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 04:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571727#M1270967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T04:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code  BP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571728#M1270968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can not create the BP wrt the other here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/CABP/CABP.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/CABP/CABP.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 05:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571728#M1270968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code  BP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571729#M1270969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no option in the standard to create a BP as a reference to another BP. You would need to implement this functionality separately by copying the new BP from the old BP using a Z report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how you can copy the BP : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The easiest way is to use APIs. Start by calling BUPA_CENTRAL_GET_DETAIL usign the BP number. THis will give you all the central data for the BP - e.g. name, etc. Now, merely feed the output of this module into the module BUPA_CREATE_FROM_DATA. This will create a new BP with the same data of the old BP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now that the main BP is ready, you need to start copying the individual datasets - addresses, bank details, roles, Id, industry,etc. This is tricky - the ADD apis - BUPA_ADDRESS_ADD, BUPA_ROLE_ADD, etc can only create one record in a call. So, you need to first get the data of the reference BP using the GET_DETAIL api e.g. : BUPA_ADDRESS_GET_DETAIL, then loop at each returned record, and pass that into the correspinding ADD BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Be sure to call BAPI_TRANSACTION_COMMIT at the end to commit the data to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please refer to thread [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7517407"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has some discussions on a similar point, so it might provide some more concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rishu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-bp/m-p/5571729#M1270969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:45:22Z</dc:date>
    </item>
  </channel>
</rss>

