Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

I get warning error when declaring table in function

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


Former Member replied

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,

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question