cancel
Showing results for 
Search instead for 
Did you mean: 

Create Pivot Table in Background using a Batch Job

Former Member
0 Kudos

I'm using 4.7 and I have a request to create a daily batch job that will run an ALV report and create a pivot table. How do I create the pivot table? I tried using the FM 'EXCEL_OLE_STANDARD_DAT' but I get a 'File do not exist' message. Tried looking at the documentaion of this fm but it doesn't have any. If anybody can explain to me how this function works, that would really be great. Or if you have a better solution, that would be even greater than great.

Thanks in advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

What if I don't run it in background but it will still be processed by a batch job. On my selection-screen, I have an option to create a pivot table and to input the filename. If I run this in foreground, everything should be working well. But what if I try to do this via a batch job? Will it work?

MauricioMiao
Contributor
0 Kudos

Hello Liz,

The only way to run a program by a batch job is in backgroud.

It will still not work.

The only way it is possible is if perhaps somebody knows a SAP function that can create an Excel file without accessing Excel.

As far as I know there is no such function.

Regards,

Mauricio

MauricioMiao
Contributor
0 Kudos

Hello Liz,

I think it is not possible because to generate an Excel file, SAP needs the Excel program.

But when the program is executed in backgroud, SAP server does not have a way to access Excel program to generate the file.

Hope I am wrong...

Regards,

Mauricio