Create BP relationship using BAPI_REL_CREATERELATION

Hi all,
Do you know if it is possible to create relationships between two BPs using this FM ?
In fact i'm searching a FM to create relationship in mass but i don't know if BAPI_REL_****
BAPI'S can be used for BP
Thanks for your help !!
Christophe

Kenshiro,
I precise my requirement, in fact i will have to replace existing partners by new ones.
And i want to use FM that allows to create relation as :
BAPI_REL_MASSCREATERELATION
in order to create several relations as the same time, but i don't know if it is possible for BP relationships
If it is not possible using BAPI_REL_CREATERELATION or BAPI_REL_MASSCREATERELATION
i will use BAPI_BUPR_RELATIONSHIP_CREATE (i know it works ) but i'm afraid to face performance issues ......
Best regards
Christophe

Similar Messages

  • How to create a relationship diagram by using Visio 2010

    Dear
    Please can you tell me that how to How to create a relationship diagram by using Visio 2010?
    It should be include:
    one-to-one relationship diagram
    one-to-many relationship diagram
    many-to-many relationship diagram
    many thanks
    D.lui

    http://answers.microsoft.com/en-us/office/forum/office_2010-visio/how-to-create-a-relationship-diagram-by-using/2999bd63-1869-42d5-8292-74f8a777c7e0
    Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio
    Sandrila Ltd

  • 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.

  • Creating Tabular Models using AMO

    Hi,
       I am trying to setup Tabular Models on SSAS using AMO referring to the materials available at Technet and the Codeplex AMO Tabular Tutorial. I have a few questions/issues
    currently and was hoping I could get some help from here. The tool I am working with currently supports Multidimensional mode via AMO and I am trying to extend most of its features from the Multidimensional model. So, some of the questions might not exactly
    fit into the Tabular model and if so, please do point them out.
    RELATIONSHIPS: While creating relationships among tables,
    would it suffice to create the relationship in the Data Source View Schema (as the tool currently does for the Multidimensional mode) or should we explicitly create relationships under the dimensions that we create to represent the table in Tabular mode? The
    latter is the approach mentioned in the tutorial and I wanted to know if there is any difference between the relationships created using the 2 methods.
    MEASURES: I am trying to create measures using Native
    OLAP Measure objects in the Tabular model. I understand the shortcomings of this type of measures but I would still need to create them for basic aggregation functions like SUMMATION, COUNTS etc… I tried creating the measures using the same Measure Group that
    was created to represent the table and used a ColumnBinding to the Measure’s source-column for the measure object’s source property but I get the following error:
    Binding for VertiPaq measure MEASURE_NAME in measure group MEASURE_GROUP_NAME is invalid because it does not match any property binding of the fact dimension
    TABLE_NAME
    Am I missing anything here? Is there a better way of creating OLAP measures in TABULAR model without using the default Table dimensions that we create?
    HIERARCHIES: I tried creating new Dimensions to hold
    hierarchies for a table but when creating them, I get the error about MISSING ROWNUMBER attribute. Is this attribute mandatory for every dimension that is created?
    To avoid this problem, I used the same dimension that was created to represent the table and tried adding inter-table attribute relationships to it but I get the following exception
    message which I cannot figure out.
    VertiPaq property ‘’ cannot have a name binding.
    In general, can we create separate measure groups and dimensions, apart from the ones we use to represent the table, to store the custom measures and hierarchies? Is this a recommended
    approach? This way, I am trying to keep things in parallel with the Multidimensional model that our tool currently supports but when I create such individual dimensions and measure groups, I get an error on the mismatch between the number of measure groups
    and dimensions in the table.
       Please bear with the long list of questions. I could not find any help online for these and so am posting them all here.
    Thank you.

    RELATIONSHIPS: While creating relationships among tables,
    would it suffice to create the relationship in the Data Source View Schema (as the tool currently does for the Multidimensional mode) or should we explicitly create relationships under the dimensions that we create to represent the table in Tabular mode? The
    latter is the approach mentioned in the tutorial and I wanted to know if there is any difference between the relationships created using the 2 methods.
    No - relationships in the DSV have no impact on the end model. You need to explicitly create relationships between your dimensions and measure groups for them to be picked up as relationships in your tabular model.
    MEASURES: I am trying to create measures using Native OLAP
    Measure objects in the Tabular model. I understand the shortcomings of this type of measures but I would still need to create them for basic aggregation functions like SUMMATION, COUNTS etc… I tried creating the measures using the same Measure Group that was
    created to represent the table and used a ColumnBinding to the Measure’s source-column for the measure object’s source property but I get the following error:
    Binding for VertiPaq measure MEASURE_NAME in measure group MEASURE_GROUP_NAME is invalid because it does not match any property binding of the fact dimension TABLE_NAME
    Am I missing anything here? Is there a better way of creating OLAP measures in TABULAR model without using the default Table dimensions that we create?
    There is no concept of native measures in a Tabular model. You need to create all your measures as "Calculated Measures" in AMO, but using the appropriate DAX expressions instead of MDX.
    HIERARCHIES: I tried creating new Dimensions to hold hierarchies
    for a table but when creating them, I get the error about MISSING ROWNUMBER attribute. Is this attribute mandatory for every dimension that is created?
    To avoid this problem, I used the same dimension that was created to represent the table and tried adding inter-table attribute relationships to it but I get the following exception message
    which I cannot figure out.
    VertiPaq property ‘’ cannot have a name binding.
    Yes, I believe every table needs the hidden RowNumber attribute. The
    TableAddEmptyTable function in the tabular AMO sample on codeplex shows you how to create this.
    In general, can we create separate measure groups and dimensions, apart from the ones we use to represent the table, to store the custom measures and hierarchies? Is this a recommended
    approach? This way, I am trying to keep things in parallel with the Multidimensional model that our tool currently supports but when I create such individual dimensions and measure groups, I get an error on the mismatch between the number of measure groups
    and dimensions in the table.
    No you can't create any extra structures. Tabular projects only supports a subset of AMO. You need to follow the example on codeplex very closely and read all the code comments if you are making changes because it's very easy to break things.
    My suggestion is to create an abstraction layer either using the TabularAMO library from codeplex as it is or creating your own library if you only need a subset of the functionality. This will mean that your core code is not too tightly bound to AMO. The
    reason for this is that I would hope that MS will replace AMO with something better for Tabular models in a coming release and having a clear abstraction layer should make it easier to update to a new API.
    http://darren.gosbell.com - please mark correct answers

  • 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)

  • Creation of BP relationship using BAPI_BUPR_RELATIONSHIP_CREATE

    Hi,
    Needed  help.
    I am trying to create a Business Partner relationship using standard BAPI "BAPI_BUPR_RELATIONSHIP_CREATE" , but it is not updating the table BUT050 even after calling BAPI_TRANSACTION_COMMIT.
    can anybody help me out????
    Regards
    Bhanu.

    Hi Nanduri!
    I am also trying to create Business Partner Rel. with Bapi.
    Did it finaly work with BAPI BAPI_BUPR_RELATIONSHIP_CREATE ?
    Or did you find another BAPI??
    Best regards,
    Cristina

  • Enhancement of Business Partner (Relationships) using BDT -Bus Data Toolset

    Dear Experts,
    I have a requirement from my customer enhancing the Business Partner Relationships using BDT.
    I should add 2 fields namely salary, employer start date in the Business partner Relationships, it must be added in the characteristics of relationships as one employee can have multiple employers and vice versa.
    If I would like to add the fields in Business Relationships using BDT, are the steps same as adding fields in business partner? or do we need to perform any other steps? Did someone already did this type of modification, please provide your suggestions.
    After adding the fields is it possible to cusomize the fields for history of the changes? e.g. if salary field has been newly added and after creating a BP after some days I want to change the salary and for the changed salary I want to have a history.
    I would appreciate if you can help me with your suggestions.
    Many thanks and best regards,
    Afroz

    Solved the problem Using EEWB.

  • Implement Parent child Relationship using SSIS

    Could you please suggest the best way which should not impact the performance of data loading, to implement parent child relationship using SSIS.
    We have a flat file RECON80.dat which need to be loaded into the database into 2 tables.
    Parent Table JobMaster  and Child Table RECON80 .
    In the flat file we have a fields Jobphase which will get inserted in JobMaster table and the remaning details like EIN, DATE etc will get inserted in RECON80 table.
    The Parent table JobMaster has JobId as an identity column which is the Pk of the table and it will get inserted into the child table i.e RECON80 JobId as FK of the child tale.
    Please suggest the best possible way to achieve it.

    Hi SubhadipRoy, I think you might need to create a procedure for this task.
    Because in SSIS, we cannot directly get the Identity ID.
    As my experience, there were serveral ways to do. But all are workaround.
    So, My suggestion is.
    In SSIS:
    1. Create a DataFlow
    2. Drag a flat source and load the data from dat file
    3. Create a procedure which receive the parameter from your data of each row.
    4. Drag a OLEDBCommand to the Panel and Invoke the Procedure also don't forget to pass all your rows to the Procedure in OLEDBCommand control.
    5. In Procedure, after insert 1 row you could get the Identity ID throuth SCOPE_IDENTITY()
    That's it, hope it works for you even this may not the efficency way.
    Althrough, I expect someone can give the best way if there is.

  • To Create a Opportunity Using the FM

    Hi ,
    I want to create a Opportunity by usinig the FM CRM_ORDER_MAINTAIN
    i want to pass
    In sales cycle phase , status, phase since , status since , Reason
    In relationships  Campaign , Referance Object
    so What are all the EXPORTING tables and CHANGING table ?
    Can i have a Tables for the Campaign ID & Reason ?
    Is there any Relation Between the Campaignid and GUID.?
    Regards
    srinivas M

    Hi Srinivas,
    I will suggest you do this way.
    1. Create an opportunity with all the data elements you want
    2. Once you have saved this, use the report program ( SE38 ) - CRM_ORDER_READ to explore this transaction you created.
    3. The report gives you insight into all the structures that contain data, which also means that when you create a transaction using maintain function modules, you have to input those elements.
    Easwar Ram
    http://www.parxlns.com

  • Function modules to create the relationship for Reference Personnel IT0031

    I tried using BDC recording PA30 to create the relationship for reference personnel but it dun seems to work. Anyone knows of any standard function module to create that relationship instead.

    I have tried both and it doesnt work. The behaviour of this reference personnel number is different from the normal object relationships. Does anyone have experience using function module to create reference personnel relationship instead of giving the stand FM to create the records.

  • How to create ER diagrams using designer  6

    Hi
    pls suggest me how to create ER diagrams using designer 6.o
    thanks

    Hi,
    You have to capture the tables into Designer Repository using Design Editor utility (Hope you have done this !), then do a 'Table to Entity Retrofit' from Entity Relationship diagrammer utility. Create a ER Diagram and include the entities.
    Steps to do Entity Retrofit
    1. Invoke Entity Relationship Diagrammer from Designer Front Panel.
    2. Create New Diagram.
    3. Invoke Utilities | Table to Entity Retrofit.
    4. Click Candidate Tables button.
    5. Select the tables.
    6. Click Retrofit button.
    7. Entities will be created in diagram.
    8. Double click on the entity to see the details.
    HTH,
    Wilson

  • How to create a relationship between documents

    Can you create a  relationship between documents so in case the user requests one file he will also be prompted to download the other related file as well automatically

    Thanks for Your answer, but main problem is what relation type use to create link between 2 common objects.
    Your solution (use class CL_BINARY_RELATION) returns the same error message, because this class is used in FM BINARY_RELATION_CREATE.
    In the end I found that solution is to use as relationtype (ORBRELTYP-RELTYPE  = 'ASGN').
        CALL FUNCTION 'BINARY_RELATION_CREATE'
          EXPORTING
            obj_rolea      = obj_a
            obj_roleb      = obj_b
            relationtype   = 'ASGN'
          EXCEPTIONS
            no_model       = 1
            internal_error = 2
            unknown        = 3
            OTHERS         = 4.
    It seems to work and on both objects (A and B) I can see link (relation).
    Best regards,
    MD

  • Is it possible to delete a relationship using sdk in SCSM ? if yes how ?

    Is it possible to delete a relationship using sdk in SCSM ? if yes how ?
    If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT

    Yes, you can use the SDK to remove relationships. Use the EnterpriseManagementRelationshipObject class. You can use the EnterpriseManagementGroup.EntityObjects.GetRelationshipObject* methods to retrieve collections of relationships or individual relationships.
    Then you can use an IncrementalDiscoveryData object to remove the relationship objects.
    Another method is to use an EnterpriseManagementObjectProjection to remove relationships between objects.
    Here's a blog post with the basics:
    http://blogs.technet.com/b/servicemanager/archive/2010/10/04/using-the-sdk-to-create-and-edit-objects-and-relationships-using-type-projections.aspx
    Removing/Adding activities programatically is not as straight-forward as it might seem. Each activity has a "SequenceId" property. Activities MUST remain in sequence or the workflows will give you unexpected results. For instance, if you delete
    an activity, for each activity that follows you must decrement its sequence id property. Similarly, if you add an activity, you must make sure that it's sequence ID falls in the proper order with the other activities (incrementing other activities as needed).
    As a side note, BOVI Remy, the SDK is the primary entry point to the framework of Service Manager. The powershell cmdlets lay on top of the SDK. In other words, the cmdlets were created with the SDK. The cmdlets provide an abstraction layer to
    make many SDK calls simpler. Basically, anything you can do with Powershell cmdlets, you can do with the SDK. Plus, there's even more that the SDK can do that you can't do with the Powershell cmdlets (currently). :)

  • Error while creating a material using Bapi_material_savedata

    Hi,
    there is an error encountered while creating a material using BAPI_MATERIAL_SAVEDATA..
    The Error description is " Material description is not transfered " even after supplying the Material description and other mandatory field information like industrial sector, material type ,basic view indicator,Base UOM,Base UOM ISO code.
    Please let me know the solution, if you know.

    Hi,
    Please search the SCN for the answers
    https://www.sdn.sap.com/irj/scn/advancedsearch?query=errorinBAPI_MATERIAL_SAVEDATA+&cat=sdn_all

Maybe you are looking for