Skip to Content
0
Former Member
Jun 05, 2014 at 02:27 PM

SAPSetVariable returns The specified data source is invalid

207 Views

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