‎2007 Sep 20 10:00 AM
Hi All,
I have written a select statment in a FM.I want to retain the values selected so that it is available even when the FM is executed next time.Is it possibe to retain values selected by declaring the internal table in the TOP include?
Thanks,
Rakesh.
‎2007 Sep 20 10:51 AM
hi Rakesh,
Is it possibe to retain values selected by declaring the internal table in the TOP include?
Until you clear the internal table ,the values are retained .
Regards
Siva
‎2007 Sep 20 11:00 AM
Hi,
i think it is not possible why bec when ever u close ths program sys automatically clears the data from work area or roll area.
So you could not retain the values selected by early.
Regards,
Vijay
‎2007 Sep 24 9:29 AM
Hi, Rakesh
You have to make a Z_table table
and populate it with the required values of function module
and u will b able to use those values when next time u execute u r FM.
hope it helps.
-Arun
‎2007 Sep 24 11:32 AM
HI Rakesh..
When you store the Records in the Internal Table which is declared in TOP include it can be shared by all the FMs within the Function group , but only during the Execution of the Program. After the execution it will be deallocated.
So it is not possible to Retain.
reward if Helpful.
‎2007 Sep 24 11:36 AM
Hi,
It is not possible to hold the values after the execution of the function module, it will be possible to hold the values during the Execution, but you have a way to get the values,, you can use the EXPORT TO DATABASE and IMPORT FROM DATABASE
Look at the below link for more details
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/export01.htm
Regards
Sudheer