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

alv reports

Former Member
0 Likes
1,045

hi guru's,

can i run alv report as background,if it is possible can any one tell me the procedure.and where i sholud see the output.

can we run reports in background?if not why?

pls urgent...

thanx

loki

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,021

Hi,

IF SY_BATCH is initial.

Give the message saying that 'Please run the report in the Background only'

ENDIF.

or

if SY-BATCH = 'X'.

'Run the Report'

ENDIF.

Regards

Laxmi.

hi guru's,

can i run alv report as background,if it is possible can any one tell me the procedure.and where i sholud see the output.

can we run reports in background?if not why?

pls urgent...

thanx

loki

8 REPLIES 8
Read only

Former Member
0 Likes
1,021

hi Yogi,

ALV report can be run in background, provided its a ALV List. ALV grid cannot be run in background as it uses controls

sorry may be i am wrong....

~~Guduri

Read only

Former Member
0 Likes
1,021

check this link:

/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

SKJ

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,021

Hi

Why not you can absolutely run the reports / ALv reports in back ground.

the only criteria to run the report in back ground is:

Report must be having the Variant.

Without variant we can't run any report in back ground.

in sm36 we can create the job to run the required report in back ground by giving it's variant and in sm37 we can run that in back ground.

Regards,

Sreeram

Read only

0 Likes
1,021

hi ram,

finally ,can u tell me whether we can run alv reports in background or not.but as skj said again iam getting doubt.just once check the link which is given by SKJ.pls help me...

thanx,

loki.

Read only

0 Likes
1,021

Hi,

You can very well run ALV reports in background mode .When you run the reports in background mode it will generate spool , so for seeing the output you have to go SP01 and need to see your spool output there .

You can run grid reports also in background , but you wont get the functionality of grid there as you are running in background mode and you will get generated spool only , as it means you got the output like on paper .

For runnig reports in background mode you can write the code like ..

if not sy-batch is initial .

your output calling perform . which will have REUSE_ALV_GRID_DISPLAY or REUSE_ALV_LIST_DISPLAY .

endif .

For testing this, just run your program from SE38 , as soon as you get the selection screen , goto menu ->program-> execute in background mode , then the program will run in back ground

Try that...

Regards,

Raghav

Read only

Former Member
0 Likes
1,022

Hi,

IF SY_BATCH is initial.

Give the message saying that 'Please run the report in the Background only'

ENDIF.

or

if SY-BATCH = 'X'.

'Run the Report'

ENDIF.

Regards

Laxmi.

Read only

0 Likes
1,021

hi laxmi,

r u saying about normal reports.can u give me one complete example.and once if u run the report in background where i should see the output.pls help me.

thanx,

loki.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,021

Hi,

Check spool.

Use tcode SP01.