12-05-2007 9:25 AM
All,
I have got a problem with importing value within a function launched in background.
I would like to retrieve the transaction code of a program which launch a function in background task mode but i couldn't find the fine solution
I called a function in BACKGROUND TASK wihin a specific transaction. Before calling this function I stored the value of the field SY-TCODE into a memory ID using the statement EXPORT xxxx TO MEMORY ID yy where xxxx = SY-TCODE.
I would like retrieve the transaction code from a user-exit which is called within the function called in BACKGROUND. I used the statement IMPORT xxxx FROM MEMORY ID yy. But it doesn't work when the function is called in BACKGROUND TASK. (anyway it works fine when function is called without BACKGROUND TASK)
Moreover I can't use the transaction code as import parameter of the function.
Is threre another statement which allows importing data from memory within function called in background?
Thanks in advance for your answers.
Regards,
PFO
12-05-2007 9:30 AM