Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In SAP how to capture row position and column position dynamically
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Throught QTP how to capture row position and column position dynamically in SAP report output.
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Please give a brief detail of you issue and the solutions which u have already tried.

Post a screenshot and the t-code as well.

Regards,
Ankesh
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
In Tcode PC_PAYRESULT records come in rows, if we go for one
personnel number for specific period(ex for period 39.2012).but for
another personnel number same period(for period 39.2012) come on
different row.so, how can capture row position, which work for every
personnel no.
In short, for every personnel number row position will change for same period.


Attached Files
.doc   pc_payresult.doc (Size: 60 KB / Downloads: 114)
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
ok.. What i understood is that you have some value for which u need to find the corresponding row number.

U can use the below code

Code:
intRowNo=SAPGuiSession("Session").SAPGuiWindow("WindowName").SAPGuiTable("TableName").FindRowByCellContent("ColumnName","<Value that you are looking for>")
' if the value that you are looking for is present in the table then intRowNo will hold the row number for that value else intRowNo will be null.

Regards,
Ankesh
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Ok. for table I can use this method , but how can capture row position for SAPGuiLabel.

Code:
SAPGuiSession("Session").SAPGuiWindow("Tables / fieldstrings").SAPGuiLabel("ON/Health Tax  earnings").SetFocus
SAPGuiSession("Session").SAPGuiWindow("Tables / fieldstrings").SAPGuiLabel("ON/Health Tax  earnings").SetCaretPos 8


Attached Files
.doc   pc_payresult wage type.doc (Size: 44.5 KB / Downloads: 108)
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
Kamal,

You need to change the settings for this. Goto the transaction, open the page. Now goto Settings->UserParameters->Select Grid Display.

This will change the display to grid view and thus u will get a table. U can then use the code which i have suggested.

Regards,
Ankesh
Reply
#7
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Ankesh,

Thanks for reply,
ExceptingTransaction SE11, I'm not getting this path(Settings->UserParameters->Select Grid Display) in Transaction PC_PAYRESULT, ZPAYREGISTER .

waiting for your suggestion
Thanks
Kamal
Reply
#8
Solved: 11 Years, 3 Months, 4 Weeks ago
Kamal,

I have never used the transactions that you are talking about.. You can get in touch with ur development/functional team. They might help.

REgards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,364 03-02-2020, 09:33 PM
Last Post: Swishy70
  Unable to capture value of Webelement which is changing dynamically sheetal 9 16,241 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Unable to click on dynamically changing webelement preeti 0 1,817 04-29-2017, 08:50 PM
Last Post: preeti
  DataGrid: double click on selected row robertosalemi 0 4,437 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 2,093 04-14-2016, 11:11 PM
Last Post: Harry1999

Forum Jump:


Users browsing this thread: 1 Guest(s)