Application Development 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: 

help in perform statement.

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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.

0 Kudos

hi,

in additon to my above post there is no other alternative for tables stmnt

Former Member
0 Kudos

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

pass this as a CHANGING PARAMETER.

Former Member
0 Kudos

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.

amit_khare
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.