09-12-2008 1:37 PM
Hi,
i call a rfc function module in threading mode (task):
CALL FUNCTION 'Z_TEST'
STARTING NEW TASK lv_taskname
DESTINATION lv_destination_func
destination is the same system (it has to be a rfc fm to use the "starting new task" clause).
Now i want to share memory (internal table, application log) beetween the program and the called function module 'Z_TEST', but i don't know how!? the application log and the global parameters in function group are not known in called function module 'Z_TEST'!!??
09-12-2008 1:45 PM
Hi
The calling program and called function belong to different program so they can't see the global data, if you need it u should transfer them by interface of fm but why u need to do it?
Max
09-12-2008 1:59 PM
The problem is, in main program i create a application log and transfer the log_handle to Z_TEST.
There, i want to add messages into this application log, but i don't get access to it, i got the message that the application log doesn't exist..
09-12-2008 2:16 PM
Hi,
Before calling the Z_TEST , please save the application log
using
BAL_DB_SAVE_PREPARE (prepare to save)
BAL_DB_SAVE (save)
then in Z_TEST use the handle to open log and then use
BAL_LOG_MSG_ADD (add messages)
May this will be help
a®
09-12-2008 2:31 PM
Hi
U can also try to tansfer all data you need by a new fm belonging to the same function group of fm Z_TEST.
Max