09-16-2008 7:46 PM
Hi all,
i have small doubts i.e..
1) when we call a function module in a program,
into which memory both the function module and program are lodaded i.e.. both are loaded into one memory or loaded into different memories.
2) when we call a function module in a program,
only function module is loaded or total function group is loaded into memory.
3) can we append records to any table ....
i.e.. standard table, sorted table, hashed table..
09-16-2008 8:14 PM
1)
If you call a function module within a program they will be loaded into the same LUW (logical unit of work) hence you have access to the report variables even if you are within the function module.
in the debugger: (Report_name)variable_name
in the code:
constants: lc_variable type char60 value '(Main_Program)Variable_name'.
data: lv_temp type variable_type.
FIELD-SYMBOLS: <fs_any> type variable_type. assign (lc_variable) to <fs_any>. if <fs_any> is assigned.
lv_temp = <fs_any>.
endif.
In this case you would have the variable content from the main program in lv_temp in the function module
(2)
I am not sure about the whole function group, but the main program and the data declarations definitely are because you are using those and in case you have form routines in there they are loaded as well.
Therefore I would say that the whole function group is loaded
(3)
Standard - YES
Sorted - YES - however this will cause the table to be resorted
Hashed - No append statement possible
Hope that helps,
Michael
09-16-2008 8:24 PM
Thank u for your quick response,
can i known why we cannot append record to hashed table.