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

run report in background

Former Member
0 Likes
1,225

I have a report that run in background.Now my aim is to save the data in excel on my desktop.

Please guide me how to do so.I have used this function module

SAP_CONVERT_TO_XLS_FORMAT

and many more but still i'm not able to save data in excel.

I have a report that run in background.Now my aim is to save the data in excel on my desktop.

Please guide me how to do so.I have used this function module

SAP_CONVERT_TO_XLS_FORMAT

and many more but still i'm not able to save data in excel.

9 REPLIES 9
Read only

Former Member
0 Likes
1,158

hi...

use FM dowloadtogui

regards

vivek

Read only

Former Member
0 Likes
1,158

hi abhut

Use The function module

Download or GUI_Download

Regards

Deva

Read only

0 Likes
1,158

not allowing in background no output is coming

Read only

Former Member
0 Likes
1,158

You cannnot use any of these function modules in Background. There is no easy way of interacting with the presentation server in backgorund, Instead you could do background processing and store the file in app server and then transfer it from app server to presentation server.

This is one of the complicated way to do it:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb...

Read only

0 Likes
1,158

I do not want to create RFC detination.Is there some other way to do this.

Please guide

Read only

0 Likes
1,158

If you dont create a RFC destination then there is no other way to access presentation server(desktop) in background.

One other alternative is to run the main program in foreground, submit a job of an program which does all the processing in background...then read the output of this background job, and then save it to excel in foreground.

Read only

Former Member
0 Likes
1,158

ABHUT

There is no possible way to download the file on Presentation Server through Background Job.

Thanks

Amol Lohade

Read only

Former Member
0 Likes
1,158

In background this is not possible

Read only

Former Member
0 Likes
1,158

HI,

Submit the program and store the output in Memory.

Get the memory contents using FM LIST_FROM_MEMORY, and data will be in ABAPLIST format.

Now you convert the data from ABAPLIST to EXCEL format.

Hope this helps.

Regards,

SP Raj.