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

Submitting report into dialog program. spool created without data

Former Member
0 Likes
278

HI,

I have a requirement where i am submitting report in

back ground through the job. Though the job is getting finished

and spool is also getting created but the problem is that data

is not passed from the calling program which is Dialog program

to the called report.

Please let me know how to pass data from calling dailog program to called report program.

1 REPLY 1
Read only

Former Member
0 Likes
256

Hi!

You can call you program using it's selection screen, like this:

SUBMIT zmyreport

WITH so_abc IN ra_abc "where ra_abc is a range in your caller program

WITH p_xyz = lv_xyz "where lv_xyz is a variable in your caller program

IN BACKGROUND TASK.

You might try out using ABAP memory (I did not tried it with background task yet):

- caller program

EXPORT ZMY_INTERNAL_TABLE TO MEMORY ID 'ZMY_INTERNAL_TABLE'.

-called program

IMPORT ZMY_INTERNAL_TABLE FROM MEMORY ID 'ZMY_INTERNAL_TABLE'.

ZMY_INTERNAL_TABLE has the same structure in both programs.

Regards

Tamá