Application Development 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: 

Running ALV REPORT in background

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member

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

8 REPLIES 8

Former Member
0 Kudos

Hi,

This seems to be some BASIS issue, please try with your BASIS guy,

or search with keyword FRONTEND UNAVAILABLE,

Try this threat

[]

Thanks,

Anmol.

Former Member

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

abhishek_gupta2
Participant
0 Kudos

The problem here is that spool is not completed . It is in waiting status .

How to make the spool in "completed status " ?

regards,

Abhishek

0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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