08-25-2011, 05:36 PM
Hi,
I need to fetch a particular cell value from SAPGuiTable... i am using the below code to get the row number first
then to get a corresponding value i am using the below code
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
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