2011 Jun 01 10:36 AM
We can create a dynamic internal table in a report with Field Symbols : <itab> Type Standard Table. Can we also create a Z-Function module in se37 with this table as its parameter?If so how?
We can create a dynamic internal table in a report with Field Symbols : <itab> Type Standard Table. Can we also create a Z-Function module in se37 with this table as its parameter?If so how?
2011 Jun 01 10:47 AM
I doubt that, beacuse you nee dto define teh reference structure in type.Which is a data dictionary structure.
2011 Jun 01 10:52 AM
That precisely is my problem. Is there any way that I can give some dynamic reference there?
2011 Jun 01 10:54 AM
Hi.,
I think it is not possible as FM table parameter is Static type., Instead you create an importing parameter table_name of type DD02L-tabname and inside FM use Field Symbols and create dynamic table for table_name.
hope this helps u.,
Thanks & Regards,
Kiran
2011 Jun 01 12:25 PM
Hi,
Yes, You can pass generic internal table as the table parameter to the function module.
FUNCTION ZTEST.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" TABLES
*" T_OUTTAB
*"----------------------------------------------------------------------
Field symbols <gt_table>.type any table.
data: lr_data type ref to data.
get reference of t_outtab into lr_data.
assign lr_data->* to <gt_table>.
" Your source dode
ENDFUNCTION.
while creating function module pass the table parameter without define the type to function module.
For it processing required OOP knowledge.
Kind Rgds
Ravi
2011 Jun 21 12:13 PM
you can use generic table as parameter by using type as just table
2011 Jun 29 2:05 PM
yes you can create and in F.M you can do it as giving import and export parameters variables and also the status in programme
thanking you.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |