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: 

Import data within function called in background

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

Hi,

This will solve your problem,

Regards,

Samson Rodrigues.