Skip to Content
0
Dec 07, 2022 at 06:16 PM

SmartDiscoveryStructureSettings.create

72 Views

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#SmartDiscoveryStructureSettings_MsetIncludedDimensionColumns

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!