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

How i can Log-In SAP BusinessObjects Analysis for Excel via VBA Macro to refresh data

Dear Comunity,

I am brand new in this comunity, and I am located in Germany. Maybe somebody can help me to get an answere to my question.


For a full automatic report i am using the SAP BusinessObjects Analysis for Excel an i need to know how i can log in in Excel on the SAP system to refresh my data via VBA Macro.

From Tammy Powlas, I found some informations in the following discussion but in my case I get an error.

http://scn.sap.com/community/businessobjects-analysis-ms-office/blog/2011/06/26/can-you-use-vba-with-businessobjects-analysis-find-out-here

I dont know how to implementat my SAP System in my VBA script.

Can somebody help me to build the script?

With kind regards

Andreas

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2014 at 02:47 PM

    Hi Andreas,

    the link you have there is from 2011 ... I guess some things changed in the meanwhile?!

    When you want to refresh your query, e.g. "DS_1", there is no need to "implement" the SAP System Information, since Excel already stored if you inserted the query from your Dev., QA, or Prod. System...

    Just use the example coding

    Sub refresh()

    Dim lResult as Long

    lResult = Application.Run("SAPExecuteCommand", "Refresh", "DS_1")

    End Sub


    What is the error message, you were talking about?

    Of course, the user who is executing the macro must have a valid user with proper authorization...

    Best regards,

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2014 at 03:29 PM

    Hello Andreas,

    please take a look at:

    Best regards,

    Werner

    Add a comment
    10|10000 characters needed characters exceeded

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.