Hi ,
We have a report with requirement to refresh report in with prompts and without prompt mode
and we use SAPExecuteCommand.
How report is used:
The user will refresh the report using prompt first time using - Call Application.Run("SAPExecuteCommand", "ShowPrompts")
followed up by business rule implemented using vba .
Later user will initiate refresh using Call Application.Run("SAPExecuteCommand", "RefreshData", "ALL").
Problem:
When report is triggered using Call Application.Run("SAPExecuteCommand", "RefreshData", "ALL") ,I get data source disconnect issue
What exactly is happening? I am not able to figure out.
Configuration details:
Analysis: 2.0 SP2 / Fails with SP4 as well.
SAP GUI 7.3
BO -4.1 SP 5
OLAP connection is thru BO.
MS Office 2010.
please find the log :
============================================================================================================================================================================
COLUMNS:Time |Severity|Category |Method|Thread |Text
#
2015-08-14 10:36:14,783|ERROR|Trace.AoPlugin|?.?|VSTA_Main|General .NET Exception:
Exception from HRESULT: 0x800401A8
at Microsoft.Office.Interop.Excel._Worksheet.get_ProtectContents()
at com.sap.ip.bi.pioneer.addins.xlwrap.WorksheetWrap.<get_ProtectContents>b__6()
at com.sap.ip.bi.pioneer.excel.utils.EaExcelAccessor.AccessXlReturn[TResult](CrOfficeAccessorDelegate`1 opCallback)
#
2015-08-14 10:36:14,799|ERROR|Trace.AoPlugin|?.?|VSTA_Main|Application Exception (ID 103042)
Nested exception. See inner exception below for more details[msg.NestedException]
at com.sap.ip.bi.pioneer.core.exceptions.CrExceptionHelper.ThrowRestartException(Exception iEx)
at com.sap.ip.bi.pioneer.excel.views.EaViewManagerSession.OnProcessingFinished(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.OnProcessingFinished(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.core.commands.CrCommandProcessor.OnProcessingFinished(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.CommandPostprocessing(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.InitialCommandExecute(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.DoExecuteCommandInternal(CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.DoExecuteCommand(CoCommandBase iCommand, CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.core.commands.CrCommandProcessor.DoExecuteCommand(CoCommandBase iCommand, CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.cofplugin.Commands.RibbonCommandListener.RibbonCommandListener_OnButtonAction(ICustomUiElement iControl)
>> General .NET Exception:
Exception from HRESULT: 0x800401A8
at Microsoft.Office.Interop.Excel._Worksheet.Activate()
at com.sap.ip.bi.pioneer.addins.xlwrap.WorksheetWrap.<Activate>b__29()
at com.sap.ip.bi.pioneer.excel.utils.EaExcelAccessor.AccessXlVoid(CrOfficeAccessorDelegate opCallback)
at com.sap.ip.bi.pioneer.addins.xlwrap.WorksheetWrap.Activate()
at com.sap.ip.bi.pioneer.excel.models.EaWorksheet.StoreState()
at com.sap.ip.bi.pioneer.excel.models.EaModelWbApplication.OnDocumentPrepareForChange()
at com.sap.ip.bi.pioneer.excel.models.EaModelWbApplication.Redisplay(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
at com.sap.ip.bi.pioneer.excel.views.EaViewManagerSession.OnProcessingFinished(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
#
2015-08-14 10:36:15,049|FATAL|Trace.AoPlugin|?.?|VSTA_Main|Application Exception (ID 103042)
Nested exception. See inner exception below for more details[msg.NestedException]
at com.sap.ip.bi.pioneer.core.exceptions.CrExceptionHelper.ThrowRestartException(Exception iEx)
at com.sap.ip.bi.pioneer.excel.views.EaViewManagerSession.OnProcessingFinished(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.OnProcessingFinished(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.core.commands.CrCommandProcessor.OnProcessingFinished(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.CommandPostprocessing(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.InitialCommandExecute(CoCommandBase iCommand)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.DoExecuteCommandInternal(CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.common.commands.CoCommandProcessor.DoExecuteCommand(CoCommandBase iCommand, CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.core.commands.CrCommandProcessor.DoExecuteCommand(CoCommandBase iCommand, CoCommandParameters iParameters)
at com.sap.ip.bi.pioneer.cofplugin.Commands.RibbonCommandListener.RibbonCommandListener_OnButtonAction(ICustomUiElement iControl)
>> General .NET Exception:
Exception from HRESULT: 0x800401A8
at Microsoft.Office.Interop.Excel._Worksheet.Activate()
at com.sap.ip.bi.pioneer.addins.xlwrap.WorksheetWrap.<Activate>b__29()
at com.sap.ip.bi.pioneer.excel.utils.EaExcelAccessor.AccessXlVoid(CrOfficeAccessorDelegate opCallback)
at com.sap.ip.bi.pioneer.addins.xlwrap.WorksheetWrap.Activate()
at com.sap.ip.bi.pioneer.excel.models.EaWorksheet.StoreState()
at com.sap.ip.bi.pioneer.excel.models.EaModelWbApplication.OnDocumentPrepareForChange()
at com.sap.ip.bi.pioneer.excel.models.EaModelWbApplication.Redisplay(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
at com.sap.ip.bi.pioneer.excel.views.EaViewManagerSession.OnProcessingFinished(Object iSender, CoProcessingFinishedEventArgs iEventArgs)
#
2015-08-14 10:36:15,049|FATAL|Trace.AoPlugin|?.?|VSTA_Main|111006 An exception occurred in one of the data sources.
============================================================================================================================================================================
Thanks,
Regards,
Pramod.