Application Development and Automation 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: 
Read only

Error in Function Module

Former Member
0 Likes
2,145

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

1 ACCEPTED SOLUTION
Read only

former_member242255
Active Contributor
0 Likes
1,606

Instead of declaring the table in TABLES , feclare the internalt able in CHANGING parameters.

8 REPLIES 8
Read only

former_member242255
Active Contributor
0 Likes
1,607

Instead of declaring the table in TABLES , feclare the internalt able in CHANGING parameters.

Read only

0 Likes
1,606

Hi,

What Typing i have to assign for passing table instead of wa_work arrea in changing.

Read only

0 Likes
1,606

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.

Read only

0 Likes
1,606

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.

Read only

0 Likes
1,606

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.

Read only

0 Likes
1,606

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.

Read only

0 Likes
1,606

Hi Immanuel

I did not get ur 5 th option. Where i can find 'row type'.................

Read only

0 Likes
1,606

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.