2010 Apr 22 3:57 PM
Hi experts,
In a method I do:
SUBMIT zemr0044 USER sy-uname
VIA JOB lc_jobname
NUMBER lv_jobcount
AND RETURN.
Before this submit I have done:
IMPORT ls_header = ls_header FROM DATABASE.
IMPORT iv_distr = iv_distr from DATA BUFFER.
IMPORT lt_items = lt_items FROM DATA BUFFER.
In program ZEMR0044 I do:
IMPORT ls_header = ls_header FROM MEMORY ID 'ls_header'.
IMPORT iv_distr = iv_distr from MEMORY ID 'iv_distr'.
IMPORT lt_items = lt_items FROM MEMORY ID 'lt_items'.
---> Unfortunatly it doesn't work.
If I do SUBMIT zemr0044 AND RETURN it works fine.
It seems that the data import doesn't works in background.
How can I transfer data from my method to my program ?
Program must be launched in background.
Thanks guys.
2010 Apr 22 4:14 PM
> Before this submit I have done:
>
> IMPORT ls_header = ls_header FROM DATABASE.
> IMPORT iv_distr = iv_distr from DATA BUFFER.
> IMPORT lt_items = lt_items FROM DATA BUFFER.
>
> In program ZEMR0044 I do:
>
> IMPORT ls_header = ls_header FROM MEMORY ID 'ls_header'.
> IMPORT iv_distr = iv_distr from MEMORY ID 'iv_distr'.
> IMPORT lt_items = lt_items FROM MEMORY ID 'lt_items'.
Doesn't fit together...are you EXPORTING to MEMORY ID before the submit? This will store data in "ABAP memory" in the context of a user session. I strongly believe by submitting in background this context is lost.
Check out all the other options of the IMPORT and EXPORT statements for alternatives like shared memory.
Thomas
Hi experts,
In a method I do:
SUBMIT zemr0044 USER sy-uname
VIA JOB lc_jobname
NUMBER lv_jobcount
AND RETURN.
Before this submit I have done:
IMPORT ls_header = ls_header FROM DATABASE.
IMPORT iv_distr = iv_distr from DATA BUFFER.
IMPORT lt_items = lt_items FROM DATA BUFFER.
In program ZEMR0044 I do:
IMPORT ls_header = ls_header FROM MEMORY ID 'ls_header'.
IMPORT iv_distr = iv_distr from MEMORY ID 'iv_distr'.
IMPORT lt_items = lt_items FROM MEMORY ID 'lt_items'.
---> Unfortunatly it doesn't work.
If I do SUBMIT zemr0044 AND RETURN it works fine.
It seems that the data import doesn't works in background.
How can I transfer data from my method to my program ?
Program must be launched in background.
Thanks guys.
2010 Apr 22 4:03 PM
Hi
"Ugly" solution for this specific problem is to create table in database and use it for values you need, but usually you can avoid it.
Best Regards
Yossi
2010 Apr 22 4:14 PM
> Before this submit I have done:
>
> IMPORT ls_header = ls_header FROM DATABASE.
> IMPORT iv_distr = iv_distr from DATA BUFFER.
> IMPORT lt_items = lt_items FROM DATA BUFFER.
>
> In program ZEMR0044 I do:
>
> IMPORT ls_header = ls_header FROM MEMORY ID 'ls_header'.
> IMPORT iv_distr = iv_distr from MEMORY ID 'iv_distr'.
> IMPORT lt_items = lt_items FROM MEMORY ID 'lt_items'.
Doesn't fit together...are you EXPORTING to MEMORY ID before the submit? This will store data in "ABAP memory" in the context of a user session. I strongly believe by submitting in background this context is lost.
Check out all the other options of the IMPORT and EXPORT statements for alternatives like shared memory.
Thomas
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |