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

error - subroutine

Former Member
0 Likes
478

Hi All,

Im getting this error " Different number of parameters in FORM and PERFORM (routine import_i, number of formal parameters:0, number of actual parameters:2)

This is the code.

if not aa_ifil1 is initial.

perform import_i_a using aa_ifil1 'A'.

endif.

if not aa_ifil2 is initial.

perform import_i_b using aa_ifil2 'B'.

endif.

if not aa_ifil3 is initial.

perform import_f_a using aa_ifil3 'A'.

endif.

if not aa_ifil4 is initial.

perform import_f_b using aa_ifil4 'B'.

wat is teh issue.

regards

Ab

Edited by: AbUser on Apr 21, 2008 1:09 PM

3 REPLIES 3
Read only

Former Member
0 Likes
445

hI ABU IN PERFOMR U ARE USING 2

perform import_i_a using aa_ifil1 'A'.M,IGHT BE U R NOT USIGN ANY HTING IN THE FORM STATMENT CHEKC THE code once and let me know for further..

regards..

Read only

Former Member
0 Likes
445

can you paste your form statement

you must be writing your form as

abc type aa_ifil1 .

form import_i_a using abc 'a'.

endform.

Read only

Former Member
0 Likes
445

You are passing 2 parameters to the subroutine.

Check that in the declaration of subroutine, there are 2 formal parameters under USING .

If yes, go out of the program. and open it once again and check.