CHALLENGE : DELETE EMPLOYEE RELATIONSHIPS IN BULK(BATCH) ___*URGENT*

<b>HELLO TO ALL THE EXPERTS</b>,
I HAVE A MAJOR PROBLEM.
MY SCENARIO :
I HAVE FETCHED THE DATA FROM<b> HRP1001</b> . USING THIS DATA I HAVE FETCHED "<b>PERNR</b>" AND CORRESPONDING "<b>ORGEH</b>" FROM <b>PA0001</b>.
NOW, I HAVE COMPARED THE <b>HRP1001-OBJID</b> WHERE <b>OTYPE = "O"</b> WITH <b>PA0001-OBJID.</b> AND THOSE DATA WHICH DIFFER WITH RESPOECT TO THE "ORGANIZATION UNIT". AND STORED THAT DATA IN ANOTHER SEPARATE INTERNAL TABLE SAY "<b>ITAB_GLOBAL</b>".
NOW USING THIS "<b>ITAB_GLOBAL</b>", 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

If the relationships differ you can use the report RHINTECHECK it checks for integration errors if any.
Instead of deleting relations this will help you  identify and correct errors
Message was edited by:
        najeeb mehmood

Similar Messages

  • 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 EMPLOYEE RELATIONSHIP(BATCH)

    <b>HELLO TO ALL THE EXPERTS</b>,
    I HAVE A MAJOR PROBLEM.
    MY SCENARIO :
    I HAVE FETCHED THE DATA FROM<b> HRP1001</b> . USING THIS DATA I HAVE FETCHED "<b>PERNR</b>" AND CORRESPONDING "<b>ORGEH</b>" FROM <b>PA0001</b>.
    NOW, I HAVE COMPARED THE <b>HRP1001-OBJID</b> WHERE <b>OTYPE = "O"</b> WITH <b>PA0001-OBJID.</b> AND THOSE DATA WHICH DIFFER WITH RESPOECT TO THE "ORGANIZATION UNIT". AND STORED THAT DATA IN ANOTHER SEPARATE INTERNAL TABLE SAY "<b>ITAB_GLOBAL</b>".
    NOW USING THIS "<b>ITAB_GLOBAL</b>", 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

    Try RH_DELETE_INFTY.
    Regards,
    Amit

  • BP - Employee relationships to an org unit and changes

    Dear Colleagues of CRM,
    The scenario pertains to an employee and its relationship to an org unit to which it is assigned. Once an employee is assigned to an org unit, a relationship too gets created with the Employee as BP. This relationship has the contact info that was available in the BP master data at that point of time.
    Later on, if the employee is transferred and hence assigned to another org unit, the assignment in the org unit is changed to the new org unit. On the new org unit assignment, a new relationship gets created with the BP. However, the earlier relationship doesn't get deleted when the earlier assignment to the org unit was deleted. If I attempt to delete the relationship in the BP, it doesn't allow and prompts to u201Cu2026.Change through the HR mastersu201D.  The HR master though has nothing of the contact details vis-à-vis this relationship.
    The existence of this initial relationship is causing error in all my dependent programs / activities which pick up the contact details of this employee and hence trigger emails etc.
    Request solution as to how do I remove this u2018oldu2019 and irrelevant relationship from the BP. It may be noted that the subsequent changes of assignment u2013 deletions in particular u2013 are deleting the relationship too but the initial one exists all throughout.
    Seek your kind advise to resolve the matter .
    Regards,
    Tariq

    Contact SAP they have given two custom reports to check and repair BUT050 entries when we have similar issue.
    Regards,
    Rajesh.

  • Employee relationship between BP and org.BP missing

    Hello,
    I am getting few error in SRM when trying to order a shopping cart. After checking the user and BP through USERS_GEN i am getting this error.
    "Employee relationship between BP and org.BP missing". Could anyone help me in this.
    Thanks,
    Pijush

    Hi Pijush
    Please let us know are you create the new EBP purchasing org copying from any other existing  EBP purchase org, if yes, could you please delete the new EBP org assignment and create the new EBP org by using the Create icon and select u201CIs Line Supervisor ofu201D option. It will be resolve your issue.
    Thanks
    Sada

  • Reg:Deleting sales orders in bulk

    Hi Gurus,
    Can anybody through some light on the below mentioned queries.I faced this in one of my interviews .
    1.How to delete sales orders in bulk ?
    2.How to print invoices in bulk ?
    Thanking you in advance.
    With Regards,
    Sash......

    Dear sash
    1) To delete sale orders in bulk (subject to no subsequent documents), either you can use LSMW or BDC
    2) To print invoices in bulk, two options are there.  One is foreground and another one is background
    - To schedule foreground, run T.Code VF31
    - To schedule background, run T.Code VF06 where you can see a tab [Job started on]   If you fix a date and time here, that time, invoice will be printed out in mass
    thanks
    G. Lakshmipathi

  • Is it possible to delete a relationship from the BP ?

    Hello experts,
    I'd would like to replace a function partner SH (having the same number as the DO) by another  from R3 to CRM5.
    At the begining i have in R3 this partner
    AG 3901007
    RE 3901007
    RG 3901007
    WE 3901007
    In R3 by the transaction VD02, I replace the partner SH by another
    After the modify i have in R3.
    AG 3901007
    RE 3901007
    RG 3901007
    WE 5000000
    When the replication is done in CRM using BDOC, i can see, by the transaction BP
    the new ship to party partner(5000000) .
    The trouble is :
    When customer access to ISA (standard version) to order product, he can select the partner 3901007 as shipping adress.
    By ISA, he should have the partner 5000000 only.
    Is it standard or is it a sap trouble ?
    Is it possible to delete a relationship from the BP ?
    I don't want to delete the BP partner, i just want to delete the relationship when then BDOC arrive in CRM.
    i have found the oss note 596334 497146 757955 too but it doesn't bring me a solution.
    Best regards
    Christophe

    Hello
    When you delete a Partner Function in R/3 the corresponding relationshipdoesn't get deleted in CRM. This is standard SAP behavior and not a
    bug. Reason for this behavior has been explained in Note 490454.
    You can change this behavior by implementing Note 497146. Also check
    the note 682427 which will help you in clearing old data.

  • Not able to delete a relationship record in OM

    Hi,
    When I am trying to delete a relationship between a Position and a Qulaification, system is giving a message that 'Relationship S A 031 Q cannot be maintained using basic transaction'. I have tried using PP01, PP02 and PO13.
    Can anybody explain me what this means and how to delete the record in OM.
    Regards,
    Suhasini

    Hi,
    I think you have maintained the qualification requirement of positions.
    Is this the relationship mainitained in OM?
    Then do delete it from Qualification profile maintenance.
    Hence go to PPEM and then delete the required qualification.
    This should be the way to delete qualification and position relationship.
    But if U still want to delete it from PP01 then U have to go to config for relationship and tick the "Maintained from Basic transaction" and then delete. But this is not standard SAP way of doing it.
    ~BiSu

  • Cannot delete old sessions from SM35 - Batch Input...

    Cannot delete old sessions from SM35 - Batch Input...                
    We have an issue, we are trying to delete old batch input sessions via SM35 and no
    matter how hard we try we cannot get rid of them. They are still in status "In Process" but they are status incorrect.
    Those sessions have long finished and some are more than 5 years old.
    We have tried running rsdbcreo and RSBDC_REORG but it only returns with
    Temse Error, running SP12 does not list any inconsistencies. Basically we want all jobs in SM35 that ran this year only available in the SM35 queue, we have sessions that have run from year 2004 to 2008 we wish to
    delete.
    Anybody experience anything similar or have any advice, sorry this is an environment that i have inherited and wish to cleanup.
    We have checked the following notes 706478,76422,706478,76422 and many more.
    Thanks
    Suleman

    When you try to delete, you will be asked whether you want to delete logs too.
    Here try with 'No'.
    hope this helps

  • In OS 10.8.4 is there a way to delete unread emails as a batch?

    I have a lot of unread emails. In OS 10.8.4 is there a way to delete unread emails as a batch?

    If you sort them by their read/unread status by clicking that column header, they will be grouped together in the mailbox list, making it easier to select them together.
    You could also create a Smart Mailbox with the criteria set to Message Is Unread, resulting in a Smart Mailbox that only contains unread messages. Then you just Select All and Delete.

  • HR Employee relationship report

    Hi,
    We have a requirement to create HR--> Employee relationship report, which will display the employee details and his reporting officer details.
    Please let me know if we have a standard report for this.
    Regards,
    Nagesh.

    Hello,
    I dont think there would be any direct report available for this.
    The only way i could think of achieving this is as below:
    (1) If you have data in BI for employee manager, that is in the format employee and its manager.
    Just load it to the cube and get all needed attributes populated from reading master data table of employee.
    (2) For Creating extractor at ECC
    Use following function module to get manager details:
    HRCM_ORGUNIT_MANAGER_GET
    Regards,
    Shashank

  • Employee relationship between BP and BP(Org) missing

    Hi,
    We are with SRM 7.0
    Getting below error when checking user in 'BBP_BP_OM_INTEGRATE'.
    " Employee relationship between BP xxxx and BP(Org) xxxx missing "
    Thanks

    Hello,
    I think you have got problems with BUT050, BUT052 and ADCP tables.
    Check OSS notes:
    [Note 893900 - Report for inconsistencies b/w BUT000 & relationships|https://websmp103.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=893900&_NLANG=E]
    [Note 836353 - Correction Report for inconsistencies in BUT052/ADCP tables|https://service.sap.com/sap/support/notes/0000836353?nlang=E]
    Regards.
    Laurent.

  • How to delete the payroll result by batch? have any program to do this?

    Hi,
    how to delete the payroll result by batch? have any program to do this?

    With standard payroll deletion (PU01), SAP  will not allow payroll results to be deleted if it already reaches certain steps of payroll process (e.g. Pre-DME, DME); instead, you would have to do payroll a void or payroll reversal. This utility doens't check for that, and only delete payroll results based on the criteria given. This therefore could cause inconsistency in production if your payroll process already surpasses certain steps.
    Rgds.

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

  • Hi All how to add new payscale  for an employee in sap hr-abap,its urgent

    Hi All ,
    how to add new payscale for an employee  in sap hr-abap,its urgent.
    Message was edited by:
            bharat kumar
    Message was edited by:
            bharat kumar

    Hi
    If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
    If that field is not there in the any of the structures then you can define a variable using define command
    /: DEFINE  &VAR&
    / &VAR&  = <some value>
    or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • Password protecting scanned documents

    I can password protect pdf files, but when I scan a document, it won't allow me to password protect it. When I do "Save as" it doesn't give me security options. When I "print as pdf" it will give me security options but once I put in the password and

  • In Service Tickets-Adding Buttons-transaction-launcher

    Hi i need two information's.. 1.how to add buttons in the service tickets after Escalate and save button. 2.I have to retrieve the value of some fields in the categorization schema based on the service ticket organization..    its urgent for me.   i

  • Stalled installation on OSX Mountain Lion.

    While upgrading to Mountain Lion, I get as far as "Preparing to install. Your computer will restart automatically" and that's all. Even left overnight, I found it still there in the morning. Everything else seems to work fine. I would like to complet

  • Documents related to PI

    Hi Friends, I am new to PI and finding it difficult to locate some good material on PI online. Could someone kindly help me with locating some documents related to SAP PI. Thank you in advance. Warm Regards, Balaji.K

  • Create User Id

    Hello All, I just installed Solaris Express, Developer Edition. And the only User Id is root. I am not sure that I want to practice and work in the root id. I am not sure, but to me it seems a bit risky. However, I do not know how to create a new use