Application Development and Automation 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: 
Read only

delete obejcts

Former Member
0 Likes
516

Hallow I wont to delete objects that I find in the select on hrp1001. I heard about function that can delete from data base. how can I do that in my program thanes.

(i now that it possible to do it by hand but not for that i mean)

SELECT objid

FROM hrp1000

INTO wa_itab-objid

WHERE otype ='S'

AND objid GE '7000000'.

APPEND wa_itab TO itab.

IF sy-subrc = 0 .

<b> SELECT SINGLE objid

FROM hrp1001

INTO wa_itab-objid

WHERE objid = wa_itab-objid

AND otype = 'P'

AND rsign = 'A'

AND relat ='008'.

ENDIF.

ENDSELECT.</b>

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
478

Use teh function moduel RH_OBJECT_DELETE

~Suresh

Use teh function moduel RH_OBJECT_DELETE

~Suresh

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
479

Use teh function moduel RH_OBJECT_DELETE

~Suresh

Read only

0 Likes
478

hi i now about this function but i dont how to use it in my program

mybe u can help.

regards