cancel
Showing results for 
Search instead for 
Did you mean: 

WWI:looping over compositions

michael_schmalfeldt2
Participant
0 Kudos

Hi,

we have a three layer data model in EH&S and I would like to loop (S:POS) over all layers in the WWI layout and list some identifiers.That's basically what I want:

<11BRG001(M,SAP_EHS_1012_001;*)><11BRG002(S:POS;*)><11BRG007(M,DSM_EHS_XXXX;*)><11BRG006(S:POS;*)>

<01GESTRIDENT(I:NAM,PROD,)[D:Identifier]>

<11BRG009(M,DSM_EHS_YYYY;*)><11BRG008(S:POS;*)>

(<01GESTRIDENT(I:NAM,PROD,)[D:Identifier]>

<11ERG008><11ERG009><11ERG006><11ERG007><11ERG002><11ERG001>


But I get the error "Maximum recursion depth 1 for environment S:POS has been exceeded". Any idea how to solve this?

regards, Michael

View Entire Topic
christoph_bergemann
Active Contributor

Hello Michael

not sure regarding your code and what you would like to get; but POS can be used only on one level (and I have never seen the need for a second layer as in your example)

<11BRG001(M,SAP_EHS_1012_001;*)><11BRG002(S:POS;*)><11BRG007(M,DSM_EHS_XXXX;*)><11BRG006(S:POS;*)>

<01GESTRIDENT(I:NAM,PROD,)[D:Identifier]>

<11BRG009(M,DSM_EHS_YYYY;*)><11BRG008(S:POS;*)>

(<01GESTRIDENT(I:NAM,PROD,)[D:Identifier]>

<11ERG008><11ERG009><11ERG006><11ERG007><11ERG002><11ERG001>

You have the "main" group <11BRG001(M,SAP_EHS_1012_001;*)

And the "salve" group: <11BRG002(S:POS;*); then you can use: (<01GESTRIDENT(I:NAM,PROD,)[D:Identifier]>

But you can not use "POS" twice

What is the business purpose of your wish?

Depending on your need: may be some "customer" symbosl could be used

C.B.