Skip to Content
author's profile photo Former Member
Former Member

Import data within function called in background


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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:30 AM


    This will solve your problem,

    Import/Export statement not working..


    Samson Rodrigues.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.