on 03-08-2022 9:29 AM
Hi!
Just want to ask if there's any way we can able to identify if an Hierarchy is currently Expanded or collapsed,
This is what it looks like when collapsed
This is when collapsed
Already know how to collapse and expand it, but how do i know if it's currently expanded or collapsed.
'Expand
sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").SetFocus
sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").caretPosition = 10
sapSession.FindById("wnd[0]").SendVKey 2
'Do something between
'Collapse
sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").SetFocus
sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").caretPosition = 10
sapSession.FindById("wnd[0]").SendVKey 2
thank you!
For l_cntrCol = 3 To l_cntrWatch
While sapSession.FindById("wnd[0]/usr/lbl[5," & l_cntrCol & "]").DisplayedText = 5
sapSession.FindById("wnd[0]/usr/lbl[5," & l_cntrCol & "]").SetFocus
sapSession.FindById("wnd[0]/usr/lbl[5," & l_cntrCol & "]").caretPosition = 0
sapSession.FindById("wnd[0]").SendVKey 2
Wend
Next
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the feedback!
Is it required to use the property DisplayedText, or is it the same value as the property Text?
"5" for collapsed (and "4" for expanded)
We can find the values in the SYM type pool/group in SE11 (and also the values of all other ABAP List symbols):
SYM_2 SYM_PLUS_FOLDER '4 '." folder with plus inside + [+ 52
SYM_2 SYM_MINUS_FOLDER '5 '." folder with minus inside - [- 53
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.