To delete relationships

Hi all,
   What is difference between BUPR_RELATIONSHIP_DELETE and BUPR_RELATIONSHIP_REMOVE?
I need to delete the Relationship between BPs by using one of these FM.
-Santosh

Hi Santosh,
Please go through the following to give you better idea about general relationship.
http://help.sap.com/saphelp_crm40/helpdata/en/59/721fe6e3ca2a44aace2b4cbff76e75/frameset.htm
Regards,
Deepak

Similar Messages

  • Problems in deleting relationship in PO13

    Hi,
    I am facing a problem when performing following steps. Please give you valuable comments regarding any solution.
    Step1: sm30 Payroll Period & Year - Verified values
    Step2: PO13 Clear position for Transfer , go to maintain position
    In this step under Current Plan and a current period, I am selecting the Relationships option. Then I have selected Delete Infotypes. Then, Screen: Delete Relationships Delete
    Error : Change for person xxxxxx extends too far into  past.
    The Diagnosis is :
    You are working with active integration between the PD and the HR Master
        Data Management. You must consider the effects of your transaction on  
        Human Resource master data.                                            
        The entries cannot be updated because, otherwise, it would be necessary
        to make changes for the specified personnel numbers, which date too far
        back into the payroll past.                                            
        The earliest retroactive accounting period for the payroll subunit to  
        which the person belongs is defined in T569V. The earliest personal    
        retroactive accounting date is read from infotype 0003. The more recent
        of these dates is determined.                                          
        Only changes which occurred AFTER this date can be carried out.
    Please assist me regarding what steps need to be followed for resolution.
    Regards,
    Prasun Podder

    Hi Akshay,
    Thanks a lot. This is a good option. But in this situation, I will not be able to able to use the program RPUTRBK0 as the 'Earliest RA Date' should be prior to the 'Earliest Masterdata Change Date' which is different for different Pnr. No.
    So, I am actually thinking of putting the Earliest RA Date as the Date of Joining of the employee and for this have to run the LSMW.
    Any suggestion from your side is appreciated.
    Thanks & Regards,
    Prasun Podder

  • Delete Relationships via API

    Can anyone tell me the correct method for deleting relationships within the repository using the API? It seems to me that deleting one end of a relationship would null-out the OTHER_RELATIONSHIP_END_REF value on the other end of the relationship and then the other end would have to be deleted separately but that doesn’t seem to be the case. I have tried to retrieve the other end after deleting the first end and gotten a NO_DATA_FOUND exception. However, if I do not delete the other end then Designer throws an exception regarding a null value in the TO_ENTITY_REFERENCE property of the end I attempted to delete. I have taken steps to ensure the entities on both ends of the relationship are checked-out prior to performing the delete but I do not seem to be able to come up with a combination of deletes that completely removes the relationship.
    Any help would be greatly appreciated.

    I think I've solved my own problem: deleting one end of the relationship causes the other end to be deleted automatically -- nice.

  • Wher is deleted relationship history log in ServiceManager production database?

    Hi,
    I`m trying to use ServiceManger production database directly to track changes of reassigned users.
    I`m able to get all relationship changes from EntityChangeLog, but those changes that represent "removed" user in history log (as seen in console on reassignment you have Remove for old assignee and Add for new one) do not have a matching record when
    searched by RelationshipId in the dbo.Relationships table. Although the last added user from the entire history of SR can be tracked via that table and that relationship (active one) has matching record in dbo.Relationships table
    It means that somewhere in the ServiceManager DB there is separate table for deleted relationships where I can find the ones that are in History referenced with action "Remove"
    Question - which table is it? Or the structure is different and I`m not getting something right?
    Egils Zonde from Technet

    directly accessing the SQL database is
    discouraged, and SDK or console access is always prefered. The structure is not intended to be human readable, and the results of any direct SQL read are sure to be unsupported.  it'll probably work great, but I wouldn't design a process
    around it, since it was never supposed to work in the first place no one will help you if it breaks.
    as Raymond Chen likes to say,
    It looks like you have half of a problem here, (i.e. you've already figured out that you need to cromulate the franbulator, now all you need to do is invent a method to cromlulate arbitrary franbulators). What is the real need? is this an auditing
    need, like need to provide a history of deleted relationships to external audit? Or do you need to react to a relationship being deleted, and building a history seemed like the first step?  

  • UCMDB Excel import - update/delete relationship

    Hi, is any solution to update or delete a relationship between the object in Excel import? I created one (excel import), but there are wrong way in the relationship, so I want to change/update or delete all wrong, and create the good . Anyone have any ideas?

    Hi,
    Do you mind telling us which Excel version are you using? Which file are you using as data source? Excel, access or other? I tested in my environment, but I can't reproduce your issue.
    Would you like to share us a sample data source through OneDrive if possible?
    On the other hand, I recommend we follow this link to re-create the connection to test:
    http://exceluser.com/formulas/msquery-excel-relational-data.htm
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Urgent:deleting relationship from HRP1001

    Hello,
    Is there any function module with RFC enabled to delete the relationships from HRP1001?
    can you please provide me the information ASAP.
    Regards,
    Soujanya

    U can use RH_DELETE_INFTY .. But I don't think it's RFC
    enabled ...

  • Deleting Relationship BUR001

    Hi Everyone,
    We are trying to delete just the relationship "Contact Person" between a company and contact. But when we do that, we are getting the following error: "Address is still being used and may not be deleted." If we expand the error, we are getting the following. Any help in this regard is appreciated. Thanks for your time.
    Address is still being used and may not be deleted
    Message no. R1455
    Diagnosis
    You tried to delete a BP address. This BP is still being used somewhere in the system, meaning that you are not permitted to delete this address.
    System Response
    Error message. The BP address is not deleted.
    Procedure
    Look at the where-used list for the BP address. If you still want to delete the address, change the reference to this address in the applications affected. In most cases, if applications other than maintenance of business partner itself are affected, you can navigate directly to the corresponding application from the where-used list (by calling the context menu with the right mouse button). You can then try again to delete the BP address.
    Note
    If a business partner is merely moving, you only need to change the actual address details. All references are automatically transferred to the new address.
    --Swapna

    Dear Swapna,
    I have to confirm the information!
    Address of Contact Person, assigned to Business Partner, is always
    relationship-specific. This is how system was designed, and this is
    how this data is stored and transferred.
    But the reason of the error during deletion is not the relationship,
    but some sales transaction which was created with this Contact Person.
    If you create Activity or Opportunity with using of this Contact
    Person, its address is linked to this object also, because "address"
    itself is an independent objects on a basis level. And if it's used for
    some other object, then this address can not be deleted until this
    object is deleted. Otherwise, deletion of the address itself can cause
    data inconsistencies for other assigned objects, that's why this
    validation check is always performed first.
    The note 830239 describes what has to be done to switch off
    the check and how it is handled in the future then to avoid problems.
    The result is that you will still see the address data in the sales
    document etc.
    Regards,
    Gerhard (Moderator)
    Pls confirm thread as this question is answered!
    Pl

  • Deleting relationship/transaction

    hi experts
    I need one clarification, in production system i had created one new relation called for ex:- SDN contact person and maintained this relationship to some organization after some months if i delete this relationship from production system what will be impact on existing org's which had this relationship
    and in the same way i had created one Business transaction called ex:- sample order and then i  create orders making use of this transaction then after some months if i delete this from production system then what would be impact on existing orders
    i know that generally we will make it inactive rather than deleting,but i want to know what will be the consequences we will face if we delete and existing relationship/transaction from system
    Please share your knowledge if any one have encountered such a scenario
    Regards
    Vinay

    Hi venkat
    i know that it will cause data inconsistency but for knowledge sake i want to know what will happen if we delete that particular relationship/transaction code for example can i view the order which had been created by making use deleted transaction code
    It is just for knowledge i know that it is not a good practice
    regards
    vinay

  • Can't delete relationship

    Hi together,
    I have two business partners: an organisation and a person. The person was the contact person for the organisation. When creating the person we give him the company address in the relationship data.
    Now we are not able to delete the relationship. We got the error message "Address is still being used and cannot be deleted".
    If I go on the General data > Address Data there isn't any address. If I go to the company data on Address Overview and have there a look on "Where-used list" I can see the using of the company address for the two contact persons (with red traffic light).
    Does anybody know how to delete the company address from the contact person or how to delete the relationship?
    I tried also the report Z_DELETE_REL_WITHOUT_PFKT but it doesn't help me.
    Regards Thomas

    hi thomas
    i was just about to get back to you,ok so ur problem is as it is
    let us first analyse the problem
    according to me:
    Generally when you create a relationship,you get the option of validity periods but for a contact person relationship there is no validity periods.If you wish to have validity periods goto>Img>Crossclient>sap BP>BP rel>basic settings>assign layout groups to relationship categories.select Relationship category->layout module here change the logical group to time dependent for BUR001
    Coming to ur problem-check wheather you made the contact person relatioship has standard.Goto to the BP,open the relationship tab,double click the contact person,here you can see the STANDARD
    Besides this we should also consider that :
    Address of Contact Person, assigned to Business Partner, is always relationship-specific. This is how system was designed, and this is how this data is stored and trasnferred.
    But the reason of the error during deletion is not the relationship,
    but some sales transaction which was created with this Contact Person.
    The note 830239 describes what has to be done to switch off
    the check and how it is handled in the future then to avoid problems. The result is that you will still see the address data in the sales document etc. However, please check the header part of the note for steps you haveto carry out manually. eg the first 2 steps need to be carried out.
    Hope this will solve the issue
    do revert back to me if problem persists
    best regards
    ashish

  • CHALLENGE : DELETE  RELATIONSHIPS IN BULK(BATCH)

    HELLO EXPERTS,
    I HAVE A MAJOR PROBLEM.
    MY SCENARIO :
    I HAVE FETCHED THE DATA FROM <b> HRP1001 </b>. USING THIS DATA I HAVE FETCHED "PERNR" AND CORRESPONDING "ORGEH" FROM PA0001.
    NOW, I HAVE COMPARED THE HRP1001-OBJID WHERE OTYPE = "O" WITH PA0001-OBJID. AND THOSE DATA WHICH DIFFER WITH RESPOECT TO THE "ORGANIZATION UNIT". AND STORED THAT DATA IN ANOTHER SEPARATE INTERNAL TABLE SAY "ITAB_GLOBAL".
    NOW USING THIS "ITBA_GLOBAL", I WANT TO DELETE ALL EXISTING RELATIONSHIPS USING A SAP STANDARD FUNC. MODULE.
    PROVIDED, ALL THE RELATIONSHIPS SHOULD BE DELETED ON SINGLE EXECUTION ONLY.
    I HAVE COME TO KNOW ONE FUNCTION <b>"RH_RELATION_DELETE"</b>. BUT THE PROB WITH THIS IS IT POPS UP A DIALOGE WINDOW FOR THE CONFIRMATION OF THE DELETION, WHICH IS NOT DESIRED AS MY DATA IS VERY HUGE. I CAN NOT DO ON CLICKING FOR 1000 RECORDS.
    KINDLY LOOK INTO THIS AND PLEASE HELP.
    THANKING YOU IN ANTICIPATION.
    REGARDS,
    TEJAS

    Hi Tejas,
    Why dont you copy the function module RH_RELATION_DELETE and just comment out the pop up and keep only the functionality for return_fcode = delete.
    It's a work around, but if u are sure u want to delete the records and the function module works according to your requirement and only the pop up is holding you back, then ............
    Just a suggestion .
    cheers,
    adi

  • Delete Relationship A012 or B012

    Hi all!!
    I wonder if there is a function module where I can delete the relationship A012 or B012 between Org units and positions.
    I found the next ones...
    SWD_INTERN_DELETE_RELATIONSHIP                       
    V51P_DELETE_RELATIONSHIP
    BAPI_BUPR_RELATIONSHIP_DELETE
    BUPR_RELATIONSHIP_DELETE     
    BUPR_RELATIONSHIP_DELETE_P46C
    But I don't know their parameters.
    Thanks all.
    Regards!!

    Did you try RH_CUT_INFTY  or  RH_RELATION_DELETE?
    ~Suresh
    Message was edited by: Suresh Datti

  • Problem with cascade delete in CMP one-to-one relationship

    I am not able to cascade delete for one-to-one relationship. Even though relationship seems to be setup correctly, record from the second table is not deleted.
    Following is the structure of tables i am using:
    First Table(vcc_lrmc) -- LRMCBean
    lrmc_id pk (Bean field is id)
    lrmc_dtl_id (Bean field islrmcDtlId)
    Second Table (vcc_lrmc_dtl) -- LRMCDetailBean
    lrmc_dtl_id (pk) (Bean field islrmcDtlId)
    lrmc_id (Bean field id)
    One to one bidirectional relationship has been setup with CMR fields moreLRMC and mainLRMC.
    section of ejb-jar is as follows:
    <ejb-relation>
    <ejb-relation-name>LRMCMainToDetail</ejb-relation-name>
    <ejb-relationship-role>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>LRMC</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>moreLRMC</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <multiplicity>One</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>LRMCDetail</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>mainLRMC</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    section of orion-ejb-jar is as follows:(Bidirectional mapping)
    <entity-deployment name="LRMC" data-source="jdbc/VCCDS" table="VCC_LRMC">
    <cmp-field-mapping name="moreLRMC">
    <entity-ref home="LRMCDetail">
    <cmp-field-mapping name="lrmcDtlId" persistence-name="LRMC_DTL_ID"/>
    </entity-ref>
    </cmp-field-mapping>
    </entity-deployment>
    <entity-deployment name="LRMCDetail" data-source="jdbc/VCCDS" table="VCC_LRMC_DTL">
    <cmp-field-mapping name="mainLRMC">
    <entity-ref home="LRMC">
    <cmp-field-mapping name="id" persistence-name="LRMC_ID"/>
    </entity-ref>
    </cmp-field-mapping>
    </entity-deployment>
    Is there anything else need to be setup for Cascade delete or is there anything wrong the way one-to-one relationship has been setup.
    Pls. advice.
    Thanks
    Dhiraj

    Is it happening because of this bug.
    Cannot create a 1:1 bi-directional CMR for entity beans when database tables are reverse engineered. (2447364)
    Anyone, any idea on this ?
    Cheers,
    Dhiraj

  • Not able to delete IT1001 Relationship

    Hi All
    Can any one tell how to delete relationship It1001 for an organization unit,for which object IT1000 has already been deleted.
    While deleting its giving msg..
    Object doesnot exist.
    Thanks in Advance

    I m trying the same in PPo1,
    in this case
    there is no object,,
    so when i select Relationship and press overview..its giving msg...
    Object doesnot exist....

  • Delete HR PP01 relationship using FM

    Hello,
    Is there any function module to delete relationship maintained in PP01.
    For eg - Assignment to Postion to Org unit or
                assignment between two org unit.
    Thanks,
    V

    Thanks Srinivas .. RH_RELATION_MAINTAIN has worked for reletionship & for deletion of object RH_OBJECT_DELETE

  • Weblogic 9.1, EJB 2.0, Oracle 9i: Cascade delete Error

    Hi All,
    I am facing an error with the cascade-delete facility in ejb2.0 with weblogic 9.1
    Assume that I have the following relation:
    <ejb-relation>
    <ejb-relation-name>TeacherEJB-StudentEJB</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>teacher-has-student
    </ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>TeacherEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>teacher</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>student-has-teacher
    </ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>StudentEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>student</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type><cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    Now when I have to delete one record from the DBSTUDENT table, what i do is the following:
    StudentHomeLocal.remove(studentModel.getStudentId());
    The above statement throws an SQLException staying it can't update TeacherID in DBSTUDENT (PK of DBTEACHER, FK in DBSTUDENT) with NULL.
    The same code is working perfectly well in Weblogic 8.
    I even tried deleting the local directly by the following statement:
    StudentLocal.remove();
    But this too doesn't work.
    I also tried by removing the <cascade-delete/> attribute from the ejb-jar.xml file and updating the 'on-delete cascade' option in the database, but this too did not work.
    There is another option of <db-cascade-delete> in weblogic-cmp-rdbms-jar.xml that I tried but this too did not work.
    In short, I have tried the following cases but to no avail:
    1. Mention cascade delete in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar and in the database.
    2. Mention nothing in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar but 'on cascade delete' mentioned in the database.
    3. Mention cascade delete in ejb-jar.xml and db-cascade-delete mentioned in weblogic-cmp-rdbms-jar.xml.jar and 'on cascade delete' in the database.
    4. Remove all cascade delete from the ejb-jar.xml,the weblogic-cmp-rdbms-jar.xml and from the database.
    Neither of the above work.
    Kindly help ASAP.
    Thanks in advance,
    Sachidanand.

    Hi All,
    I am facing an error with the cascade-delete facility in ejb2.0 with weblogic 9.1
    Assume that I have the following relation:
    <ejb-relation>
    <ejb-relation-name>TeacherEJB-StudentEJB</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>teacher-has-student
    </ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>TeacherEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>teacher</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>student-has-teacher
    </ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>StudentEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>student</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type><cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    Now when I have to delete one record from the DBSTUDENT table, what i do is the following:
    StudentHomeLocal.remove(studentModel.getStudentId());
    The above statement throws an SQLException staying it can't update TeacherID in DBSTUDENT (PK of DBTEACHER, FK in DBSTUDENT) with NULL.
    The same code is working perfectly well in Weblogic 8.
    I even tried deleting the local directly by the following statement:
    StudentLocal.remove();
    But this too doesn't work.
    I also tried by removing the <cascade-delete/> attribute from the ejb-jar.xml file and updating the 'on-delete cascade' option in the database, but this too did not work.
    There is another option of <db-cascade-delete> in weblogic-cmp-rdbms-jar.xml that I tried but this too did not work.
    In short, I have tried the following cases but to no avail:
    1. Mention cascade delete in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar and in the database.
    2. Mention nothing in ejb-jar.xml and nothing mentioned in weblogic-cmp-rdbms-jar.xml.jar but 'on cascade delete' mentioned in the database.
    3. Mention cascade delete in ejb-jar.xml and db-cascade-delete mentioned in weblogic-cmp-rdbms-jar.xml.jar and 'on cascade delete' in the database.
    4. Remove all cascade delete from the ejb-jar.xml,the weblogic-cmp-rdbms-jar.xml and from the database.
    Neither of the above work.
    Kindly help ASAP.
    Thanks in advance,
    Sachidanand.

Maybe you are looking for

  • Can not view Chinese [lang pack installed]

    I have a strange problem with following PDF which is generated by TCPDF. I have tried with both Acrobat Reader 9 / X, installed all the language pack I can find. Also installed the 2 fonts specified in the PDF file. It can be viewed in Google Doc. Ot

  • Zen Vision M 30GB will not stay docked on Windows XP

    For some reason my Zen won't stay docked into the computer so i can upload music and such to it. I can connect it..it'll actually charge but it won't change to the USB docked screen. It stays at my main screen and can cycle through my options and eve

  • Opening java project in eclipse environnement

    Hi all, I use eclipse environnement for java programming. I cannot open my project in eclipse, even if I specify the workspace. When I open eclipse in the specified workspcae, I cannot clic on the option "open project". Does anyone know how to open o

  • EVHOT with links to source template Issue

    Hello Experts, I have created 2 input templates.  The first input template has an EVHOT function to the second template.  The EVHOT function is working fine. I am having an issue because the second template has links to cells on the first template. 

  • Error 1067 : The process terminated unexpectedely

    Hi Everyone, I'm getting the error when i am starting the Oracle BI Server services. The error is as below : Error 1067 : The process terminated unexpectedly. On my machine OBI EE was installed and it was running successfully till today. But now it i