‎2010 Dec 20 6:41 AM
Hi
I am writing a function module to provide sales related data table . For that i created a structure of the out put fields i need to export as a table and assigning it to the final internal table in tables parameter. But when i tried to assign the structure i am getting error 'TABLES parameters are obsolete!' Message no. FL069.........
Diagnosis
TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as internal standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to such a formal parameter, an empty header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. In the case of formal parameters defined with TABLES, no value transmission is possible.
Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created in the function module for the internal table using the addition LIKE LINE OF itab of the DATA statement in the function module.
I am not getting where i am making mistakes here ? Pls help me
‎2010 Dec 20 6:46 AM
Instead of declaring the table in TABLES , feclare the internalt able in CHANGING parameters.
‎2010 Dec 20 6:46 AM
Instead of declaring the table in TABLES , feclare the internalt able in CHANGING parameters.
‎2010 Dec 20 7:11 AM
Hi,
What Typing i have to assign for passing table instead of wa_work arrea in changing.
‎2010 Dec 20 7:22 AM
Hi,
You have to create a table type with row type of the work area structure and assign it to the type of the changing parameter.
Then you will be able to pass table to the changing parameter.
Regards,
Immanuel.
‎2010 Dec 20 7:34 AM
Hi
I did not get u..i created a database structure of the type of the output table and that i need to assign in the export parameter.
‎2010 Dec 20 7:41 AM
Go to SE11 and in the Data Type: enter a Zname and when you click on create,you will have the option of creating the TableType.
‎2010 Dec 20 7:43 AM
Hi,
Since tables parameters are obselete you can use the importing, exporting & changing parameters to pass table to the FM by providing the type as any table type.
Follow the following steps to create a table type.
1. Go to SE11.
2. Choose the Data type option enter a name for the new table type.
3. Press create.
4. In the popup select the option Table type.
5. In the next screen provide the name of the structure you have created in the field "Row Type".
6. Save it in the appropriate development class.
This will create a table type.
In your function module provide the name of this table type you have created in the type of the changing parameter. Now you will be able to pass the table in the changing parameter.
Regards,
Immanuel.
‎2010 Dec 20 8:29 AM
Hi Immanuel
I did not get ur 5 th option. Where i can find 'row type'.................
‎2010 Dec 20 8:33 AM
Hi,
Row type is the field available in the screen that appears after the pop-up.
Here you have to provide the name of the database structure that you have already created to assign in the tables parameter.
The row of the table type will then follow the type of this structure.
Regards,
Immanuel.