Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

eCATT coding issue: how to check if a value 'fistVisibleRow' exists or not

vc2021
Explorer
0 Kudos

Hello,

I would like to write abap code in ecatt editor to check if the value 'fistVisibleRow' exists or not (please see below).

If it exists, then the system should give a feedback: It exists. In another cases, the system should give a feedback: it doesn't exist.

But somehow the result cdoesn't match my expection. Could somebody tell me how to write the command correctly? Many thanks in advance!

SAPGUI ( SE80_100_27 , TARGET_01 ).
SAPGUI ( SE80_500_26 , TARGET_01 ).
SAPGUI ( OINSC_MD_100_49 , TARGET_01 ).

IF fistVisibleRow.
LOGTEXT ( 0 , 'it exists' ).
ELSE.
LOGTEXT ( 0 , 'it doesn't exist' ).
ENDIF.




1 ACCEPTED SOLUTION

qianchen
Advisor
Advisor

I would assume you would like to check a list of data, in a table or so? If that is the case, you may consider using GETGUI or CHEGUI on that first row of table list.

2 REPLIES 2

qianchen
Advisor
Advisor

I would assume you would like to check a list of data, in a table or so? If that is the case, you may consider using GETGUI or CHEGUI on that first row of table list.

Typo: should be CHEGUI instead of CHKGUI