cancel
Showing results for 
Search instead for 
Did you mean: 

How to find Spool id for background process - driver program smartform?

former_member638879
Participant
0 Kudos

Hello Geeks,

Current scenario:  I am setting output options as below,

                          lst_output_options-tddelete   = abap_true.

                           lst_output_options-tdnewid    = abap_true.


          1. generating new spool id when driver program is executed in background.

          2. converting spool id to PDF and sending mail.

          3. so i am able to see SP02 - spool id entry.

               Every thing is fine with current scenario.

Expected Scenario:

                                  Business don't want to see spool id generated in SP02 , After driver program is executed in background.

                          

            so i set output options as below

                           lst_output_options-tdnewid    = space.


                Problem with this way of doing is when driver program is executed in background i am seeing all the outputs in signle PDF in the mail , which contains previous background execution outputs as well.


               when i execute driver program in foreground and making sy-batch is X , i am able to see spool id generated and output is coming correctly with single pdf{even though i specified lst_output_options-tdnewid    =  space}.


Question:  Is it possible to send smartform output to E-mail , in Background processing of driver program with out setting OUTPUT_OPTIONS-TDNEWID to X) ? because business don't want to see - SP02 Entry.


Currently when tried as mentioned i am getting previous batch jobs PDF also merged with the current one.


Waiting for your inputs..


                             t

                            

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

Hi VeeraBrahmam,


I don't think it is possible without changing the driver-program itself.


Of course, a solution would be to set the get_otf = abap_true and afterwards send the email by your own, that means develop a additional part using cl_bcs.


That is the only solution I got now in my mind. Now you have to decide, if it is worse to develop this. This will take some hours for sure


~Florian