
Use
GETLEN ( <parameter1> , <parameter2> ).
This command is used to examine the contents of the first parameter, which can be either a simple parameter or a table parameter, and return the result in the second parameter.
If the first parameter is:
a simple parameter, the length of the string is returned.
a table parameter, the number of rows is returned.
Example
FUN ( BAPI_FLIGHT_GETLIST , BAPI_FLIGHT_GETLIST_1 ).
V_TABLE = BAPI_FLIGHT_GETLIST_1-TABLES-FLIGHT_LIST.
GETLEN ( V_TABLE , V_ROWS ).