Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2007 at 10:55 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.