2007 Jul 09 7:17 PM
Hi All,
I am trying to delete all 1005 infotype records between start and end date with FM RH_DELETE_INFTY but I keep getting exception NO Authorizations.
Can anyone please guide me in the right direction?
Thanks,
Mark
Hi All,
I am trying to delete all 1005 infotype records between start and end date with FM RH_DELETE_INFTY but I keep getting exception NO Authorizations.
Can anyone please guide me in the right direction?
Thanks,
Mark
2007 Jul 09 7:31 PM
Hi,
After error occured please run SU53 and consult with your security team
aRs
2007 Jul 09 7:52 PM
Hi Mark,
May be you dont have the authorization to delete infotype records. Cantact your Basis or Security guys.
Regards
Aneesh.
2007 Jul 09 8:25 PM
Pass the parameter AUTHY as SPACE in your function call to RH_DELETE_INFTY . By default it is set to 'X' resulting in an Authorization Check.
~Suresh
2007 Jul 09 8:52 PM
Thanks for your very helpful response Suresh.
I am not getting the Authority exception anymore but I am getting "other" exception now. I tried to debug but can't find the reason.
Am I missing something?
CALL FUNCTION 'RH_DELETE_INFTY'
EXPORTING
vtask = 'S'
AUTHY = ''
TABLES
innnn = l_p1005
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
2007 Jul 09 9:13 PM
What version are you on? I see only the following 4 exceptions both on my 47 & ERP6 as well..
ERROR_DURING_DELETE Error when deleting
NO_AUTHORIZATION No Authorization
DELETE_FIRST_RECORD First Record Must Not be Deleted
CORR_EXIT Error/Termination While Assigning Correction Number(You can use the Pattern option in your eidtor to get the function interface correctly into your Program )
~Suresh
2007 Jul 10 8:38 PM
Thanks Suresh. The exception is "Error_During_Delete". I am debugging the code to see why is this exception occurring but not no luck so far.
2007 Jul 10 9:03 PM
If there are more than one record for infotype 1005 for one JOB object, can I delete all the records with just one function call or does it have to be separate function calls?
Thanks.