09-26-2008 11:39 AM
Hi experts ,
Here is the problem...
I create a screen 100 and use the internal table to get data from database, and then press the button on screen 100 , it will call screen 200.
I use ABAP OO code in screen 200, and i want to keep the internal table with data that i get from the sceen 100 parts, but it seems that it just supports to create a new internal table and get data from database in ABAP OO. That means i need to create a new table to save the data in internal table ? Or there is any other solution something like exporting or memory id ...
ps . the internal table in screen 100 is declared in global area, the beginning of the code.
Please give me some advice, thanks a lot!
Regards ,
Claire
09-26-2008 12:26 PM
Hi,
You need to pass the table as Importing parameters to the Method you have written in screen 200.
santhosh
09-26-2008 12:24 PM
To pass a table to a class create a method (importing or exporting) with type table (reference type).
09-26-2008 12:26 PM
Hi,
You need to pass the table as Importing parameters to the Method you have written in screen 200.
santhosh
10-14-2008 7:17 AM
I have already know how to do, here is my code:
METHODS fill_tree importing itab2 like itab1.
CALL METHOD: me->fill_tree exporting itab2 = itab1.
In METHOD fill_tree,
declare
data: itab3 TYPE STANDARD TABLE OF itab,
itab3[] = itab1[].
It is useful to me, thanks a lot.