11-01-2010 2:20 PM
Hi Experts ,
Before writing this query , i went through all the threads related to ALV report in background . But found none of them satisfactory .
I am running a alv report in background . I am not using OO ALV . I am using " REUSE_ALV_GRID_DISPLAY" .
This report is schedules through a background job . It is creating a spool .
But I am getting a error message : *" FRONT END NOT AVIALABLE "*
What i have found so far :
I am planning to use sy-batch variable to check whether it is running in background or not , Then I am planning to read the spool and if the spool is created , i will display the ALV .
Is this the correct approach or some other way to generate the ALV REPORT .
Also by this way will the error message *" FRONT END NOT AVIALABLE "* go .
Please advice .
Regards,
Abhishek
11-01-2010 2:39 PM
Hi
If I rember If the program runs in background mode, the fm REUSE_ALV_GRID_DISPLAY should call REUSE_ALV_LIST_DISPLAY automatically in rdoer to create a spool, if it's not so, u can check the system variable sy-batch and if the program runs in background mode you can set the parametr IS_PRINT in order to force the print, in particullary you need to set IS_PRINT-PRINT = 'X'
Max
11-01-2010 2:28 PM
11-01-2010 2:39 PM
Hi
If I rember If the program runs in background mode, the fm REUSE_ALV_GRID_DISPLAY should call REUSE_ALV_LIST_DISPLAY automatically in rdoer to create a spool, if it's not so, u can check the system variable sy-batch and if the program runs in background mode you can set the parametr IS_PRINT in order to force the print, in particullary you need to set IS_PRINT-PRINT = 'X'
Max
11-01-2010 3:08 PM
The problem here is that spool is not completed . It is in waiting status .
How to make the spool in "completed status " ?
regards,
Abhishek
11-01-2010 3:15 PM
hI
Which printer are u using?
Don't use the LOCAL one or something like that, u shoulf use a printer defined in SAP
Max
11-01-2010 3:17 PM
Hello,
As mentioned by Max, if you use REUSE* FM to display the ALV Grid, you don't need to handle the background scenario explicitly. The grid will be converted to list when the ALV is run in BG mode.
Is your job getting terminated with "FRONT END NOT AVAILABLE" message? What's the deal with the spool in "waiting" status? (AFAIK status is "completed" when the printer actually finishes printing the spool)
BR,
Suhas
11-01-2010 3:48 PM
Hello Everyone ,
Thanks for your replies .
I have the spool generated . But it is waiting status .
The issue here is how I am going to say that the spool is in " Completed " status . Because only after when my spool is in completed status , I want to display the status .
Is there way for this ?
Regards ,
Abhishek
11-01-2010 3:55 PM
Hello,
What is the printer that you've used while scheduling the report? Go to SP01 & do an F1 on the "Status" column you'll get the detailed documentation.
BR,
Suhas
11-01-2010 4:01 PM
Hi
Just as we 've required you should give us more information about the printer, it's not a problem of the job, but it's a printer one:
for example if you set the LOCAL printer, the spoold can't be printed in the background, because the system can't reach your pc, the local printer is a tipical front-end operation
Max