‎2008 Apr 04 9:13 AM
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.
‎2008 Apr 04 9:20 AM
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á