I got the solution :)

'get the row

myrow = SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
S-API").SAPGuiTable("Selections (Internal 
Format)").FindRowByCellContent("Field", datatable("field",dtLocalSheet))

 

'enter details
SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
S-API").SAPGuiTable("Selections (Internal Format)").SetCellData myrow,"From 
value",  datatable("from",dtLocalSheet))
 
SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
S-API").SAPGuiTable("Selections (Internal Format)").SetCellData myrow,"To 
value", datatable("to",dtLocalSheet))



On Wednesday, November 6, 2013 1:55:04 PM UTC-5, Femi A wrote:
>
>
> I was wondering if anyone could help me figure out how to handle this 
> situation I am in.
>
> I have hundreds of extractors with different selections I am trying to run 
> with one script. Every time I I change the Datasource, the selections in 
> the SAPGuiTable changes. I need a code that identifies which "Field" to 
> input the "From_value" and "To value".
>
> Please find below the code I recorded. Also I attached a screenshot of the 
> SAP window.
>
>
> SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
> S-API").SAPGuiTable("Selections (Internal Format)").SetCellData 1,"From 
> value","FACII"
>
> SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
> S-API").SAPGuiTable("Selections (Internal Format)").SetCellData 2,"From 
> value","1900001"
>
> SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
> S-API").SAPGuiTable("Selections (Internal Format)").SetCellData 2,"To 
> value","2008016"
>
> SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
> S-API").SAPGuiTable("Selections (Internal Format)").SelectCell 2,"To value"
>
> SAPGuiSession("Session").SAPGuiWindow("Extractor Checker 
> S-API").SAPGuiButton("Extraction").Click
>
>
>
> Thank you very much for giving it a try! :)
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to