09-04-2008 10:46 AM
Hi,
I am facing a weird error. The function module i created does not allow me to define table parameters and it gives the error "Table parameters are obsolete".
Please someone help me on this
Thanks,
Rohit.
09-04-2008 10:51 AM
Hi Rohit,
Thats just a WARNING message....So if u insist on using a table paramter just hit 'Enter' and continue working (probably u'll have to use 'LIKE' declaration)...
Else use a table type ..
~Piyush Patil
09-04-2008 10:49 AM
Tables parameters are obsolate by subroutines, not by functions. The problem is elsewhere...
09-04-2008 10:50 AM
Hi Rohit,
check whether your table paramter is created with passby value or not.
try
Regards,
Chinna
09-04-2008 10:51 AM
Hi Rohit,
Thats just a WARNING message....So if u insist on using a table paramter just hit 'Enter' and continue working (probably u'll have to use 'LIKE' declaration)...
Else use a table type ..
~Piyush Patil
09-04-2008 10:52 AM
Use 'LIKE' while defining table.
e.g.
T_ACTION LIKE ZSTRUC_SERV_NOT_TXT
where ZSTRUC_SERV_NOT_TXT is a structure.
Regards,
Aparna Gaikwad
09-04-2008 10:52 AM
Hi,
I think it is just a warning not an error, press enter to continue.
or
Create a table type in the Dictionary for the structure then use it.
Regards
Adil
09-04-2008 10:59 AM
Hi rohit,
You are absolutely right..These error messages we now get for new function module..
Tables parameters is no longer allowed .
You need to decalare either a table type in type-ppols or create a table type in the Dictionary for the structure then & then use it in the changing paramerters tab.
Best of luck,
Bhumika
09-04-2008 12:10 PM
>
> You are absolutely right..These error messages we now get for new function module..
> Tables parameters is no longer allowed ....
you are absolutely wrong.
any of you, saying the above, can you give an official reference, where SAP stating this?
09-04-2008 1:10 PM
Eric,
In ECC 6.0 this is what SAP say's when we use Tables paramters
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.
09-04-2008 1:12 PM
thanks Vijay! My apologies to everyone!
How comes this message? I created an FM one month ago in our new 6.0 system, used tables parameters as well, but did not get any message (also checked SLIN).