B/G Job's spool request to App.Server

Question:
Dear All .
We want a process like this :
User schedules a job using SM36 . A report is generated in the spool request . That report should be sent to Application server as a PDF File .
Now the point is , somehow we want it as a 2 step process wherein the 2nd step will pick up the report from spool list and transfer it to App. Server . There will not be any selection criteria and the 2nd step should automatically find out the relevant spool no.
Plz. advise me on this .
Tks. in advance.
Answer:
I think my previous msg. could not explain process completely .
So a few more comments :
User will schedule job as a 2 step process. The 2nd step will be the program name which will run after completing the batch job and generating spool request .
This prog. ( in the 2nd step ) will pick up the spool id and will send the spool as a PDF to App. server. Prob. is how will the 2nd prog. know of the spool id / job id generated from the 1st step ?
thanks in adv.
Answer:
I think my previous msg. could not explain process completely .
So a few more comments :
User will schedule job as a 2 step process. The 2nd step will be the program name which will run after completing the batch job and generating spool request .
This prog. ( in the 2nd step ) will pick up the spool id and will send the spool as a PDF to App. server. Prob. is how will the 2nd prog. know of the spool id / job id generated from the 1st step ?
thanks in adv.
I am not sure if I understand the question completely but it is possible to set a destination which converts the spool requist into a pdf file and write it down to a file ( I do not know how - but we ask our basis staff to do this) - some basis guys or oss should help to find some information about the settings. So if this fulfills your requirement then all you have to do, is to choose this destination instead of regular printer - and you would not need another step.
However table TBTCP should hold the spoolnumer for step one too. And probably there are some FM to find the relation between Spoolnumber and Jobstep.
Christian

More Articles:

Field-groups?
Read Zip FIle in ABAP?
debug pruchase order print program?
Table maintenance generator?
WEDI?
DIRECTORY LOCATION?