Skip to Content
Former Member
Jan 04, 2007 at 07:47 PM

Passing tables to function modules


Hi, I am trying to port some old ABAP code to the latest release that no longer supports passing TABLES to function module, but tells you to use CHANGING instead. I can't seem to get to the whole thing to work. I have a program that creates an internal table with a header line, passes it to the function module, and the function module is supposed to fill the table. I tried changing the parameter in the function module from TABLES to CHANGING, and use TYPE to reference a database type (which happens to be a view). But the code in the function module that referenecs the table being passed (to fill it) complains that it is not an internal table. I tried using TYPE ANY TABLE in the parameter definition, and then it complains that it is not a "standard" table when it goes to fill it. What I'm trying to do should be simple, but I can't seem to get the right combination of things to work. I cant seem to find a step-by-step on converting from the use of TABLES to CHANGING . Any advice ?? Thanks