RowCount

For a given table, this function will contain the number of rows returned from the function given the passed parameters.

Group: Embedded Procedure Object


Syntax:   vValue = emProc.RowCount(vParamId)

vValue        (Variant) contains the number of rows in the specified table.

vParamId    (Variant) the name of the table, usually referred to by name and in double quotes.

Example:

For i = 1 To emProc.RowCount("ET_BAPIRET")

If emProc.Param("ET_BAPIRET", "TYPE", i) = "E" Then

tmErrorText = GetErrDesc(emProc.Param("ET_BAPIRET", "NUMBER", i), _

emProc.Param("ET_BAPIRET", "ID", i), _

emProc.Param("ET_BAPIRET", "MESSAGE_V1", i), _

emProc.Param("ET_BAPIRET", "MESSAGE_V2", i), _

emProc.Param("ET_BAPIRET", "MESSAGE_V3", i), _

emProc.Param("ET_BAPIRET", "MESSAGE_V4", i))

GoTo ExitMe

End If

Next