Skip to Content
author's profile photo Former Member
Former Member

Error in perform

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 08, 2014 at 08:05 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2014 at 07:24 AM

    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.


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2014 at 07:24 AM


    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2014 at 07:38 AM

    Hi Meenakshi,

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

    Regards,

    Sudeesh Soni

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 08, 2014 at 07:43 AM

    Hi,

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

    Regards

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 08, 2014 at 08:20 AM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.