‎2007 Mar 14 1:00 PM
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
‎2007 Mar 14 1:01 PM
Use HR_INFOTYPE_OPERATION.
Regards,
Amit
Reward all helpful replies.
‎2007 Mar 14 1:02 PM
Hi,
Use the Fun Module
HR_ECM_DELETE_INFOTYPE
reward if useful.
Regards,
Anji
‎2007 Mar 14 1:02 PM
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.***
‎2007 Mar 14 1:08 PM
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
‎2007 Mar 14 1:10 PM
‎2007 Mar 14 1:12 PM
Hi,
use FM HR_INFOTYPE_OPERATION with OPERATION = 'DEL'.
Regards, Dieter
‎2007 Mar 14 2:15 PM
I already tried with those functions and it's still slow.
Do you have any more ideas?
Thanks.
BR,
Sónia Gonçalves
‎2007 Mar 14 2:41 PM
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