Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1521

SAPExecuteCommand - Restart is not working

$
0
0

Hi,

I am trying to create a macro that reverts the worksheet to the initial navigation state (after the user has changed it).

According to the AO Manual this can be acheived by using the following code:

 

Dim lResult As Long

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

lResult= Application.Run("SAPExecuteCommand", "Restart")

 

As stated in the manual, I have also added the refresh command before the restart, as this seems to be needed.

This command should have the same result as deleting all crosstabs and re-inserting the data sources ->with their original navigation state.

 

It doesn't work! The crosstabs all stay the same, only data is refreshed (twice?). No error message.

I am using Analysis Excel Version 1.3 on top of sap netweaver BW.

 

What am I missing here?

 

Thanks,

Leo

 

PS: The result I want could also be acheived by these options (that have no VBA CODE equivalent - right?

A) UNDO all steps since opening the workbook

B) Closing the workbook without saving and reopening it.

Maybe somebody had a similar requirement and can help out?


Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>