‎2007 Oct 09 3:21 PM
When I create a function in SE37 and want to add a table. sap complains that it is getting obsolete
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 try to folow this recommendation and not use tables anymore but when I change it according to the text above I can't append the workarea to the changing parameter because the occurs n specification is missing in the parameter ???
quite confusing what to use now to transport tables from and to an function ?
the changing parameter is type of structure bapiagr ?
what do I do wrong here and why are tables getting obsolete ??
kind regards
arthur
‎2007 Oct 09 3:40 PM
Hi, if you are using SAP ECC 6.0 , the table parameters is obsolete .
is your FM is RFC enabled?
if it is RFC enabled means , table parameter will work.
to check FM is it RFC enabaled or not ,go to se37 and select attributes tab,
‎2007 Oct 09 3:28 PM
Hi A.
if you want to declare a table within your FM changing parameter definition you have to use an existing table type.
Gt to SE11 and create DATA TYPE <mytabletype> . A popup will disappear with radiobuttons now you can choose table type. Now you can include tables structures within your table type. These table types you can use for your fm.
Kind Regards
Henner
<b>Award if helpful</b>
‎2007 Oct 09 3:32 PM
yep but I also tried it with an existing ztable and it was still not working . the same error occurs
‎2007 Oct 09 3:40 PM
Hi, if you are using SAP ECC 6.0 , the table parameters is obsolete .
is your FM is RFC enabled?
if it is RFC enabled means , table parameter will work.
to check FM is it RFC enabaled or not ,go to se37 and select attributes tab,
‎2007 Oct 09 3:51 PM
this seems to be the sollution. for my curiosity how does it change the behaviour of the function in general. can you select remote without any other hidden things that work or doesn't work behind it suddenly ??
what is the difference ? except for the table parameter suddenly not being obsolete
‎2007 Oct 09 3:44 PM
Hi A.
yes that's what i wrote you: your ztable will not work as a changing parameter,
create a table type and include your ztable in the table type as the line type.
Then use your table type that has structure of your ztable as parameter.
- will work !!!
Kind Regards Henner