Application Development 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: 

How to refresh the data

Former Member
0 Kudos

Hi friends,

I have a problem while I am executing my function module.When I enter the input the input parameters and if I execute I am getting the output.If I come back to the

input screen and if i give some other input values it is showing the same output.

But if I go to the first screen and If I execute the fm it is giving the correct output.

I think I am not clearing the output table.My output internal table is itab.

Could anyone tellme how to refresh the data and where should I write this statement , whether at the begining or after the ENDFUNCTION.

Thanks in advance,

Vishnu.

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

In your function module if you are using the internal variables, ranges and tables than you need to first clear them before passing any new data before doing that.

Regards,

Naimesh Patel

7 REPLIES 7

Former Member
0 Kudos

What is your program type ?

is it module pool ?

if so write the refresh itab in PBO of your screen.

if it is report then write the refresh itab in start-of-selection ( Starting).

Thanks

Seshu

0 Kudos

I am using a function module and the output table is the table which is declared in the tables parameter.

0 Kudos

you must refresh the tables before select or passing itto FM

-Pavan

Former Member
0 Kudos

Hi Vish,

Are you using any append or modify statements? Clear work area after every append and modify statements. that will be enough.

Regards,

Satish

Former Member
0 Kudos

Try to refresh your itab

refresh: itab[].

-Pavan

naimesh_patel
Active Contributor
0 Kudos

In your function module if you are using the internal variables, ranges and tables than you need to first clear them before passing any new data before doing that.

Regards,

Naimesh Patel

0 Kudos

Hi Naimesh,

I have cleared all my import parameters after passing into my final output table.( Before END FUNCTION ) and it is working now.

Thanks for ur effort.

Vishnu.