Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CHALLENGE : DELETE RELATIONSHIPS IN BULK(BATCH)

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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