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

Refersh Internal Table ?

Former Member
0 Likes
533

Hello,

I a RFC call .at the end of the function Call returns to an internal table with new rows appended to it .however when we check at the invoking code ,i had seen that it takes a while for the newly appended rows to be refeshed in the internal table, in order to avoid this , i have to introduce to a wait upto Statement

but it leads to the performance overhead

Pls suggest the alternative way to solve this problem

Hello,

I a RFC call .at the end of the function Call returns to an internal table with new rows appended to it .however when we check at the invoking code ,i had seen that it takes a while for the newly appended rows to be refeshed in the internal table, in order to avoid this , i have to introduce to a wait upto Statement

but it leads to the performance overhead

Pls suggest the alternative way to solve this problem

2 REPLIES 2
Read only

Former Member
0 Likes
498

Use Function 'ENQUE_SLEEP' as shown below:

CALL FUNCTION 'ENQUE_SLEEP'

EXPORTING

SECONDS = '5'

EXCEPTIONS

SYSTEM_FAILURE = 1

OTHERS = 2.

Here system will wait for 5 seconds for next statement to be executed.

You can give any number of secods as per your wait timings.

Regds,

Anil

Read only

Former Member
0 Likes
498

Hi,

In ALV, to refresh the table you have to call the method "refresh_table_display".

It has the syntax very similar to creating the table.

It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)

or

if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications).

the synatx is :-

call method grid (name of grid )->refresh_table_display

exporting

IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)

I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).

Regards,

Saurabh Goel