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

help in perform statement.

hi

can any one help me wid this..

PERFORM batch_determ_e290 TABLES disqty

gt_disqty

gt_disqty_res

USING gv_total_quan

gv_lower_quan

gv_high_quan

no_of_split

quan_to_dis.

this is the perform can any one tell me the use of TABLES in this.

and i m supposed to write this perform with out TABLES so is there any way to do it?

plz help ..

thanx.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 04:28 AM

    hi,

    the tables stmnt is used to pass the refernce of the table to the subroutine. any changs made to table in the form..endform. will affect the contents of the table.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 04:29 AM

    Tables is an old style of programming. define a table type for disqty and

    pass this as a CHANGING PARAMETER.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 04:29 AM

    Neha,

    Try the following,

    instead of tables, pass the entire table itslef with CHANGING.

    PERFORM batch_determ_e290 CHANGING disqty[]

    gt_disqty[]

    gt_disqty_res[]

    USING gv_total_quan

    gv_lower_quan

    gv_high_quan

    no_of_split

    quan_to_dis.

    this clue may help you.

    Regards,

    Sujatha.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 04:30 AM

    Hi,

    The Tables extension Perform is used to transfer the referenced tables in to FORM. this is basically used when we are declaring FORM in different INCLUDES than the actual report.

    If you wanna remove this then just declare the FORM also in the same report as of PERFORM.

    Regards,

    Amit

    Reward all helpful replies.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 04:32 AM

    INSTEAD OF TABLES YOU CAN USE USING OR CHANGING ALSO BUT YOU HAVE TO PASS ONLY TABLE BODY[].

    IF WE ARE PASSING BY TABLES PARAMETER YOU CAN PASS HEADER LINE AND BODY (IF IT IS A WITHOUT HEADER LINE TABLE THE AUTOMATIC HEADER LINE WILL CREATE IN THE FORM ) AND YOU CAN ACCESS IT THROUGH HEADER LINE BUT BY USING OR CHANGING YOU CAN PASS ONLY THE BODY OF THE TABLE.

    REGARDS

    SHIBA DUTTA

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 04:33 AM

    Hi Neha,

    TABLES parameter is used for passing tables into the subroutine.

    U can use USING n CHANGING.

    Addition 2

    ... USING u1 u2 u3 ...

    Addition 3

    ... CHANGING c1 c2 c3 ...

    Effect

    These additions must be followed by type-related actual parameters for all USING and CHANGING parameters of the called subroutine. The two additions are equivalent. Only the order of the parameters is important. The first USING or CHANGING parameter of the PERFORM call is transferred to the first USING or CHANGING parameter of the subroutine, the second to the second, and so on. For documentation reasons you should, when calling, use the same addition as with the subroutine definition.

    If you want to pass TABLES into the subroutine u need to use that TABLES sattement itself.

    Regards,

    Priyanka.

    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.