02-27-2007 4:26 AM
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.
02-27-2007 4: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.
02-27-2007 4:29 AM
hi,
in additon to my above post there is no other alternative for tables stmnt
02-27-2007 4:29 AM
Tables is an old style of programming. define a table type for disqty and
pass this as a CHANGING PARAMETER.
02-27-2007 4: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.
02-27-2007 4: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.
02-27-2007 4: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
02-27-2007 4: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.