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

Function Module to delete records from standard table.

Former Member
0 Likes
5,093

Hi Experts,

I need to delete entries from standard table HRUS_D2 using where condition. Is there any function module for this purpose. If anybody worked on this please help me.

Thanks and regards,

Shivanand Kalagi.

16 REPLIES 16
Read only

Former Member
0 Likes
2,880

hi shiv,

this link will help you:

http://abap4.tripod.com/SAP_Functions.html

Read only

0 Likes
2,880

How would a list of hundreds of functions modules (some obsolete) help in this case?

Read only

Former Member
0 Likes
2,880

Hi Shivanand,

You may not get any FM for this , just write down a report of FM for this as per your requirement,

no other way for this........

Read only

christine_evans
Active Contributor
0 Likes
2,880

>

> Hi Experts,

> I need to delete entries from standard table HRUS_D2 using where condition. Is there any function module for this purpose. If anybody worked on this please help me.

>

> Thanks and regards,

> Shivanand Kalagi.

Updating SAP standard tables directly is not usually a recommended option. However, on HRUS_D2 apparently it can be an option. In our 'Practical Workflow for SAP' manual, published by SAP Press, in the Agents section on page 130 it says, referring to this table:

However, if you want to maintain this table centrally, this is one of the few cases where the table is sufficiently straightforward and independent of other tables that creating your own maintenance view of the table is a reasonably safe option.

So, supported by this opinion and having been assured by everyone else that for this table this was an ok thing to do, I built a BSP that maintains user substitutes by doing direct updates on HRUS_D2. And I've not had any problems so far.

Read only

0 Likes
2,880

Christine...

I was watching my favourite show in SDN and You are spoiling the show....

pk

Read only

0 Likes
2,880

>

> Christine...

>

> I was watching my favourite show in SDN and You are spoiling the show....

>

>

> pk

????????

Read only

0 Likes
2,880

>

????????

I believe that PK was saying that the thread was quickly de-generating into something more interesting, but not very useful. Your straightrforward answer appears to solve the problem, but the tangent it was headed for is likely no more.

Rob

Read only

0 Likes
2,880

>

> >

????????

>

> I believe that PK was saying that the thread was quickly de-generating into something more interesting, but not very useful. Your straightrforward answer appears to solve the problem, but the tangent it was headed for is likely no more.

>

> Rob

Thank you for the explanation. I apologise for spoiling the fun.....

Read only

0 Likes
2,880

>

> I believe that PK was saying......

..But i believe that KP was saying.....;-)

Cheers,

Amit.

Read only

0 Likes
2,880

>

> ..But i believe that KP was saying.....;-)

I apoligize to PK if I stole his voice;-)

Rob

Read only

0 Likes
2,880

>

> I apoligize to PK if I stole his voice;-)

..And I apologize to KP if I addressed him wrongly;-)

Read only

0 Likes
2,880

Christine,

Rob's dissection of my statement is spot-on....as always

Lost the count of the number of occasions where people ask "How to delete data directly from Standard table" or in some cases "how to delete standard table", etc etc...

A lot of people dont seem to understand the implications of deleting data directly from SAP tables. the worst part is the number of replies encouraging the OP for a direct deletion.

Its commendable of you to create an awareness about the implications. So you dont have to be sorry

Kishan.P (a.k.a) pk

Read only

0 Likes
2,880

>

> Kishan.P (a.k.a) pk

Is there any history behind PK--


>>KP--


>>OMG now A.K.A?

Can i expect now XXX?

Read only

0 Likes
2,880

>

> Is there any history behind PK--


>>KP--


>>OMG now A.K.A?

[a.k.a|http://en.wikipedia.org/wiki/A.k.a] => also known as

kishan.P

Read only

0 Likes
2,880

Thank you for clarify my doubt.

Before I was bit hesitated ,as thought ["Awesomely Kick Ass".|http://www.acronymattic.com/AKA.html]

PS:So i would suggest you to not use Internet slang words for avoiding confusion

Cheers,

Amit.

Read only

Former Member
0 Likes
2,880

Answered