11-29-2007 8:31 PM
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.
11-29-2007 8:58 PM
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
11-29-2007 8:38 PM
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
11-29-2007 8:58 PM
I am using a function module and the output table is the table which is declared in the tables parameter.
11-29-2007 9:07 PM
you must refresh the tables before select or passing itto FM
-Pavan
11-29-2007 8:46 PM
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
11-29-2007 8:46 PM
11-29-2007 8:58 PM
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
11-29-2007 9:11 PM
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.