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


Messages In This Thread
Overflow error while converting a Long value to an Integer - by Ankesh - 08-25-2011, 05:36 PM

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,702 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: 3 Guest(s)