‎2014 Oct 31 5:53 PM
All,
I have searched the forum and web for a solution but did not get any success.
Following is my process
1) Generate ALV List 1 from Report 1
2) click button on ALV List 1
3) Submit Report 2 as a job from Report 1.
4) After calling JOB_CLOSE in Report 1, I want to display the text or another ALV but it shows me the ALV List 1.
Also, Is it possible to send the spool as an email once the job is completed.
Please help.
‎2014 Oct 31 6:38 PM
so you want your report1 to show o/p of report 2 after job completion? then why submit in background, any specific reason?
‎2014 Oct 31 6:45 PM
in the submit program, there are lots of db commits and hence it needs to be done in background.
‎2014 Nov 01 7:15 AM
Is the execution time too long? db commits should not be a problem in foreground. once you run the job you would be able to get the o/p on screen, there can be workarounds as reading the list from spool and displaying it again(not sure need to check out various possibilities) but directly the ALV wont show up.
‎2014 Nov 03 2:36 PM
All,
I did a different process to get to the solution. It is still in testing with the functional team. Assuming they accept the solution, here it is for reference:
I had a question on the Step 4 mentioned above.
In order for my text to be displayed, I wrote another ALV to display the text.
On the ALV output, i created 2 buttons
1) clicking one will take them to SM37 for job
2) clicking another will take them to SP01 for spool
Let me know if anyone would like to have code snippet i used and i will be glad to share.
Regard,
Salil