Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

SAP BPC 10 nw : Macro getting the Submit Result of a 'SaveWorkbookData'

$
0
0

Hi,

 

  I am developing a macro that has to send data of several Reports in loop, without the user interaction. For that I activated the 'HideSubmitWarning' through the SetUserOption. The problem is that once I send the data and I have a failure, the program doesn't go on and the user doesn't know why. So I must show the user which was the problem.

 

I would like to ask if there is any way of getting the result of a 'Save*Data' by macro of if I have a way to validate the data by macro before sending.

 

Thank you in advance,

 

 

** CODE **

 

'Book1

Sub main_function()

 

'Opens Book2

'Book2.Refresh

 

End Sub

 

 

'Book2

Function AFTER_REFRESH()

     Application.Run "EPMExecuteAPI ", "SetUserOption", "HideSubmitWarning", True

     Application.Run "EPMExecuteAPI ", "SaveAndRefreshWorkbookData"

    AFTER_REFRESH = True

End Function

 

Function AFTER_SEND()

    Application.Run "Book1!main_function

    AFTER_SEND = True

End Function


Viewing all articles
Browse latest Browse all 5414

Trending Articles