Skip to Content
author's profile photo Former Member
Former Member

Create Pivot Table in Background using a Batch Job

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 08:59 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 09:09 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.