Application Development and Automation 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: 
Read only

Problems with SUBMIT and EXPORTING LIST TO MEMORY

Former Member
0 Likes
1,257

Hi,

I have a program that executes another report using a submit call, then the output of this submit is retrieved to the program using the LIST_TO_MEMORY FM. Source code it's something like this:


SUBMIT rptime00 
             EXPORTING LIST TO MEMORY AND RETURN
             WITH SELECTION-TABLE t_params
             USER 'my_user'.

CALL FUNCTION 'LIST_FROM_MEMORY'
     TABLES
         listobject = t_table
     EXCEPTIONS
         not_found  = 1
         OTHERS     = 2.

This code works fine if I execute the program in foreground. But when I try to execute the report in background (F9 instead of F8 for example), submit works fine but LIST_FROM_MEMORY returns a NOT FOUND exception instead of the output of submitted program.

So, is it possible to retrieve the output of a program called via submit when the report that executes the submit is executed in background?, how can I retrieve the output of submit when the report is executed in background?

thanks in advance

Hi,

I have a program that executes another report using a submit call, then the output of this submit is retrieved to the program using the LIST_TO_MEMORY FM. Source code it's something like this:


SUBMIT rptime00 
             EXPORTING LIST TO MEMORY AND RETURN
             WITH SELECTION-TABLE t_params
             USER 'my_user'.

CALL FUNCTION 'LIST_FROM_MEMORY'
     TABLES
         listobject = t_table
     EXCEPTIONS
         not_found  = 1
         OTHERS     = 2.

This code works fine if I execute the program in foreground. But when I try to execute the report in background (F9 instead of F8 for example), submit works fine but LIST_FROM_MEMORY returns a NOT FOUND exception instead of the output of submitted program.

So, is it possible to retrieve the output of a program called via submit when the report that executes the submit is executed in background?, how can I retrieve the output of submit when the report is executed in background?

thanks in advance

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
514

try

SUBMIT rptime00

EXPORTING LIST TO MEMORY AND RETURN

WITH SELECTION-TABLE t_params.

without user

hope that helps

Andreas

Read only

0 Likes
514

Hi Andreas,

I'd also tried it before posting here, but it doesn't work either

I'm starting to think that LIST_FROM_MEMORY doesn't work with reports launched in background mode

Anyway thanks for your answer

Best regards