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 infotypes

Former Member
0 Likes
941

Hi,

I need the best way to delete infotypes without taking too much time. Maybe a function, that could do that as quick as possible.

Thanks in advance.

Best regards,

Sónia Gonçalves

8 REPLIES 8
Read only

amit_khare
Active Contributor
0 Likes
879

Use HR_INFOTYPE_OPERATION.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
879

Hi,

Use the Fun Module

HR_ECM_DELETE_INFOTYPE

reward if useful.

Regards,

Anji

Read only

Former Member
0 Likes
879

Hi Sónia Gonçalves,

Goto PM01.

Enter infotype number and click on delete. And this involves data & structure deletion so deletion manually and deletion through some function will take same time.

Hope that helps.

Regards

Kapadia

***Assigning points is the way to say thanks in SDN.***

Read only

Former Member
0 Likes
879

I really need to this by code, because is a job that runs every day to transfer data from interface table PTEX2000 to infotypes 2001 and 2002.

But before that transfer, I want to delete all the records in infotype 2001 and 2002 in the selected period.

Thanks.

regards,

Sónia Gonçalves

Read only

0 Likes
879

HR_INFOTYPE_OPERATION do the same just mention the operation type as delete.

This FM call a BDC on that infotype and delete/insert as per the operation selected.

It will also take care of all the necessary validations too.

Check this link for sample code -

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
879

Hi,

use FM HR_INFOTYPE_OPERATION with OPERATION = 'DEL'.

Regards, Dieter

Read only

Former Member
0 Likes
879

I already tried with those functions and it's still slow.

Do you have any more ideas?

Thanks.

BR,

Sónia Gonçalves

Read only

0 Likes
879

Sonia,

THe function module that others mentioned above should be fairly quick. Are you running your program in the foreground or background? It will run much more quickly in the background.

- April King