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

RH_DELETE_INFTY No Authorizations

Former Member
0 Likes
1,095

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

7 REPLIES 7
Read only

former_member194669
Active Contributor
0 Likes
955

Hi,

After error occured please run SU53 and consult with your security team

aRs

Read only

Former Member
0 Likes
955

Hi Mark,

May be you dont have the authorization to delete infotype records. Cantact your Basis or Security guys.

Regards

Aneesh.

Read only

suresh_datti
Active Contributor
0 Likes
955

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

Read only

0 Likes
955

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.

Read only

0 Likes
955

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

Read only

0 Likes
955

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.

Read only

0 Likes
955

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.