on 11-14-2018 1:27 PM
I have opened item details in Me22n:
The Controli-id of "Confirmations" Tab is
"wnd[0]/usr/subSUB0:SAPLMEGUI:0019/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT16"
if I click to DeliverySchedule and want back to Confirmations the Control-Id is
"wnd[0]/usr/subSUB0:SAPLMEGUI:0015/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL/tabpTABIDT16"
The difference between this both IDs is "0019" in the first id and "0015" in the second id.
How can I catch this in my vbscript?
Hello Matthias,
this part of the ID /subSUBO:SAPLMEGUI:0019/ identifies from the function group MEGUI the screen 0019.
The difference to screen 0015 is the height of SUB3. In screen 0019 it is 18 height and in screen 0015 11.
Which screen is used is a question in the event handling.
To detect the correct container name you can use this snippet:
Set User = session.findById("wnd[0]/usr")
For i = 0 To User.Children.Count - 1
Name = User.Children(CInt(i)).Name
If Left(Name, 15) = "SUB0:SAPLMEGUI:" Then
Exit For
End If
Next
MsgBox Name
MsgBox session.findById("wnd[0]/usr/sub" & Name & "/subSUB3:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1301/subSUB2:SAPLMEGUI:1303/tabsITEM_DETAIL").Children.Count
I scan on the user screen the children names and if I found one with SUB0:SAPLMEGUI: I can use it as variable part inside my ID.
Let us know your results.
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx for that.
It works fine. :-))
Best Regards
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have used same but still showing error. Please help me to find the solution..Code as under :
Set User = session.findById("wnd[0]/usr")
For i = 0 To User.Children.Count - 1
Name = User.Children(CInt(i)).Name
If Left(Name, 15) = "SUB0:SAPLMEGUI:" Then
Exit For
End If
Next
session.findById("wnd[0]/usr/sub" & Name & "/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/btnEDITFILTER").pressYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.