cancel
Showing results for 
Search instead for 
Did you mean: 

SmartDiscoveryStructureSettings.create

andrei_goga
Explorer
0 Kudos

Hi,

After the latest SAC update (using 2022.21.9 (Client) / 2022.21.7 (Server) ), it seems like some of the older SrmartDiscovery methods have been deprecated, and instead we're now supposed to be using SmartDiscoveryStructureSettings.

Is there an example of how to use this? tried implementing with just info from AP Ref guide:

https://help.sap.com/doc/958d4c11261f42e992e8d01a4c0dde25/2022.21/en-US/index.html#SmartDiscoveryStr...

but couldn't get it to work... getting a 500 Internal Error message.

here's my code:

var ds = CH_Product.getDataSource();

var SDsetting = SmartDiscoveryStructureSettings.create(ds,"[Account_BestRunJ_sold].[parentId].&[Gross_Margin]", ["Store_3z2g5g06m4"]);

SmartDiscovery.buildStory(SDsetting);

getting: "500 - Internal server error. An error occurred during the processing of your request. Data might be lost."

Any pointers would be appreciated!

Thank you!

Accepted Solutions (0)

Answers (2)

Answers (2)

andrei_goga
Explorer
0 Kudos

Thank you for looking into this.

We're getting the error when you actually click the blue link "launch smart discovery for gross margin"...

We're on client 21.9 and server 21.7

avsalynin
Active Contributor
0 Kudos

andrei.goga

" seems like some of the older SrmartDiscovery methods have been deprecated"I don't think so. in this case, the syntax should highlight

all works and no err in console