cancel
Showing results for 
Search instead for 
Did you mean: 

SAC Script needed to retrive the selected values of a Hierachie filter parameter/variable

Martin_4
Participant
0 Kudos
431

SAC Script needed to retrive the selected values of a Hierachy filter parameter/variable

-got a BW Query,
-the BW Query got a Companycode with a Hierarchy,
- the Companycode Hierachy is for example:
Country Companycode
----------+---------------------
DE        2150
DE        2222
DE       .........
AT         8010
AT        8020
AT        .....
...
REST  1001
REST  1002
REST  ....


The query got a Customer Exit Hierachy Node Variable ZHIERNODEMULTI
for multiple values.

I need  to get the values of selected nodes of the customer exit varable ZHIERNODEMULTI

in a script:
What means in the sample the values of the 0HIERODE :  AT &  DE

Martin_4_1-1721731884807.png

Anybody got a fitting script ?

Thank You !

Best Martin

 

 

 

View Entire Topic
Martin_4
Participant
0 Kudos

 

' '

Venkat99
Explorer
0 Kudos
use for loop-> for (var i=0; i < sel.length; i++){ newvar.push(sel[i])}
Martin_4
Participant
0 Kudos

' '

Martin_4
Participant
0 Kudos

''

Venkat99
Explorer
0 Kudos
newvar is a array. like var newvar = AarryUtils.create(Type.String);