Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select SAPGUITab
#1
Need to select a SAPGUITabStrip via descriptive programming, can anyone help urgently
Reply
#2
what have you tried?? are u facing any issue?
Reply
#3
Actually the problem is there is a SAPGUITable inside the Tab so the Tab name is like the Tab name (No. of row in the table)
For eg. if the total no. of rows in the table is 26, so its Tab name(26)
So its changing dynamically, so how can i click that tab,
I used descriptive programming like
Code:
'SAPGuiSession("Session").SAPGuiWindow("Maintain Business Partner").SAPGuiTabStrip("GS_SCREEN_1200_TABSTRIP").Select "name := Tab_02"
but that does not work, so what else i can try.
Reply
#4
do u know the total rowcount becfore selecting the tab?

Regards,
Ankesh
Reply
#5
No, that is what the main problem is
Reply
#6
Try the below code. This is just a sample code, modify as per your need.

Code:
strAllItems=SAPGuiSession("micClass:=SAPGuiSession").SAPGuiWindow("micClass:=SAPGuiWindow").SAPGuiTabStrip("micClass:=SAPGuiTabStrip","name:=TAXI_TABSTRIP_OVERVIEW").GetROProperty("allitems") '//Just update the tabe name here arrTabsName=Split(strAllItems,";")' split and get tabs name in array 'iterate through all tabs For i=0 to Ubound(arrTabsName) If Instr(arrTabsName(i),"<Part of tab name which is fixed")>0Then SAPGuiSession("micClass:=SAPGuiSession").SAPGuiWindow("micClass:=SAPGuiWindow").SAPGuiTabStrip("micClass:=SAPGuiTabStrip","name:=TAXI_TABSTRIP_OVERVIEW").Select arrTabsName(i) Exit For End If Next

Regards,
Ankesh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)