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 in perform

Former Member
0 Likes
1,306

Hi

PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name

                                  SY-LINSZ.       " Line size


This is my perform used in my program showing error in extended check stating that 'Different number of parameters in form and perform( routine : &A, number of)


Pls suggest me an idea to resolve the problem...thank u

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,169

My for is

FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.

So how can i make my changes in perform

1.

PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name

                                  SY-LINSZ.       " Line size

2.FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.

8 REPLIES 8
Read only

Former Member
0 Likes
1,169

hi Meenakshi,

How many parameters when you define the 'HEADER' form in program 'ZSREPTIT' ?

Like this?

FORM header USING p_repid LIKE sy-repid p_linsz LIKE sy-linsz.

..........

ENDFORM.


Read only

sivaganesh_krishnan
Contributor
0 Likes
1,169


Hi ,


Please check whether the parameters defined under the same are same in numbers as declared in PERFORM statement and as declared in FORM .


Regards,

Sivaganesh

Read only

Former Member
0 Likes
1,169

Hi Meenakshi,

You are getting this error due to different number of parameters in PERFORMand FORM statement.

Regards,

Sudeesh Soni

Read only

pavanm592
Contributor
0 Likes
1,169

Hi,

Check wheather the FORM parameters of HEADER in program ZSREPTIT have the same number of parameters as your calling now .

Regards

Pavan

Read only

Former Member
0 Likes
1,170

My for is

FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.

So how can i make my changes in perform

1.

PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name

                                  SY-LINSZ.       " Line size

2.FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.

Read only

0 Likes
1,169

Meenakshi Gnanakannan wrote:

My for is

FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.

So how can i make my changes in perform

1.

PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name

                                  SY-LINSZ.       " Line size

2.FORM HEADER USING REPID value(SIZE) TITLE1 TITLE2 TITLE3 COLUMN_HEAD.


The form expects 6 parameters so you need to provide 6 of them.. if you provide less then you can replace with space keyword or with ' '. ir 0 if numeric ... see if it works right for you.


PERFORM HEADER(ZSREPTIT) USING W_REPID         " Report Name

                                  SY-LINSZ.       " Line size

                                   space

                                    space

                                    space

                                    space.


Read only

0 Likes
1,169

Hi Gaurab,

Thanks for your rely. Your answer works for me.....Thank a lot

Read only

Former Member
0 Likes
1,169

Hi,

this error comes when number of parameters of PERFORM and FORM are not equal.