cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a row number based on a content in SAP TAO 2.0

Former Member
0 Kudos

Hi,

I cannot find a way in getting the row number based on certain column content  for the tables and grids in the SAP GUI using SAP TAO 2.0 or greater version.

Similarly also for the if condition and  loops , which are present in the TAO 1.0 but not in SAP TAO 2.0.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jose,

You can use the following script as a scripted component in your application area and you can use the same for table by modifying the script.

ComponentPath =Components\SAP R3\Common Functions\GUI Functions\Grids

Get_Grid_RowNumber_By_Content :

SetExitConsolidatedComponentOnFailure(True)

Grid = GetParameterValue("C5_C9_Get_Grid_RowNumber_By_Content_Grid")

RefColumn = GetParameterValue("C5_C9_Get_Grid_RowNumber_By_Content_RefColumn")

RefValue = ResolveParameter("C5_C9_Get_Grid_RowNumber_By_Content_RefValue")

FromStartingRow = GetParameterValue("C5_C9_Get_Grid_RowNumber_By_Content_FromStartingRow")

val = SAP_get_Grid_RowNumber_By_Content (Grid, RefColumn, RefValue, FromStartingRow)

GS_StoreValue GetParameterValue("C5_C9_Get_Grid_RowNumber_By_Content_TargetField"),val-1

Thanks,

Venkatesan M

0 Kudos

Hi Jose,

Please use the component "FindRowByContent" of Controls\GuiGridView\.

This component provides the ability to search for a row by content.

Regards,

Dasaratha.K

Former Member
0 Kudos

Hi Dasaratha,

Thanks for your reply. But this component is basically for SAP TAO v1 right?.

Can you send me any document related to the components.

For me the Front end folder in the QC doesn't have the FindRowByContent component.

Or at least can you just send me the screen shot of the folder structure in QC, so i can understand if any component is missing from my folder structure.

Former Member
0 Kudos

Also how to implement if condition and loops using tao v2 components

0 Kudos

Hi Jose,

You can find the component "FindRowByContent"  in SAP TAO 3.0 SP2.

May I know which version of SAP TAO you using?

in SAP TAO 2.0,you can go for the custom component to find row number by using content.

and use the component "SetCondition" for if condition .