Symptom
An API method/function of Analysis Office is being executed inside of a callback (e.g. AfterRedisplay) and it is not working.
The function returns value 0, which means that the execution failed.
The property LastError shows error "13 - A callback is running". Refer to chapter "Using LastError information".
Environment
SAP BusinessObjects Analysis, edition for Microsoft Office
Cause
In general, all commands are blocked when a callback is running.
However, there are few exceptions below where a command can be called successfully in a specific callback:
Command | Callback |
SAPSetVariable | BeforeFirstPromptsDisplay |
SAPSetPlanParameter | BeforePlanDataSave |
SAPExecutePlanningFunction | BeforePlanDataSave |
SAPExecutePlanningSequence | BeforePlanDataSave |
Resolution
This is not a bug. It is how the tool works. Only the commands in the table above can run in these specific callbacks. All other commands should not be used inside a callback.
See Also
2577920 - API SAPExecutePlanningSequence is not supported within API AfterRedisplay
2350649 - API SapSetVariable is not supported within API AfterRedisplay
Chapter "Using Callbacks" in User Guide
Chapter "Working with macros" in User Guide
Keywords
AfterRedisplay, command, api, vba, method, function, SapSetVariable, SAPSetFilter, SAPMoveDimension, return value, 0, execution failed, SAPExecutePlanningSequence, Callback_AfterRedisplay , KBA , BI-RA-AO-XLA , Excel Addin , Problem