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

Macro using "OpenSpecificDocument"

$
0
0

Hello everybody,

 

I'm trying to develop a custom menu with BPC 10 NW, where, depending of the access data profile , the user is authorized to open an input report. So, I am thinking to leave the different report in specific folders and using the API OpenspecificDocument to determine the document that the user can open.

 

I'm trying to use the API "OpenSpecificDocument"  to open the report with its specific location in the server. I implement the follow macro but it's not working correctly:

The macro implemented is:

 

Sub MacroName()

Dim EPM As New FPMXLClient.EPMAddInAutomation

Dim conn As String

Set EPM = New EPMAddInAutomation

conn = EPM.GetActiveConnection(Sheet1)

EPM.OpenSpecificDocument "Test.xltm", "", "/TEMPLATELIBRARY/INPUT SCHEDULES/PRUEBAS/", "", ""

End Sub

 

For example,

I have an input report "Test.xltm" in the folder "Prueba"s with the follow direction "/TEMPLATELIBRARY/INPUT SCHEDULES/PRUEBAS/". But something is wrong.

 

Adicionally, i don't understand the definition of this API and particularly what is the subFolderRequested and subModule.

"Sub OpenSpecificDocument(documentName As String, TeamId As String, subFolderRequested As String, subModule As String, [connectionString As String])"

 

 

Could someboby help me to understand how I must configure this API? Am I using the correct API to do this?

 

Thank you very much,

 

Best regards

 

C.K.


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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