Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Overflow error while converting a Long value to an Integer
#1
Solved: 10 Years, 9 Months 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: 10 Years, 9 Months ago
Guys please help me out...

Plz give any possible solution for this.
Reply
#3
Solved: 10 Years, 9 Months 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: 10 Years, 9 Months 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,646 04-10-2014, 01:53 AM
Last Post: prasaad44
  select an item from a very long drop down list vijayendra.shukla 0 2,623 12-03-2013, 09:40 PM
Last Post: vijayendra.shukla
Wink Overflow Error Venkat`s 0 2,466 10-08-2013, 03:01 PM
Last Post: Venkat`s
  popup window takes a long time bistritapcv 4 3,304 04-17-2013, 09:35 PM
Last Post: bistritapcv
  How to convert integer to decimal automation2012 2 5,166 03-25-2013, 04:44 PM
Last Post: automation2012

Forum Jump:


Users browsing this thread: 1 Guest(s)