Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Top include in Function module

Former Member
0 Likes
753

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.

5 REPLIES 5
Read only

Former Member
0 Likes
687

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

Read only

Former Member
0 Likes
687

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

Read only

arun_purohit
Participant
0 Likes
687

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

Read only

varma_narayana
Active Contributor
0 Likes
687

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.

Read only

Former Member
0 Likes
687

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