Create another BP based on an existing BP

Hi Gurus
For CRM 2007 I want to create a BP based on a the details of a BP selected by a user.
How would this be done? I haven't found any useful threads on this subject.
Thanks
Panduranga

Hi Panduranga,
Stephen is very right about this - there is no way to copy a business partner.
However, we have tried in the past to develop this functionality - and also the functionality to change the category after copying.This is some info that will help you while creating a copy program -
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.
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.
3. Be sure to call BAPI_TRANSACTION_COMMIT at the end to commit the data to the DB.
I hope this helps you.
Cheers,
Rishu.

Similar Messages

  • Create a universe based on multiple existing universes

    I have a BI 4 SP02 installed in Windows OS. I am using Information design tool to create data foundation to connect to multiple data sources. Instead of using multiple database connection, can I create a data foundation to connect to multiple universes. My intention is not to create new universe based on multiple databases. Instead, I want to combine two existing universes as one and create report from that. Is it possible to do? if so, may I know how to do that?
    Thank you

    Hi
    If you want to combine two universes and make a report of it, it is possible by universe linking concept.
    If you have two universes for example, then these two universes have to be linked by using any of these two methods.
    1. Add link
    2. Include link
    Add Link : Complete reusing of an existing universe in the current universe.
    Steps
    1. File > parameters > link tab> Add link> browse for the universe> open > ok.
    Then make the join between the common object.
    Save and export.
    Include link: Partially reusing of the existing in the current universe with few modifications.
    Steps
    1.File > parameters > link tab> Include link> browse for the universe> open > ok.
    Hope it helps.

  • Create another table based on data from table above

    Hi all am using EJB 3.0 as technology.
    I have a table where user insert records.
    The field are as below
    TableId, projectId, TaskId, TOdate, duration, comments.
    I need to traverse this table and create another table that will display duration perday.
    for example
    Monday Tuesday Wednesday Thursday Friday
    6hr 8hr 7hr 8hr 9hr
    Thank you for your help regards
    Lutchumaya

    How-to information added to the example page.
    I experimented (not altogether to my satisfaction) with APEX 4.0 sub-regions which won't be usable anywhere else at present, so haven't said anything about region layout. In earlier versions you could use 2 or 3 regions with suitable choices of region templates according to your preference.

  • How to create a chart based on an existing report by passing variables?

    Hi,
    I have created a report (REP01). I've put a link on a column (table_name), on clicking it takes to another interactive report (REP02) that use table_name as filter.
    Now, I want to create a flash chart (Chart02) on this page of second report which refresh automatically based on the selection. I am running APEX 4.0.2 so flash chart is not an issue.
    My question is, how can I pass the parameters (table-name etc.) to the chart(chart02) so that it will refresh according to the criteria of the first report (REP01).
    Help is appreciated.
    Thanks
    Tarun
    Edited by: tarunsh on Jun 21, 2011 5:56 AM

    In the first one I used the link functionality and pass parameter as IR_...
    But I can't see how to set them up for chart or pass them to chart.
    If you explain it how, it'd be helpful.

  • Can we create a monitor based on an existing rule in SCOM?

    We see the built-in rule "Collect Buffer cache hit ratio" under "SQL 2008 DB Engine". And it is apparatently a collect type of rules and by default it doesn't generate any alert if the buffer cache hit ratio is lower than our threshold. Is there any way we can create a custom monitor based on this built-in rules so we can get alerts for the low ratio?

    Sure, you should be able to author a monitor that looks at this performance counter (assuming it's a performance counter in SQL) and generate an alert if it's above a particular threshold. Essentially the new monitor would look at the counter independently
    from the rule that's there already....
    This does not answer the question if the Collection rule is not based on a Perfmon counter.  One such example is Total messages in queue for the Microsoft Message Queuing management packs.  What I would like to do is set a static threshold based on
    the data already collected by the "Collect Total Messages in All Queues" rule.  This rule is based on a script, not a perf mon counter.
    Is there a way to monitor the data that has already been collected with a static threshold, without building a separate collection rule and monitor?
    dsloyer

  • How to create a campaign based on a template using the REST API

    Hi CodeIt-ers,
    I'm using the REST API to create campaigns in Eloqua 10, all works well except for 1 thing: I can't seem to create a campaign based on an existing Campaign template.
    Based on the documentation on REST API - Accessing Campaigns I've tried using "sourceTemplateId" (code snippet below) but that did not do the trick.
    Does that functionality simply not work or am I missing something?
    Thanks!
    Ferry
    $campaign_data = new Campaign(); 
    $campaign_data->sourceTemplateId='442';
    $campaign_data->folderId='1137';
    $campaign_data->currentStatus='draft';

    Hi Richard,
    Unfortunately no. I reached out to support, they informed me "sourceTemplateId" could not be used to create new campaigns based on a template, instead they advised to use the "Elements " property as shown in this example: Eloqua REST API - Create a Campaign with a Segment and Email
    Thanks
    Ferry

  • Create frameset based on an existing template

    I'm using DW CS4.  I'm using a template with header, sidebar and main content divs for most of my pages.  But I want one page to be a frameset with the same header and sidebar but the main content is a frame that changes based on selections from the sidebar.  I want it based on my existing template so when I update the header in the template, my frameset page gets updated.  I can't just save the header in the library because it contains a spry menu.  Any suggestions?

    I suggest to create a css based layout on your existing template. Here is a tutorial on the pros and cons of using frames.
    Make a common page with a header, sidebar and content and copy that to use in the rest. You can define background images for each so if you want to update your banner, you can do that in your css
    Here is a tutorial on css based layout

  • Creating multiple tables based on existing tables

    Hi,
    I have to create 60 tables based on existing 60 tables. Instead of creating one by one how can I create all 60 at once.
    The current 60 tables are named FY11_ACC1, FY11_ACC2, FY11_SALES1, FY11_SALES2 ...... , but all 60 tables start with FY11. I need to create the same structured tables but with FY12 names like FY12_ACC1, FY12_ACC2, FY12_SALES1, FY12_SALES2 .....
    Currently I am using "create table FY12_ACC1 as select * from FY11_ACC1 where 1=0". Is there a way I can write all of them in one query?
    Thanks for your time and help.

    ssk1974 wrote:
    Hi,
    I have to create 60 tables based on existing 60 tables. Instead of creating one by one how can I create all 60 at once.
    The current 60 tables are named FY11_ACC1, FY11_ACC2, FY11_SALES1, FY11_SALES2 ...... , but all 60 tables start with FY11. I need to create the same structured tables but with FY12 names like FY12_ACC1, FY12_ACC2, FY12_SALES1, FY12_SALES2 .....
    Currently I am using "create table FY12_ACC1 as select * from FY11_ACC1 where 1=0". Is there a way I can write all of them in one query?
    Thanks for your time and help.Well, i'm assuming FY = Fiscal Year and 11 = 2011 and then ACC1 = Account #1.
    From the sounds of things, your design isn't likely "correct'.
    If you'd care to delve in to the requirements a little bit ... what you have and what you need (business speak wise) there are no shortage of experts here that i'm sure would be happy to help you.
    If you're stuck with what you've got (or don't care to change your 'design') and all you care about is achieving that please disregard this message.

  • Best way to create a table based on another table

    Hello,
    I am trying to create a table based on another table with all the data in it. It has large data.
    create table <tablename> as select * from table1.
    Is this the best way of doing it or is there any other way. please advice.
    thanks

    I am suggested to create new table as
    create table <newtable> as
    select * from <oldtable> where rownum < 1;
    then
    alter table <newtable> compress;
    then
    insert /*+ append */ into <newtable> as select * from <oldtable>;
    but i getting an error saying missing values key words ora- 00926.
    please advice

  • Create a report based on another

    Hi,
    i've following question. I have a report A composed by an union of two queries.
    Example:
    Select X,Y from Subject Area UNION Select W,Z from Subject Area
    Is possible create another report which select any fields of the report A?
    Example:
    Select Y,Z from (select X,Y from Subject Area UNION Select W,Z from Subject Area) where ....
    Thanks

    The problem is that my union:
    Select x,y from Subject Area (A) UNION Select z,w from Subject Area (B)
    retrieves following data:
    Jan 3500€
    Jan cast(null as int)
    Feb 1100€
    Feb cast(null as int).
    As you see it duplicates each month. First row is the real row, the second is a dummy row. The part (A) of union retrieves real rows, indeed part (B) retrieves dummy rows. In this way, because Jan, Feb, and so on are on x-axis of my chart, it is filled with all months of the year, even if for any months there aren't data in DB.
    Now, when i download data i see together real rows and dummy rows, so i woul'd filter so, dummy rows are suppressed. I thought to create another request like that in my previous post.

  • Check if element node exists then create another element

    Hi Everyone,
    I have element node in the Target structure. I need to create another node if 1st node has been created.
    Please let me know how should I do it.
    Thanks
    NPrabhu

    Hi,
    I need another node to occur.
    I need to check if item in the target is created. If yes then create item[1].
    Also I need to add another item above each item node to say which text it is.
    <ENGLISH_TEXTS>
       <item>
         <LINE>Catalog text jasdkajdlsk;k;</LINE>
       </item>
       <item>
         <LINE>ProductText asasdklkf;sdlfs' </LINE>
       </item>
    </ENGLISH_TEXTS>
    I want it to look like this
    <ENGLISH_TEXTS>
       <item>
         <LINE>Catalog text</LINE>
       </item>
       <item>
         <LINE>Catalog text jasdkajdlsk;k;</LINE>
       </item>
       <item>
         <LINE>Product text </LINE>
       </item>
       <item>
         <LINE>ProductText asasdklkf;sdlfs' </LINE>
       </item>
    </ENGLISH_TEXTS>
    Thanks

  • Createing Local DC based on Existing DC from NWDI Inactive DC's

    Friends,
    How do i create a Local Development Component from existing Development Component which is existed in NWDI Development Configuration perpective , inactive DC's?
    Thanks in adnvace.
    Pete

    Hi Peter,
    If I understood your question correctly, you want to create a local DC and it should be using the DC that exists in the NWDI track....
    DC can be created 2 ways...
    log into NWDI go to Local Development -> MyComponents-> right click and select create DC
    else in webdynpro perspetive select File -> New -> Development Component Project..
    This is how the Local DC will be created...
    Now expand the DC and DC Metadata-> DC Definition -> Used DCs -> right click select Add Used DCs..
    and add the DC that  exists in NWDI track

  • Create another table from existing table with distinct elements

    I have a table applying select clause on which gives following result.
    SQL> select *
    2 from BRANCH_MSTR;
    BRANCH_NO NAME
    B1 Vile Parle(HO)
    B2 Andheri
    B3 Churchgate
    B4 Sion
    B5 Borivali
    B6 Matunga
    B1 C.S.Pur
    B1 Shahidnagar
    B1 Shahidnagar
    I want to create another table ACCT_DTLS from this table which has only one column BRANCH_NO, but has only distinct elements.
    I tried this,
    SQL> create table ACCT_DTLS
    2 (BRANCH_NO)
    3 as
    4 select BRANCH_NO
    5 from BRANCH_MSTR;
    Table created.
    SQL> select 8
    2
    SQL> select *
    2 from ACCT_DTLS;
    BRANCH_NO
    B1
    B2
    B3
    B4
    B5
    B6
    B1
    B1
    B1
    9 rows selected.
    But its not working.

    HI Asit,
    try like this
    sql>create table table-name as (select distinct column-name from another-table);example
    SQL> create table temp_emp2 as (select distinct deptno from scott.emp);
    Table created.
    SQL> select * from temp_emp2;
        DEPTNO
            30
            20
            10

  • How to create a report based on a DataSet programatically

    I'm working on a CR 2008 Add-in.
    Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
    I have a dataset in memory, and want to create a new report in cr2008.
    The new report is a blank report (with no connection information).
    If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
    The report has no tables.
    So I must programmatically define the table definition in my blank report.
    I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
    internal class NewReportWorker : Worker
          public NewReportWorker(string reportFileName)
             : base(reportFileName)
    public override void Process()
             DatabaseController databaseController = ClientDoc.DatabaseController;
             Table table = new Table();
             string tabelName = "Table140";
             table.Name = tabelName;
             table.Alias = tabelName;
             table.QualifiedName = tabelName;
             table.Description = tabelName;
             var fields = new Fields();
             var dbField = new DBField();
             var fieldName = "ID";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             dbField = new DBField();
             fieldName = "IDLEGITIMATIEBEWIJS";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             // More code for more tables to add.
             table.DataFields = fields;
             //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
             //   new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
             //info.Attributes.Add("Databse DLL", "xxx.dll");
             //table.ConnectionInfo = info;
             // Here an error occurs.
             databaseController.AddTable(table, null);
             ReportDoc.SetDataSource( [MyFilledDataSet] );
             //object path = @"d:\logfiles\";
             //ClientDoc.SaveAs("test.rpt", ref path, 0);
    The object ClientDoc referes to a ISCDReportClientDocument in a base class:
       internal abstract class Worker
          private ReportDocument _ReportDoc;
          private ISCDReportClientDocument _ClientDoc;
          private string _ReportFileName;
          public Worker(string reportFileName)
             _ReportFileName = reportFileName;
             _ReportDoc = new ReportDocument();
             // Load the report from file path passed by the designer.
             _ReportDoc.Load(reportFileName);
             // Create a RAS Document through In-Proc RAS through the RPTDoc.
             _ClientDoc = _ReportDoc.ReportClientDocument;
          public string ReportFileName
             get
                return _ReportFileName;
          public ReportDocument ReportDoc
             get
                return _ReportDoc;
          public ISCDReportClientDocument ClientDoc
             get
                return _ClientDoc;
    But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
    What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?

    Hi,
    Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
    //=========================================================================
    +           * the following two string values can be modified to reflect your system+
    +          ************************************************************************************************/+
    +          string mdb_path = "C:
    program files
    crystal decisions
    crystal reports 9
    samples
    en
    databases
    xtreme.mdb";    // path to xtreme.mdb file+
    +          string xsd_path = "C:
    Crystal
    rasnet
    ras9_csharp_win_datasetreport
    customer.xsd";  // path to customer schema file+
    +          // Dataset+
    +          OleDbConnection m_connection;                         // ado.net connection+
    +          OleDbDataAdapter m_adapter;                              // ado.net adapter+
    +          System.Data.DataSet m_dataset;                         // ado.net dataset+
    +          // CR variables+
    +          ReportClientDocument m_crReportDocument;          // report client document+
    +          Field m_crFieldCustomer;+
    +          Field m_crFieldCountry;+
    +          void CreateData()+
    +          {+
    +               // Create OLEDB connection+
    +               m_connection = new OleDbConnection();+
    +               m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
    +               // Create Data Adapter+
    +               m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
    +               // create dataset and fill+
    +               m_dataset = new System.Data.DataSet();+
    +               m_adapter.Fill(m_dataset, "Customer");+
    +               // create a schema file+
    +               m_dataset.WriteXmlSchema(xsd_path);+
    +          }+
    +          // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
    +          // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
    +          void AddDataSourceUsingDataSet(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               // add a datasource+
    +               DataSetConverter.AddDataSource(rcDoc, data);+
    +          }+
    +          // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
    +          // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
    +          // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
    +          // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
    +          // above.+
    +          void AddDataSourceUsingSchemaFile(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               string schema_file_name,          // xml schema file location+
    +               string table_name,                    // table to be added+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               PropertyBag crLogonInfo;               // logon info+
    +               PropertyBag crAttributes;               // logon attributes+
    +               ConnectionInfo crConnectionInfo;     // connection info+
    +               CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
    +               // database table+
    +               // create logon property+
    +               crLogonInfo = new PropertyBag();+
    +               crLogonInfo["XML File Path"] = schema_file_name;+
    +               // create logon attributes+
    +               crAttributes = new PropertyBag();+
    +               crAttributes["Database DLL"] = "crdb_adoplus.dll";+
    +               crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
    +               crAttributes["QE_ServerDescription"] = "NewDataSet";+
    +               crAttributes["QE_SQLDB"] = true;+
    +               crAttributes["QE_LogonProperties"] = crLogonInfo;+
    +               // create connection info+
    +               crConnectionInfo = new ConnectionInfo();+
    +               crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
    +               crConnectionInfo.Attributes = crAttributes;+
    +               // create a table+
    +               crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
    +               crTable.ConnectionInfo = crConnectionInfo;+
    +               crTable.Name = table_name;+
    +               crTable.Alias = table_name;+
    +               // add a table+
    +               rcDoc.DatabaseController.AddTable(crTable, null);+
    +               // pass dataset+
    +               rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
    +          }+
    +          void CreateReport()+
    +          {+
    +               int iField;+
    +               // create ado.net dataset+
    +               CreateData();+
    +               // create report client document+
    +               m_crReportDocument = new ReportClientDocument();+
    +               m_crReportDocument.ReportAppServer = "127.0.0.1";+
    +               // new report document+
    +               m_crReportDocument.New();+
    +               // add a datasource using a schema file+
    +               // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
    +               // for more information, refer to comments on these methods.+
    +               AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
    +                              +
    +               // get Customer Name and Country fields+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               // add Customer Name and Country fields+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
    +               // view report+
    +               crystalReportViewer1.ReportSource = m_crReportDocument;+
    +          }+
    +          public Form1()+
    +          {+
    +               //+
    +               // Required for Windows Form Designer support+
    +               //+
    +               InitializeComponent();+
    +               // Create Report+
    +               CreateReport();+
    +               //+
    +               // TODO: Add any constructor code after InitializeComponent call+
    +               //+
    +          }+//=========================================================================

  • Is there a way to create a collection based on the "previous import"?

    is there a way to create a collection based on the "previous import"? that would make it easy to mobile sync the last import to my ipad, and do further picking/rejecting while away from my laptop.

    well, yes, of course i could do it that way. i guess i wasn't specific enough. is there a way to create a smart collection, with the photos in the "previous import" as members of the smart collection.  earlier i mentioned about using this smart collection to mobile sync with my ipad, to do further flagging.
    so my intention, use a smart collection to mobile sync with my ipad, and the smart collection to include the photos from my previous import.
    i guess another way to ask the question, is there a way to create a smart collection, by using some rule or condition in the smart collection, to automatically include previous import photos.
    the documentation says that "previous import" is a collection, even though it shows up in the catalogue side bar section. but i see no way to choose that collection when making a smart collection.
    jd

Maybe you are looking for

  • Is there any way I can request admin to delete my own thread?

    Hi, Is there any way I can request admin to delete my own thread?

  • WLS 6.1 SP2, problem starting Struts

    Hi,           We have recently upgraded our Weblogic Server from 6.1(no service pack) to           6.1 SP2. Now the problem is when I access a jsp page in my web application,           I get this nasty error:           <Feb 20, 2002 9:10:24 AM SGT> <

  • I can t sink movies in my ipod classic

    Hello , I can t download a movie that I v just bought in  my ipod classic 160 Gb. I have a lot of space available but my computer screen say that I can t download a movie in my ipod. Can you help ? thanks.

  • Does Access Connections support 450Mbps?

    Does anyone know if Access connections support 450Mbps? I've Intel 5350 wireless adapter in T400 . In the connection profile, the status of the adapter show the speed only upto 300Mbps. I've Access Connections ver 5.85 installed on Windows Visat Busi

  • Master data/text of characteristic 0MATERIAL already deleted

    Dear BW Experts:                 I'm getting this error message when I tried an extraction into an infocube. "Master data/text of characteristic 0MATERIAL already deleted" Before the extraction, I've loaded the characteristic 0MATERIAL succesfully. C