To Create Opportunity Relationships Programatically

Hello Friends,
Here my requirement is to develop a report by which the relationships needto be builded.
I need to build below relations programatically to reflect in Relationship tab of Opportunity Transaction
                        i) One Source Opportunity to another Opportunity
                       ii) Source Opportunity to Sub-Opportuntiy
                       iii) Source Opportunity to Activity
                       iv)Lead to Opportunity.
On selection-screen I will have three fields a) Source Opportuntiy Number b) Type Of Linkage (Assigned, At Lower Level) c)Destination.
Could you pls share some pointers how to achieve this.Also please let me know if any BAPI's or Classes available in this regard.
Thank you.
Regards
VJ

Hi Kitcha,
I m not very much clear about what u required exactly but if u want to create Opportunity transaction with same Customer and other data i.e. from A to B and vice versa you can simply use Copy Control for transaction.
SPRO->Customer Relationship Management->Transactions->Basic Settings->Copying Control for Business Transactions
Regards,
DD's

Similar Messages

  • Create a Tool to create Opportunity.

    Hello All,
    We have two types of Opportunity A & B. Some times Users have to discontinute  Opportunity B and Create Opportunity A instead for the same customer .So just to make things easier they want  a Tool where we can automate the process of creating Opportunity B from A or vice versa.The main difference between them is that Opportunity B has territory Data.
    Can anyone confirm if we can create a tool for this.If yes can anyone please explain .
    thanks,
    Kitcha.

    Hi Kitcha,
    I m not very much clear about what u required exactly but if u want to create Opportunity transaction with same Customer and other data i.e. from A to B and vice versa you can simply use Copy Control for transaction.
    SPRO->Customer Relationship Management->Transactions->Basic Settings->Copying Control for Business Transactions
    Regards,
    DD's

  • Creating characteristic Relationship in IP

    Hi all,
    How do I create characteristic relationship in IP?
    I want to derive Employees based on certain Cost Center.
    This works well in BPS.
    But in IP, when I go to Characteristic Relatioship tab, there is no option/button to create a new relation.
    How do I do this?
    All help is highly appreciated.
    Thanks.
    Anand

    Did you try selecting other real time infoproviders. Do remember char-relationships can be created only for real-time cubes not for multiproviders or actual cubes.
    Also check the real time cube that u selected is set to plan mode in RSA1.
    If the problem is not solved, ask the basis team to look into it. probably a refesh to J2EE engine might solve the problem at times.

  • Creating a relationship between two tables  through configuration manager

    I've just created two tables in the underlying db, each with a primary key and established a primary key - foreign key relationship. I've also created a relationship through stellent and it shows up under the 'Relations' Tab.
    However, when I go to Information Fields > Field Info > Click on my Field > 'Edit' > Enable Option List and Configure > Use the view of one of the tables and click on Dependant Field , I don't see any Relationships defined. What could I have done wrong here?
    Thanks.

    ok...solved...followed metalink note 445363.1 for clarification on the right approach to creating Dependant Choice Lists (DCL).

  • Creating a relationship between one table and the PK in another

    Sorry the subject of this message is a bit vague. I'm not sure how to describe this problem in one sentence.
    So here's the issue: I've just created a new block on my form based on table2. Table2 contains t1_id which is the FK link to Table1.
    What I want is when one of the fields in Table2's block is changed and inserted, the t1_id is inserted in the applicable row. Essentially, I need :table2.t1_id to have the 'Copy From Item' property set at :table1.id
    I cannot seem to see where in designer this option is. I asked a friend and he said what I need to do is 'create a relationship between the two values in designer'. Huh? In the Table Definitions the FK is set for the two, so I'm not sure how to do this.
    Another problem, which I'm believing will be solved when this is, is that when the form loads, this new block, table2, is not automatically populated with the applicable values from the table.
    Thanks for any help. It's greatly appreciated!

    Do you mean that you want to create a Master-Detail Form using Designer?
    If yes, you need to define the entity usage from the Function Hierarchy Diagrammer, then attribute usage definition. Generate the module using Application Design Transformer. You need to define the Context so that master table's PK will be carried over to the detail table.

  • How to create the relationship between ESSBASE 11 and DM in OBIEE11

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok.
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • How to create the relationship between ESSBASE 11 and DM  in OBIEE 11G?

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • Issue while creating ADF Table programatically

    Hi,
    I am trying to create a table programatically...And i implemented like below:
                RichTable phoneTable = new RichTable();
                phoneTable.setEmptyText("No Phone Details yet");
                getContactPhone(contactObj.getPhone());
                phoneTable.setValue(contactObj.getPhone());
    // contactObj.getPhone() is a ArrayList<TelephoneBOD> in pojo Object...
    // Which is taken from a Object returned from DataControl Method (Captured in pageFlowScope)
                phoneTable.setVar("row");
                // Add Columns
                RichColumn column = new RichColumn();
                column.setHeaderText("Type");
                column.setId("phoneType");
                column.setAlign("right");
                column.setWidth("100");
                // Set output.
                RichOutputText output = new RichOutputText();
                output.setValue("#{row.phoneType}");
                // Add output into column.
                column.getChildren().add(output);
                // Add column into table.
                phoneTable.getChildren().add(column);When i try to implement like this i am getting fllowing error:
    popup:
    ZIP_STATE_FAILED
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2log:
    Caused By: java.io.NotSerializableException: org.ieee.internal.ws.proxy.conf.types.TelephoneBOD
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at java.util.ArrayList.writeObject(ArrayList.java:570)
         at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:239)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)I think this is happening because i am not serializing the object passing to Table. If this is the Reason.. How to serialize the object?
    Or i am missing something in the code?
    Thanks
    Thoom
    Edited by: User007 on Aug 31, 2011 1:47 PM
    Edited by: User007 on Aug 31, 2011 1:47 PM

    Thanks Timo.. for simple solution.
    Actually.. TelephoneBOD is auto-generated on creation of web service proxy from web service.
    I don't think.. updating those Java files directly is a best practice. Because they will be changing if there is any change in web service schema..
    You think there is any other way to do so?
    Thanks
    Thoom

  • Error while creating party relationship

    Hi ,
    I am trying to create a party relationship from application.
    Application is throwing the following error
    APP-AR-96282: Error: The following SQL error occured: ORA-01436:
    CONNECT BY loop in user data
    I got the same error when tried to create the relationship from backend using api.
    Also verified if there is any circular relationship, there is not circular relationship among the parties which Iam using.
    Can anyone pls help me in resolving the above issue?
    Thanks in advance
    Venkat

    Hi,
    check whether the employee record is valid as of Sysdate,
    and pass p_start_date => trunc(Sysdate)

  • Error when trying to create Opportunity

    Hi All,
    When I am trying to create opportunity in CRM 2007 getting an error as mentioned below
    1) An exception has occurred during program processing
    2) You have no authorization for organizational level for the transaction
    Can some one please explain why this error is coming?
    Component in which I have to check for analysis.
    Thanks,
    Srinivas

    Hi,
    Try to figure out which action/event triggers the auth check in your create oppt screen. Set the an external break-point to start the debugger and while the debugger is on set a break-point at statement 'AUTHORITY-CHECK'. This will set a break-point at all the the auth check statements automatically. Execute the program, the system stops at the statement  'AUTHORITY-CHECK'. Now check that auth check passed or failed based on SY-SUBRC value.
    Add the authorization to your user role based on this information.
    Regards
    Prasenjit

  • Help needed to create a relationship

    Hi All,
    Please provide me some Info on FM to create a relationship between two customers. Basically i am trying to associate Customer2 as Contact  person to Customer1.
    All helpful answers will b rewarded.
    Regards,
    Udaya

    hi
    best u will maintain the  Contact person to Customer1 in partner determination level.

  • Create Organization Data programatically

    I am using ALBPM 5.7 Studio and trying to create Organization data programatically - OU, Participant, Role etc.
    I am able to fetch data but not able to create OU.
    For the following code
    DirOrganizationalUnit dirOrgUnit;
    dirOrganizationalUnit = dirOrgUnit.create(session : Fuego.Fdi.DirectorySession.currentEngineSession, name : "MT", description : "Michigan Transport");
    I get the following exception
    A component failed while executing activity '/CreateOrgData#Default-1.0/CreateOU' (BP-method CreateOU) over instance '/CreateOrgData#Default-1.0/5/0'.
    Details:
    The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
    Caused by: java.lang.NullPointerException
    fuego.lang.ComponentExecutionException: The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1063)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:391)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:483)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:618)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
         at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:54)
         at fuego.metadata.Activity.execute(Activity.java:1022)
         at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:530)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
    Caused by: java.lang.NullPointerException
         at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:229)
         at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:243)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
         ... 27 more

    Dont insert values directly in dB as you have to update multiple dependent tables in case you start doing that way. Check this thread for available api to create an organization
    Creating Organizations using API, OIM 11G
    Edited by: Durgaprasad on Jan 28, 2013 1:20 AM

  • Create a Stack programatically

    I'd like to be able to create a stack programatically, but I'm having some problems with that.  I have found these 2 possibilities, but both have problems I have not been able to work around:
    1) Use catalog:addPhoto to create the stack
          - Problem: The photos i want to use in the stack are both already loaded in the catalog.  Running addPhoto on a photo that is already in the catalog throws an error, and I can't find anyway to remove the photo from the catalog without deleting it.
    2) Modify all stack related RawMetadata
         - Problem: stack related metadata keys are not valid in the SetRawMetadata function
    If anyone has any other ideas, or solutions to either of the problems about it would be much appreciated.
    Thanks
    Brian

    Matt,
    I'm the type of guy that voids the warrenty on everything i buy .  I'm also completely an amature so even if I lost my catalog, it would just be some frustration and swearing on my end.  That being said, I do go backup crazy with daily backups through Acronis True Image, and weekly backups through lightroom.  Oh and did I mention these backups are copied across 3 different computers?
    Rob,
    I did write another plugin that used sql to query the catalog so I did know that you can't use it while Lightroom has the catalog open.  In my previous plugin i got around the issue by having it use the latest backup catalog to do the query on (it's only SELECT statements). In this case I think I'll turn it into a launcher so it runs before every time you start lightroom.  I'm really working on this just for me, if I end up with something that at least half works and others are interested I would certainly share with the community
    Thanks!

  • Report to Create Opportunity

    Hi Experts,
    I have a requirement that, to write a report program to "create or update opportunity".
    I am new in CRM, Can anybody help me to do this?
    Thanks in advance,
    Saju.

    Hello Saju Mohanv,
               You can use BAPI_OPPORTUNITY_CREATEMULTY to create an opportunity and to change BAPI_OPPORTUNITY_CHANGEMULTI. Before you create or change please check weather you have authorization to create or change any business transaction. T.Code : CRMD_ORDER open this and create opportunity by using proper inputs.
                Well comes to report program use above bapi which i have given. Well before this you have to check what all the inputs you have provide for that bapi's. For that you can check in CRM_ORDER_MAINTAIN fm. Put a break point in that FM and create opportunity in CRMD_ORDER t.code. Check what all the inputs coming in ADMINH, OPPORH, PARTNER,  INPUT_FIELDS ect.,  Related your report. You pass the same inputs to your bapis. Let me know your status after this.
    Regards,
    Nizamuddin.

  • Need Standard BAPI To Create Opportunity in SAP Using Java Connector.

    Hi All,
         What is the standard BAPI to create an opportunity in SAP CRM through Java Connector.
    Please share code if available for doing same. I have found BAPI_OPPORTUNITY_CREATE_MULTI .
    How to create opportunity in SAP through java connector using BAPI_OPPORTUNITY_CREATE_MULTI .

    Hi,
    I think you can search for it or you can create a thread at ABAP section.

Maybe you are looking for