Skip to Content
0
Former Member
Mar 02, 2007 at 10:50 AM

CHALLENGE : DELETE RELATIONSHIPS IN BULK(BATCH)

33 Views

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