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

Issue with calling subroutine

Former Member
0 Likes
521

Hi,

Issue is : DUMP

A PERFORM was used to call the routine "AUTHORITY" of the program "RSAQEXCE".

The current call contains 1 actual parameter(s),

but the routine "AUTHORITY" expects 2 parameters.

Pls check the code below :

form authority using tname type tname

p_auth_classname type AQS_CLSNA.

  • nicht bei generischen BW Extraktoren

if %memmode = 'D'.

exit.

endif.

perform authority_init using p_auth_classname.

call method iref->tab_access_authority

exporting table = tname

exceptions others = 1.

if sy-subrc <> 0.

message s316 with tname.

leave list-processing.

endif.

endform.

Form for authority_init

form authority_init using p_auth_classname type AQS_CLSNA.

data: l_oref type ref to object,

l_wa_aqif type aqif_c.

if iref is initial.

create object l_oref type (p_auth_classname).

iref ?= l_oref.

endif.

endform.

Not able to locate the issue

Pl check and let me know the issue.

Thankx in adv,

siva

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
445

The FORM routine has this signature:

form authority

using

tname type tname

p_auth_classname type AQS_CLSNA.

which means it has TWO using parameters TNAME and P_AUTH. So when calling this subroutine you will have to provide TWO parameters as well.

Read only

Former Member
0 Likes
445

A parameter included in routine and issue fixed