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

SAPSetVariable returns The specified data source is invalid

Dear Gurus,

I am facing the following issue:

...

lResult = Application.Run("SAPSetVariable", "GP_S0120", "!C70; !C71; !C72; !C73; !C74", "INPUT_STRING", "DS_1")

lResultError = Application.Run("SAPGetProperty", "LastError")

...

Returns "The specified data source DS_1 is invalid"

This does not occur, if I manually refresh the entire workbook. My aim is, to first set the variables and then do the refresh.

Is there any way, to reset all variables that were set?

Version: 1.4.4.2736

Any help appreciated,

Claus

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2014 at 01:44 PM

    Hi Claus,

    I think you already found the Problem: "My aim is, to first set the variables and then do the refresh."

    This is not possible! up to now, you have to refresh first, then you can change the variables.

    Check: Setting of Variables and Filters before Initial Refresh : View Idea

    Regards, Martin

    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.