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

Static Internal Table

Former Member
0 Likes
2,872

Xperts,

say Exit001 is called 2-3 times for Transaction T1.

and in my exit i have some select stmts..

If i use Static internal table..can i avoid multiple times fetching of data from database.??

1 REPLY 1
Read only

Former Member
0 Likes
883

I got the ans...

it is for u guys..

If you use the STATICS statement instead of DATA when you

declare local data objects, their lifetime is extended to the overall

program lifetime. Therefore, such data objects have the same lifetime as

global data objects, but their visibility is still limited to the respective

modularization unit.

You can use the STATICS statement in function modules, subroutines,

and static methods.

Local data objects are overwritten with their start value or initial value each time

they are called by the surrounding modularization unit (unless they were declared

with the STATICS statement).

Static retain their values when an executable program calls several function

modules in the same function group consecutively.

Thanks & Regards,

Anoop Chandran