Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Overflow error while converting a Long value to an Integer
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

I need to fetch a particular cell value from SAPGuiTable... i am using the below code to get the row number first

Code:
intRowNumber=SAPGuiSession("Session").SAPGuiWindow("Change View 'Maintenance").SAPGuiTable("Maintenance view for ZSAPCATDI").FindRowByCellContent("Catalog Number",strMaterial)

then to get a corresponding value i am using the below code

Code:
strDiscreteMaterial=SAPGuiSession("Session").SAPGuiWindow("Change View 'Maintenance").SAPGuiTable("Maintenance view for ZSAPCATDI").GetCellData(intRowNumber,"Discrete Material")

I am getting Error - Incorrect parameter.

My understanding is that since getcelldata uses an integer number for row..whereas intRowNumber is a long value.
I tried to typecast it to integer using Cint(intRowNumber) but got Overflow error.

Please help me out.

Regards,
Ankesh
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Guys please help me out...

Plz give any possible solution for this.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
guys any help regarding this????/
i need to fetch the data of the row number 42141..

i can fetch the data till 32100...

but when i m fetching the data of the row number 42141.. i m getting one incorrect parameter error.

Any help would be appreciated.
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
I found another way of doing it through the application itself..

Thanx all.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Takes Long time to Run prasaad44 4 4,928 04-10-2014, 01:53 AM
Last Post: prasaad44
  select an item from a very long drop down list vijayendra.shukla 0 2,734 12-03-2013, 09:40 PM
Last Post: vijayendra.shukla
Wink Overflow Error Venkat`s 0 2,701 10-08-2013, 03:01 PM
Last Post: Venkat`s
  popup window takes a long time bistritapcv 4 3,623 04-17-2013, 09:35 PM
Last Post: bistritapcv
  How to convert integer to decimal automation2012 2 5,536 03-25-2013, 04:44 PM
Last Post: automation2012

Forum Jump:


Users browsing this thread: 2 Guest(s)