cancel
Showing results for 
Search instead for 
Did you mean: 

How to know or view who holds Private versions in SAC planning Model

Vasu_Sac
Participant
0 Kudos
164

Hello,

One of power user requested that How to know or view who holds Private versions in SAC planning Model.

As developer, I can see users list at Model preference level >Planning > Delete Private versions.

How to provide authorization to user to view the Private versions user list for above property.  I am not looking to view the private versions data to view at Story level.

I shared Model to user so he able to view Model level preferences but unable to view the private versions.  For user the Delete Private versions are grey-out. I didn't see any property at role level to configure Model preferences or Private versions.

Vasu_Sac_0-1745511001137.png

Is any other way to view power user that who holds the private versions in the system. 

Regards,

Vasu

 

Accepted Solutions (0)

Answers (2)

Answers (2)

clsorensen911
Participant
0 Kudos

Hey @Vasu_Sac ,

Depending on what you need, there are several ways to get the private versions.

For system-wide info:

If you want to know where / how many private versions exist, you can go to 
System -> Performance -> Private versions statisics & analysis 

That should hold all the information you need 🙂 

In a specific story or app

However, if you have some kind of cockpit, or need to analyze something in a story you can use the Javascript API.

An example

Lets say, for example, you have a story integrated into your calendar, that a manager uses to check their budget before approving a task. 

However, you want to flash a warning, if there is still unpublished data. 

Assume the report uses a table, called Table_1, then the below code will return an array with all the private versions:

var privateVersions  = Table_1.getPlanning().getPrivateVersions();	
	if (privateVersions.length === 0) {
		// No private data! Yay :)	
	} else {
		for (var i = 0; i < privateVersions.length; i++) {
		//Some logic in here that fits your requirements.
	}
	

Hope that helps 🙂

William_Yu
Product and Topic Expert
Product and Topic Expert
0 Kudos

I believe you can find some information from system -> Performance -> Private versions statisics & analysis, check this blog post: https://community.sap.com/t5/technology-blogs-by-sap/sap-analytics-cloud-private-versions-statistics...