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

Display output using Write or ALV

former_member188001
Active Participant
0 Likes
739

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.

4 REPLIES 4
Read only

Former Member
0 Likes
707

so you want your report1 to show o/p of report 2 after job completion? then why submit in background, any specific reason?

Read only

0 Likes
707

in the submit program, there are lots of db commits and hence it needs to be done in background.

Read only

0 Likes
707

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.

Read only

0 Likes
707

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